Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

An error of an DAQmx ANSI C example program

Hi,

I got a piece of error information when I run an example program, i.e. "Cont Acq-Int Clk-Anlg Start" of NI-DAQmx for analog input (please see the attachment for the error information). I tried my best to find the reason but I can't. I didn't change anything of that program. Could you please help me?

I don't have that problem when I try the analog output program.

Any help will be appreciated very much!

Marlon
0 Kudos
Message 1 of 2
(3,313 Views)
Marlon,

The code in ContAcq-IntClk-AnlgStart_main.c specifies "Dev1/ai0" as the channel to read from and "PFI0" as the trigger line. You may need to change these from the defaults to match the hardware and/or signals on your system.

Assuming that the channel and trigger line are specified correctly for your system, then it seems that a valid trigger signal is not being generated.

Note that the example uses 0.0 as the default trigger level. Depending on your specific trigger signal and possible noise on that line, your trigger signal may never cross 0.0 and therefore may never trigger the read. You could try modifying your trigger signal or the trigger level and see if that fixes the problem.

-Jeff
NI
0 Kudos
Message 2 of 2
(3,313 Views)