01-15-2008 04:26 AM
01-15-2008 04:43 AM
01-15-2008 05:58 AM
01-15-2008 07:28 AM
Mike,
by the vi we control a lab test stand. The operator needs to do some handling while the software is waiting in the event structure. When he is ready he presses the push button. Later on some other handling needs to be done. Again the software waits until the operator pushes the same button a second time. Hence, the button should be named best "Proceed" or similar.
Due to the problem we described in our post, the code only works properly through the first step. As soon as the software execution arrives at the second event structure, the first event is still stored and the event structure doesn't wait for the operator anymore.
For my taste, the way NI programmed LabVIEW in this case is not very logical. Why is the second event structure already armed although the code execution has not yet arrived at the second event structure?
Thanks,
Peter
01-15-2008 07:37 AM
01-15-2008 07:42 AM - edited 01-15-2008 07:43 AM
Hi stoeckel,
what is about this way? -> attachment!
Mike
01-15-2008 07:55 AM
Hi Ton,
thanks for your useful comment. I changed the code to dynamic event registration and now it works as desired indeed. For anybody who is interested I attach the modified code again.
Well, I was able to do the programming but I really don't understand yet what the difference between the conventional event structure programming and the usage of dynamic event registration is. Why does my fist vi not work properly while the second does? Why is -- in the first vi -- the second event structure armed from start of the vi on, while in the second vi with dynamic event registration it isn't?
Peter