05-18-2012 02:32 AM
refer to the attached file, the digital I/O will be on once the vi is run. This is due to the Constant True button is wired to the data line.
How to off the digital I/O, once the stop button is pressed? Any good idea?
Solved! Go to Solution.
05-18-2012 02:53 AM
Hello,
When "Stop" is pressed, the while loop will stop and then the "Clear task" will execute, so it is between the two that you should insert another "Write" with a false linked to it.
But maybe you could also do that :
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 02:57 AM
thanks. can share ur .vi file?
05-18-2012 03:00 AM
This is a snippet (vi save in a png file), download the png file and drag and drop it to your VI's diagram.
By the way this is in LV 2010, which version do you have?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 03:09 AM
Whats the "green colour" loop? How to write "No Error" there?
Whats the " grey-white colour" loop? How to write " stop": value chang" ?
please help..its good to have the vi file...so that i can point using the show context help
05-18-2012 03:11 AM
version 2010 will do
05-18-2012 03:14 AM
sorry, i need it in 2009
05-18-2012 03:15 AM - edited 05-18-2012 03:16 AM
@JohnS11 wrote:
Whats the "green colour" loop? How to write "No Error" there? It's a case structure, when you drop it from the palette it's gray, but when you connect an error cluster to the selector terminal the "no error" case becomes green and the "error" case becomes red.
Whats the " grey-white colour" loop? How to write " stop": value chang" ? It's an event structure, it can detect events that you register for. To register for an event you right clic on the frame and select "Add event case" then comes a windows in which you can set the event you want to catch, the most used type of events is the "value change" on a control, so first select the control from the list and them select the "value change" event.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 03:17 AM
Sure, here it is in LV 2009
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
05-18-2012 03:20 AM
thanks, bro