Wait_until ???
REBUILD_EVENT
Posts: 127
I have a Comm problem that I should communicate with a device in a well defined sequence. I started sending one msg after another with setting flags in the function and reading them in the data_event, then calling another function setting another flag and so on.
I suppose that I could use one function with WAIT_UNTIL instead, but was told not to do so. what do I have to consider using WAIT_UNTIL ???
thanks
I suppose that I could use one function with WAIT_UNTIL instead, but was told not to do so. what do I have to consider using WAIT_UNTIL ???
thanks
0
Comments
Wait_Until makes the master waits until a condition come true... but you gotta know that... From AMX Programmers BlackBook
so handling of maths and numericals during this wait will be hard somehow... but it may work, try it and use a watch window to monitor your Vars and see if it is doing well or not....i don't know what exactly you wanna do to tell you how to work arround
Good Luck
You could do that using a timeline. It's nicer and has more functionality
Actually, I may use a timeline for the actual projector timeout, but it's not practical for the way I am using WAIT_UNTIL. Let me elaborate. Every time a source is changed, I have a segment that was a WAIT_UNTIL(cTV_Status == TV_ON). Inside that block is the code that changes the projector input, aspect ration, and whatever else need to be switched for that source. If it's already on, it fires right away; if not, it will as soon as the warmup is complete. It's just not necessary to create a new timeline for every source the way I am doing it.