LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble triggering analog output

Hello Again Jesse,

I made the changes you mentioned and have attached my latest attempt.  I do not get any errors now and on the front panel of the vi the waveform looks correct, but I am not getting anything from my analogue output pin.  I am not sure if I created the waveform properly or put it in the right location in the sequence of events.  I did notice that when I look at the number or samples written to the waveform (in the while loop) it says that there is only 1 sample written, but I tell it to write 250 samples, so I imagine this has something to do with the lack of outputed signal.  Any thoughts?

Azazal
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 11 of 13
(637 Views)

Hello Azazel,

I would refer to the multi-function example (Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Synchronization >> Multi-Function >> Multi-Function-Synch AI-AO.vi).  This example demonstrates how to set up the AO task correctly.  I would also refer to the finite retriggerable example (Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Generating Digital Pulses >> Gen Dig Pulse Train-Finite-Retriggerable.vi)

You might also consider setting up a start trigger on the AO task to wait for the counter task to start.   Once the start task vi is executed, that task will begin to perform its desired function.  The DAQmx write needs to be called before the start task is executed.  The DAQmx write vi is going to send the waveform to the FIFO (On board memory).   I would place a DAQmx Is Task Done.vi in the while loop for the counter task.

The multi-function example will give a starting point for connecting your AI & AO tasks.  The counter example should be incorporated into the multi-function example to give you the functionality that you need. 

Respectfully,

Rob F
Test Engineer
Condition Measurements
National Instruments
0 Kudos
Message 12 of 13
(625 Views)
Thanks all for the recomendations.  I have attached a working vi, that produces a re-triggerable analogue output with the PCI-6259 DAQ card.

Azazel
Azazel

Pentium 4, 3.6GHz, 2 GB Ram, Labview 8.5, Windows XP, PXI-5122, PCI-6259, PCI-6115
0 Kudos
Message 13 of 13
(604 Views)