LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

off digital IO after press stop button

Solved!
Go to solution

This works well.

 

I'm curious if TWO digital line need to stop simultaneouly while pressing ONE stop button only,

I try to change the DAQmx write where Digital>multiple channel> single sample>1D Boonlean

 

when i wire the constant true to data line of the DAQ mx write, theres error there.. Am i missing something? appreciate if you can check this.

0 Kudos
Message 11 of 16
(608 Views)

@JohnS11 wrote:

This works well.

 

I'm curious if TWO digital line need to stop simultaneouly while pressing ONE stop button only,

I try to change the DAQmx write where Digital>multiple channel> single sample>1D Boonlean

 

when i wire the constant true to data line of the DAQ mx write, theres error there.. Am i missing something? appreciate if you can check this.


Well if you want to write multiple dig.lines at the same time you need to give the value for each line, so a 1D array of boolean, one element per line.

 


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

Epictetus

Antoine Chalons

0 Kudos
Message 12 of 16
(601 Views)

Hi Titou,

 

Previously, after run your vi, the digital IO will be off after press the stop button. this is a wonderful vi.

 

 

Refer to the ask.png

what i plan to do as follow....(Replace the stop button with a reading from analog input)

 

when analog input read a voltage less than 0.5 volt, the indicator will change, and it will off the digital IO..

whats wrong with it? it can't work..help to correct it. Thanks.

0 Kudos
Message 13 of 16
(590 Views)

In short, How to replace the "manually press stop button inside the event structure" with "analog input read voltage less than a value then true"?

0 Kudos
Message 14 of 16
(565 Views)

Hi,

 

This may not be exactly what you need but it should help you to get there, here's a VI based on one of the examples that comes with LabVIEW :

 

Multi-Function-Synch AI-Read Dig Chan_BD.png

 

If you give more details on what you application is, we can then adapt this VI to do what you want.

Feel free to ask any question if you're not clear with how it works.

 

Hope this helps


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

Epictetus

Antoine Chalons

Message 15 of 16
(562 Views)

oooops... here it is in LV2009.

 

 


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

Epictetus

Antoine Chalons

0 Kudos
Message 16 of 16
(561 Views)