02-15-2022 06:08 PM
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.
Solved! Go to Solution.
02-15-2022 07:08 PM
Configure the AO.IdleOutputBehavior to ZeroVolts to tell DAQ to go back to 0V when nothing is generated.
02-15-2022 07:14 PM
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.
02-15-2022 09:24 PM
Idle is when the task is not running - aborted/committed/verified state