Output entire AO buffer once per trigger



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
.



Relevant Pages

  • Re: [Ocfs2-devel] [PATCH 01/35] jbd2: Add buffer triggers
    ... This adds triggers to jbd2 buffer heads. ... an abort trigger will be ... used for non-buffer-related events like transaction completion. ... journal/transaction wide triggers should be implemented separately. ...
    (Linux-Kernel)
  • [PATCH 01/35] jbd2: Add buffer triggers
    ... This adds triggers to jbd2 buffer heads. ... an abort trigger will be ... used for non-buffer-related events like transaction completion. ... journal/transaction wide triggers should be implemented separately. ...
    (Linux-Kernel)
  • Re: Writing waveforms from Ch. 0 of niSCOPE to binary file in a multi-record setup?
    ... pulse train for a trigger and the generated sawtooth from the niFGEN ... Just to make sure synchronization is taking place, ... sawtooth is also fed as input to the niSCOPE for acquisition. ... The expected behavior is to only generate a single sawtooth waveform ...
    (comp.lang.labview)
  • Re: MFC Not Triggering OnReceive
    ... simple program that listens for a connection, ... program and i cannot get myonReceiveto trigger. ... when i send data to it the buffer receives the data but theonReceive ... the framework automatically calls the OnReceive function. ...
    (microsoft.public.vc.mfc)
  • Re: Advice on PC Based Logic Analyzer
    ... article in that I will rather buy 8 'good channels' with sufficient ... buffer depth than 32 channels and anyway not be able to use them all. ... busses are contained within the processor core, so the analyzer is ... needed is to delay the trigger based on an edge count or time. ...
    (sci.electronics.equipment)