07-01-2013 01:43 PM
I just started using labview at work and need some help with my last bit of code. I'm writing a program to control an instrument which requires a 'halt' signal and a 'reset' signal. When the intrument is halted (for error reasons a continuous halt signal is generated) the way to reset the device is by outputting a 'reset' signal.
The halt signal is triggered by a boolean button or an error from a DAQmx input, the reset signal is triggered by a boolean button within a case structure that is true when the halt signal is being output.
My question is when the reset button is pressed (error fixed), I want the discharge button to be depressed, otherwise my program would get stuck in a negative loop (i.e i reset the device but the halt button is still pressed). I cant press two buttons at once!
How do I link these?
Thanks!
Solved! Go to Solution.
07-02-2013 06:25 AM
07-02-2013 06:37 AM
You can create a property node to set the button's value. Right click on the button in the Block Diagram, select Create >> Property Node >> Value, right click to change to write, and set it to whatever value you wish. Remember to set the mechanical action of the button to be consistent with the behaviour you need to start/stop other processes.