Linux Users

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring Data from AI0 channel on NI 6220

Hi,

I'm developping a c program for the NI 6220 acquistion device

on centOs 6.3.

I tried  two test programs from the example programs coming with nidaqmx packages such as:

Acq-IntClk-AnlgStart

My purpose is to acquire data using an external trigger (TTL 5 Volts signal)

I can acquire data from the ai0 channel without any trigger

but when I try with DAQmx functions like:

daqmxcfganlgedgestarttrig or daqmxcfgdigedgestarttrig, the next task doesn't occur :DAQmxErrChk (DAQmxStartTask(taskHandle));

Here is the message I receive:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

DAQmx Error: Reading relative to the reference trigger or relative to the start of pretrigger samples position before the acquisition is complete.

Wait for the acquisition to complete before reading, or increase your read timeout.  Also, make sure the hardware is set up and wired correctly, the signal for the reference trigger is correct, and that the reference trigger occurs while the device is acquiring data.

Property: DAQmx_Read_RelativeTo

Corresponding Value: DAQmx_Val_FirstPretrigSamp

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So I can't go further in my development,

I would like to know why this happens and how to resolve this problem,

thank you for your support,

Ronan, From France.

0 Kudos
Message 1 of 1
(3,221 Views)