Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

AO trigger without calling AOSTART

I managed to trigger AO using a PFI pin.

Now I need to start the output generation after each rising edge of a 10 KHz square wave connected to the PFI. The problem is that I cannot call AOStart each time I need to trigger.

I tried writing the buffer to the output more than once (changing "number of buffer iterations" in AOSTART), but that doesn't work (the output doesn't wait for the next trigger, it just outputs the buffer over and over after the first edge is detected)

Any idea??
0 Kudos
Message 1 of 4
(2,809 Views)
You could use the 10kHz square wave as an external clock for the analog output generation. You could set the clock source input of the AOStart VI to external and set it to be the PFI line that correlates with the UPDATE pin. This would output one value every time the 10 kHz square wave was received. There is a LabVIEW shipping example entitled 'Cont Generation-Ext Clk VI' that you could take a look at. I hope this helps.

Regards,

Todd D.
0 Kudos
Message 2 of 4
(2,809 Views)
If I didn't misunderstand, you said that with that setup, on every edge of the 10KHz square wave, one value of voltage will be output.

But what I need is to output a vector of values each time a positive edge is detected (lets say that I need to output 2 short pulses with a resolution of 1 microsecond).

What do you think? Is it possible to make it work? I forgot to say that the board I'm working with is the PCI6110E.

Thank you!!!

Diego
0 Kudos
Message 3 of 4
(2,809 Views)
There are examples that illustrate retriggerable analog output. The example below uses two counters to generate a retriggerable pulse that can then be used as an external clock for the analog operation. This is the only other thing I can think of. I've attached the example below.

Regards,

Todd D.
0 Kudos
Message 4 of 4
(2,809 Views)