Sync Detection in data_event
Zachj
Posts: 12
Hello, I have a question regarding video sync detection on DX-TX's, mentioned in this archived thread.
https://proforums.harman.com/amx/discussion/comment/122654#Comment_122654
My question is, considering the switcher sends unsolicited video status queries, will the command in the data_event continuously execute every time a query made or will it only execute when the status changes? For instance if I have the following code:data_event[dvTx]
{
command:
{
if(find_string(data.text, 'VALID SIGNAL', 1))
doSomething();
}
}
will 'doSomething()' continously execute while a valid signal is present or just when it changes from "NO SIGNAL' to 'VALID SIGNAL'?
Unfortunately I do not have a switcher present to test this at the moment. Thank you
0
Comments
The event will only trigger when the signal state changes. I've used this with the DVX devices. IIRC there are 3 states: NO SIGNAL, UNKNOWN SIGNAL, or VALID SIGNAL. Depending on what you want, do not ommit the 'UNKNOWN SIGNAL', I used to get that with strange resolutions or while connecting/disconnecting.
The event can trigger quite a few times in a short time, for instance while the device is adjusting to the incoming signal, but nothing to worry about.
That makes its easy for me, thank you!