Output entire AO buffer once per trigger
- From: eaolson <x@xxxxxxxx>
- Date: Thu, 4 Aug 2005 17:40:38 -0500 (CDT)
I'm trying to output an analog waveform, using an external
trigger. I'd like to send the entire waveform once, each time a
trigger is received. So I'm setting up buffered analog ouput, and
setting the DAQmx Write property RegenMode to Allow Regeneration.
The output works fine once the first trigger is received. Each
time after that, however, nothing. As I understand regeneration,
once the entire output buffer has been written, the write marker
returns to the beginning of the buffer, ready to output the buffer
again. Is that correct?
The only thing I can think of is that I'm using a finite number of samples to
output in the Sample Clock setup. I don't want the waveform to be
outputted continuously, so that seems to be my only option.
I suppose I could continuously test to see if the task was done, and if
so, stop and start the task again. But that requires a while loop
to be running continuously. Is there no simple way to tell the
hardware to output the buffer with each trigger, or am I missing
something obvious?
GenOneBufferPerTrig.vi:
http://forums.ni.com/attachments/ni/170/135767/1/GenOneBufferPerTrig.vi
.
- Prev by Date: Re: Outputting waveform graphs as a file and editing colors
- Next by Date: Time Format Question
- Previous by thread: Re: Outputting waveform graphs as a file and editing colors
- Next by thread: Time Format Question
- Index(es):
Relevant Pages
|