Document Camera Feedback
TUTech
Junior Member
I'm working with document camera feedback to show the power status in case someone turns it on or off without using the control panel. The problem is that the response has a space in it.
Can I put a space in find_string(data.text," ") OR can I put an ELSE statement in STRING / DATA_EVENT??
When power is on I get $B0a$80$02$00$BF
When power is off I get $B0a$80 $00$BF
This works if it is turned on from the camera.
DATA_EVENT [dvDocCam]
{
STRING:
IF(LENGTH_STRING(data.text))
{
SELECT
{
ACTIVE (FIND_STRING(data.text,"$80,$02",1)):
nDocPwr = DPWRON
}
}
}
Can I put a space in there data.text,"$80, ",1)):
I tried to put an ELSE statement in there (IF it's not ON then it must be OFF) but that didn't work.
Can I put a space in find_string(data.text," ") OR can I put an ELSE statement in STRING / DATA_EVENT??
When power is on I get $B0a$80$02$00$BF
When power is off I get $B0a$80 $00$BF
This works if it is turned on from the camera.
DATA_EVENT [dvDocCam]
{
STRING:
IF(LENGTH_STRING(data.text))
{
SELECT
{
ACTIVE (FIND_STRING(data.text,"$80,$02",1)):
nDocPwr = DPWRON
}
}
}
Can I put a space in there data.text,"$80, ",1)):
I tried to put an ELSE statement in there (IF it's not ON then it must be OFF) but that didn't work.
Comments
-
There's no need to double post in this forum. We'll see it.
-
I think I had a problem with Internet explorer and hit the post button twice. Am I able to delete?
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums