LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ, move voltage to an initial value

Solved!
Go to solution

Hi,

I'm using the analog voltage output of a NI card to control a galvo motor mounted mirror. Right now, I'm having the voltage oscillate repeatedly in a sharkwave from -3V to +3V while using an external clock source to move the voltage between each position.

 

Since the initial position is at 0V, when I start the program, the voltage goes from 0V to -3V, -2,99, -2.98, ... and repeat indefinitely until I hit a stop button.

 

I would like to avoid the jump from 0V to -3V and to reset the voltage to 0V once finish. I'm don't know how to input an initial voltage sequence, followed by a repeated voltage sequence and finish with a final voltage sequence. I'm unsure about the order of the DAQ functions I need to call. 

 

Note, the initial voltage would need to start without the external clock source since this clock will only start once the repeated scanning pattern will start. I've linked a simplify example image of how it currently looks like.

 

Thank you.

0 Kudos
Message 1 of 4
(1,447 Views)
Solution
Accepted by topic author RaphaelMT

Configure the AO.IdleOutputBehavior to ZeroVolts to tell DAQ to go back to 0V when nothing is generated.

santo_13_0-1644973653213.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(1,427 Views)

Thanks. This might work to set the ending position to zero. When is the idle triggered? When there's a timeout or at the end of the process?

 

I want to avoid the voltage to go back to zero between each scan position.

 

0 Kudos
Message 3 of 4
(1,424 Views)

Idle is when the task is not running - aborted/committed/verified state

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 4
(1,414 Views)