12-06-2014 12:19 AM
hello guys,
while using the event structure in a continuos loop, how many events can we add to a single structure??
If we add more than three events to a single event structure, will it become a complex design while executing the code??
regards,
PHANI
Solved! Go to Solution.
12-06-2014 01:03 AM
Hey Phani,
You can use any number of events to add in event structure. Even, you can add any numbers of event identifiers to identify single event. You have to manage the occurance of an event. The event structure is the simplest way to control execution by writing event code in the area under that event.
Regards,
DCKAN
12-06-2014 09:18 AM
And do not forget the golden rule when you deal with Event structures:
do not put any code into the Event structure which has a longer execution time (> 100 msec), since your GUI will become non responsive. So only use it for user GUI interactions (of course there are some special usage exceptions, like DAQmx Events, etc...).
12-06-2014 05:52 PM
@Blokk wrote:
And do not forget the golden rule when you deal with Event structures:
do not put any code into the Event structure which has a longer execution time (> 100 msec), since your GUI will become non responsive. So only use it for user GUI interactions (of course there are some special usage exceptions, like DAQmx Events, etc...).
Well, it won't be "non-responsive," but humans are impatient, and hate to wait around more than 1/10 second before they want to start clicking buttons and stuff.
Interestingly enough, people allow a little more time - about 1/2 second - for someone to reply to a spoken query before they repeat it. In the early days of video conferencing, the round trip delays would equal almost exactly that. So you got a lot of people starting to repeat a question just as they are receiving the answer from the other person, leading to cascading confusion as the two conversants would alternately start talking only to stop and listen to the other person doing the same thing.