Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx How to control the AO voltage level while paused from a pause trigger?

Solved!
Go to solution
I have an application where I need to generate a waveform of a fixed frequency (~200kHz) and amplitude, but for differing burst lengths and different lengths of time between bursts. These bursts and delays are controlled by a DIO line to generate the pause trigger. I also need to have the analog output voltage at a controlled voltage between waveform bursts. I've explored using various trigger options, the pause trigger seems to be the best fit, but I'm having difficulty controlling the specific end point of the waveform when the pause occurs to ensure that the paused voltage is at the same specified voltage when the waveform is masked. I've attempting adapting the example post "Pause Analog Output of Periodic Signal with Regeneration on Specific Sample" but cannot consistently obtain the voltage during the pause that I'm after. I'm using an X series DAQ card. Is there a simple way to pre-set the voltage that will be output during the pause condition when using a pause trigger? I haven't been able to locate it in any examples or documentation. I can't use the set AO reference code example as it is software driven and doesn't fit in the timing pattern I need to generate.
0 Kudos
Message 1 of 2
(3,176 Views)
Solution
Accepted by topic author CFenner

Hi,

 

I don't think that there is a way to set a certain level on the analog output based on a pause trigger.  I would look at using a retriggerable analog output task, and have it start on the desired voltage each time.

0 Kudos
Message 2 of 2
(3,153 Views)