Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

generata a Digital Impuls, after receiving a analog trigger signal


I use two pci-6110 cards, which start DAQ over an analog trigger channel. Now this pci card should start DAQ also in an external device, by generating a digital output puls ( low to high), so that the DAQ can begin on all devices simultanously.

Is there a sample code for this case in C++

thanks in advance
HM

0 Kudos
Message 1 of 2
(2,661 Views)
You don't say whether you are using NI-DAQ Traditional, or NI-DAQmx. You also don't say whether you are using Labview or C++ or CVI or..., so my suggestion here is pretty general, and I have aimed it at NI-DAQmx.

Use one of the onboard counter/timers to generate the digital pulse. You can trigger the pulse using

1) the same signal that triggers the analog input scan (if it's a digital signal)

2) If you are using an analog trigger for the input scanning, use /Dev1/AnalogComparisonEvent.

3) Use /Dev1/ai/StartTrigger.

The /Dev1/ai/StartTrigger will work even if the analog input scan is started programmatically.

You should be able to find an example of a triggered one-shot pulse generator in the examples included with NI-DAQmx, for whatever development environment you are using.
John Weeks

WaveMetrics, Inc.
Phone (503) 620-3001
Fax (503) 620-6754
www.wavemetrics.com
0 Kudos
Message 2 of 2
(2,638 Views)