LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create VI's with inputs which will execute immediately when updated?

Solved!
Go to solution
I am using LabView to control stepper motors. I would like to create a VI with a front panel which has 4 directional arrows, 2 per motor. My goal is to be able to run the VI and then press a button to move the motor.

I have created separate VI for each funcition of the motors - a vi to set the holding current, one to set the moving current, another to move up by a certain amount, and so on. These vi's work and I can move and adjust the motors, but only by running separate VI.

How can i combine them into one VI and have them execute at the press of a button or change of a property? An example would be to set a new holding current, and have the holding current vi execute immediately and send the command to the motor. Then keep on pressing the directional buttons without having to hit "run" on another vi.

Thank you very much
0 Kudos
Message 1 of 2
(2,503 Views)
Solution
Accepted by topic author alek
The event structure will allow you to handle user input and execute when controls are used.  A "value change" event is what you're looking for.
Message 2 of 2
(2,495 Views)