Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read an analoge signal from a NI USB 6008 in C++

I am running a motion control progam through Visual Stuido in C++ and I need to record some load cell data. Does anyone have an exaple code for reading an analog signal from a NI USB 6008 into C or C++? I know I could purchase Measurments Studio to do this, but I don't ever forsee needing to do this again.
0 Kudos
Message 1 of 4
(4,047 Views)
Do you see Start>National Instruments>NI-DAQ>Text-Based Code Support>ANSI C Examples? If not, you probably did not install the correct language support when you installed the DAQmx driver.
0 Kudos
Message 2 of 4
(4,044 Views)
Yes, i found that folder, and the folder containing voltage reading examples. Is there a particular case I should look at? This is very helpful by the way thank you.
0 Kudos
Message 3 of 4
(4,028 Views)
The simplest is the Analog In>Measure Voltage>Acq-Int Clk. Acquires a finite amount of samples. You might also look at the Cont Acq-Int Clk example. This continuously acquires. The other examples use different types of triggers. I think the 6008 only supports a digital trigger.
0 Kudos
Message 4 of 4
(4,026 Views)