LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with events

Hi, I'm kind of new with LabVIEW.
I've been teaching myself on LabVIEW 7.1 by making programs, such as iterators, DAQ programs and several other simple ones.
 
One topic I have been stuck on is 'events'. I don't really understand when or how to apply those.
Could someone please tell me when someone would use an event or give me some example code of when it is applied?
 
Thanks,
Cory
Cory K
0 Kudos
Message 1 of 4
(2,698 Views)
Hi cory,

in your LV examples you'll find many examples for using events: "examples/general/uievents.llb"...

Events are great to control user interfaces (among other purposes...).
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,690 Views)
Here is a really basic example of an event driven program.

Events are good for user interface because you can execute different code depending on what the user does.


0 Kudos
Message 3 of 4
(2,686 Views)

Oh OK, I understand what those are.
I have just been using case structures controlled by Boolean controls.
I didnt know you could use events like that.

Thanks for your help,
Cory

Cory K
0 Kudos
Message 4 of 4
(2,678 Views)