12-10-2009 01:34 PM
I have been thinking about using event structures lately. Mainly to advance my programming in general secondary to get rid of some of the common things I don't like doing. Like having to put "Exit" buttons on panels to make sure instruments are shut down properly, files closed, etc. when exiting. It would be nice to have this dong just by closing the window.
Anyway I have not had any formal LabVIEW training since LabVIEW 5.1 so I do not know how to use event structures, times structures, queue, s and many of the newer advancements.
I have looked at the examples and read a couple of the small tutorials but I just do not understand how to use them.
Anyone know of any really, really good tutorials on using event structures?
12-10-2009 02:39 PM
The "New Event Handler" example looks like the simplest example of an event structure. It's just a block that waits until an event occurs, and then executes the code contained within that event. If you want to wait for another event after processing the first one, put the event structure inside a while loop.
Have you tried using one in your code? Perhaps you just need to give it a try, and if something doesn't work the way you expect, post your code here and ask for an explanation.
12-10-2009 04:25 PM
Hope this helps: