I need to trigger a task to read continuously an analog voltage signal, on an external sample clock signal from PFI1. Can I use the DAQmxReadAnalogF64 command if I need to trigger the start of the acquisition from a digital rising edge signal on PFI0, or do I have to choose another command? I am writing in Visual Basic 6.0, using a PCI-6259 board.
You need to use the DAQmxCfgDigEdgeStartTrig function to configure the
trigger with the analog start. Please look at the help file located at
C:\Program Files\National Instruments\NI-DAQ\Docs\cdaqmx.chm for more
To configure the clock to use an external source, you can configure it
using DAQmxCfgSampClkTiming and specify the source to be PFI1.
The two functions above can be added to a basic example program which
is located at C:\Program Files\National Instruments\NI-DAQ\Examples on
your hard drive.
Please let us know if you have any further questions.