Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

"analog out"

Hello all,

I am trying to out an analog DC value using the PXI6251.i hav configured it as shown in the picture.I want the vi to give value only when the vi is executed.i am  still getting the value  after the execution of the vi is over.ie analog out(ao0 is outing the voltage always)Can anyone find  out what is the problem with my vi.i am attaching the snap shot of my vi here


Thanks for your help in advance
Techiess
0 Kudos
Message 1 of 4
(3,463 Views)

You are almost there. You only need to include another DAQmx Write.vi outside your while loop with a zero written to it to reset your analog output when your vi completes.

 

 

Buddy Haun
Certified Trainer, Former Alliance Member, LabVIEW Champion
0 Kudos
Message 2 of 4
(3,454 Views)
Thanks for your reply Buddy

Now my problem is solved and it works as expected..........

But still i am confused about the working of DAQmx clear Task VI.Why it behaves like that?
If the scenario is like this what is the use of this vi?

Thanks & Regards
Techiess


0 Kudos
Message 3 of 4
(3,441 Views)
Just like the help for the function says, it releases the resources that the task was using. You might, in some circumstances, wish to use a new task on the same hardware resource. As Buddy said thougj, it is not a hardware reset.
0 Kudos
Message 4 of 4
(3,432 Views)