Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

retriggerable AO advanced 6

I want to refresh analog output whenever the digital trigger is received. I found'retriggerable AO advanced 6.vi' in Ni Developer Zone with 'retrigger analog' as a keyword. When I ran, I found that output is freqently non-synchronized with a digital signal. I would like to fix it first. Also, I modified this program so that I tried to refresh ao waveform. However, i got same issue of nonsynchronized output with digital trigger.

Anybody tried to do a same job before?
0 Kudos
Message 1 of 2
(2,727 Views)
If you search the Example Code Library of the Developer Zone (linked below)

http://www.ni.com/devzone/dev_exchange/ex_search.htm

for "retrigger analog", an entry that contains the "retriggerable_AO_advanced_6" VI will be listed -- "Retriggering Analog Output Generation". I am assuming that this is the VI to which you are referring.

I tested this VI, and it worked well. Although the output data is only displayed once on the front panel waveform graph (due to where it is connected on the block diagram -- it is not in the while loop)a sine wave was output every time that I generated a trigger.

The subVI entitled "PULSES STC" uses two counters on your data acquisition board to generate the update clock pulses needed to accomplish this. It is import
ant that you do not try to use this two counters for any other function or connect anything to them other than the trigger signal. By default, the trigger signal is expected on the GATE 0 pin of your board (please see the user manual of your board for an actual pin number). However, you can change this setting in the PULSES STC subVI.

Using two wires and the Measurement and Automation Explorer (MAX) test panel, you can test this VI as well. First use a wire to connect the output of counter 1 to an analog input channel. Run the VI and observe the analog input channel in MAX; everytime you generate a trigger signal, a short burst of pulses should be generated and input on the analog channel. You may need to select "Continuous" mode and set the sample rate to 10,000 Hz in order to see the signal. Next connect a wire between your analog output channel and an analog input channel. Again run your VI and you should see the sine/ramp signal every time you send a digital trigger signal
.

I hope this helps!

Sonya
0 Kudos
Message 2 of 2
(2,727 Views)