01-09-2013 11:08 AM
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.