![]() Without the Event Structure, in order to detect if a user pressed a STOP button, for example, you have to "poll" its value periodically in a While Loop (like you've done in several of the activities). ![]() You can even define your own custom events. So what is an event anyway? An event can be almost anything that "happens" in LabVIEW, for example:Īs you can see, events usually refer to GUI events, but can also refer to front panel controls changing their value. Placing an Event Structure onto the block diagram from the Programming>Structures palette It allows you to write highly efficient code that waits for events to happen, rather than inefficient code that periodically checks whether events have happened.įigure 13.44. ![]() The Event Structure (found on the Programming>Structures palette) is an extremely powerful programming tool (see Figure 13.44).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |