LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ I/O

Hey there I have a doubt about daq I/O state , because when I close the labview app by X button the state of I/O keep the same so I would like to reset I/Os to 0 because it may keep an atuador or motor running .

0 Kudos
Message 1 of 11
(606 Views)

Hi Chris,

 


@Chris9823Alb wrote:

when I close the labview app by X button the state of I/O keep the same so I would like to reset I/Os to 0 because it may keep an atuador or motor running .


When you want to output a certain value on your DAQ output when you end your program then you need to output that value before your program stops! Simple as it is...

 

In general there should be some kind of "cleanup" state/stage before the program finishes, and output final DAQ values is one item on the cleanup list!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(593 Views)

How Can I Reset to Zero My Analog Output Value After I Stopped My Application?

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 3 of 11
(540 Views)

I would like on labview code if the program get an error the program close and outputs set be 0

Chris9823Alb_0-1710350224542.png

 

0 Kudos
Message 4 of 11
(638 Views)

A truncated image is not useful to us. What kind of errors are you expecting?

0 Kudos
Message 5 of 11
(630 Views)

Your DAQmx Write will not work inside of the Error case because it will skip if it has an error coming in.  Disconnect the error input of the DAQmx Write.  You will want to use a Merge Errors after the DAQmx Write so that you don't lose the error that caused this case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 11
(620 Views)

thanks it worked , does have an option to zero the outputs when click abort execution?

0 Kudos
Message 7 of 11
(611 Views)

@Chris9823Alb wrote:

thanks it worked , does have an option to zero the outputs when click abort execution?


No. You need to prevent the user from aborting the VI and there are many ways to do that.

0 Kudos
Message 8 of 11
(608 Views)

which ways ?

0 Kudos
Message 9 of 11
(582 Views)

Mix&Match:

 

Hide the toolbar, hide the windows bar, use panel close filtering event, etc. etc.

0 Kudos
Message 10 of 11
(575 Views)