LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Event in Event Case

I want to cause a single event in each event case during the initialization of a program.  Is there a good way to do this?
0 Kudos
Message 1 of 7
(3,255 Views)
I want to programmatically do this, so that the user is unaware that this happened.
0 Kudos
Message 2 of 7
(3,253 Views)
Hi JBSLab,

you may use "Value (signal)" property nodes when your event structure is detecting value change signals...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(3,247 Views)
Hey GerdW -
 
I'm not sure that's what I want.  To describe this better....
 
I'm trying to change some scales on a few front panel controls in an event structure.  The user loads a "configuration" file which preloads the scale values.  I don't want the user to have to cause an event to happen before the scales are updated.   I just want the each case to run one time after the user loads the "configuration" file.
0 Kudos
Message 4 of 7
(3,231 Views)

If that's the case, why not just have it happen in line, caused by data flow?  After the user loads the config file, wire the data to a SubVI or something else that can update whatever needs updating

0 Kudos
Message 5 of 7
(3,226 Views)
Thats exactly what Gerd suggestion will do.
 
Load your configuration in one event and write the new values to signaling value properties of all values that typically trigger their own event. Use the error cluster to determine in which order the events should be queued up.
0 Kudos
Message 6 of 7
(3,224 Views)
Had to think about it for awhile, but ended up being super easy.  Thanks for the help!
0 Kudos
Message 7 of 7
(3,190 Views)