LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

New to using Event Structure, where to start?

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?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 1 of 3
(2,545 Views)

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.

0 Kudos
Message 2 of 3
(2,523 Views)

Hope this helps:

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 3
(2,505 Views)