LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

off digital IO after press stop button

Solved!
Go to solution

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?

0 Kudos
Message 1 of 16
(3,504 Views)
Solution
Accepted by topic author JohnS11

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 : 

 

Example_VI_BD.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 16
(3,498 Views)

thanks. can share ur .vi file?

0 Kudos
Message 3 of 16
(3,494 Views)

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

Antoine Chalons

0 Kudos
Message 4 of 16
(3,492 Views)

 

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

0 Kudos
Message 5 of 16
(3,490 Views)

version 2010 will do

0 Kudos
Message 6 of 16
(3,488 Views)

sorry, i need it in 2009

0 Kudos
Message 7 of 16
(3,487 Views)

@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

Antoine Chalons

0 Kudos
Message 8 of 16
(3,486 Views)

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

Antoine Chalons

0 Kudos
Message 9 of 16
(3,484 Views)

thanks, bro

0 Kudos
Message 10 of 16
(3,481 Views)