From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set AO channel to 0 value when VI stopped

when a VI stopped, the AO channel stopped on the level it's get, how to set these analog output to zero when stop a vi?

0 Kudos
Message 1 of 4
(2,459 Views)
Just do another DAQmx Write in your stop event or place it outside your while loop.
0 Kudos
Message 2 of 4
(2,455 Views)

Hi!

As a second option (and if your device supports it ) you could set the property "Idle Output Behavior"

 

see here:  http://digital.ni.com/public.nsf/allkb/dc9d2ab6dfb1924e86257260000cc350

and here: http://forums.ni.com/t5/LabWindows-CVI/Analog-output-behavior-after-the-task-has-stopped/td-p/655137

 

Regards,

Marco

0 Kudos
Message 3 of 4
(2,442 Views)

is there a list of which devices support AOIdleOutputBehavior ?  thanks.

0 Kudos
Message 4 of 4
(2,284 Views)