10-12-2007 05:54 PM
10-15-2007 06:33 PM
Hi OldLaserJock,
You can easily synchronize the
analog input and output channels of your PCI 6221 for a continuous acquisition. If I understand your application correctly
however, it sounds like you would like to retrigger the analog input for every
rising edge. Analog Inputs on the PCI 6221
do not support retriggering; meaning they can only be triggered once for a
finite acquisition. The workaround is to use a retriggerable counter task.
The idea is to create a counter task that outputs a finite digital pulse train
every time it is triggered. You can then
internally route this pulse train to the sample clock for the analog input. Every time your analog output produces a
rising edge, the counter will be triggered and will generate a finite number of
pulses, which will clock in a finite number of samples for the analog input. There is a shipping example in LabVIEW which
demonstrates how to clock the analog input with a counter pulse
generation. You can find it under Hardware
Input and Output » DAQmx » Synchronization » Multi Function » Multi-Function-Ctr Retrigg Pulse Train Generation
for AI Sample Clock.
As for the .01ms delay, you can
effectively achieve the delay by discarding the first few data point.
I have one last question about
your application. When you say you want
to “measure voltages at two different points,” do you mean that you would like
to use two analog input channels? Keep
me posted on your progress.
Keep me posted on your
progress.
10-17-2007 05:47 PM