06-05-2017 11:09 PM
Hello,
I would like to interface NI 6255 using ANSI C and sample at least one of the channels. Can anyone share any sample code or give any recommendation?
Regards
06-06-2017 02:10 PM - edited 06-06-2017 02:12 PM
Hi cylnu,
The DAQmx ANSI C examples are located by default in the following directory:
C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C
These will install automatically with DAQmx, and should be a great step to get started. If you still need help from here, we'll need to know a little more about your application:
Nick
Applications Engineer
National Instruments
06-07-2017 10:21 AM
Thanks Nick,
I found the sample codes.
At the beginning, I will be reading analog signal from a pressure transducer.
I havent verified my connections yet. I think first I need to learn how the test panel is used. I am also studying the sample codes.
Aerospace Engineer
06-08-2017 09:42 AM
This article describes how to test a signal using the Test Panel in NI MAX:
"Using Test Panels in Measurement & Automation Explorer for Devices Supported by NI-DAQmx"
http://www.ni.com/tutorial/4638/en/
If everything is wired up correctly, you should be able to see a good signal in the Test Panel. Once that's up and running, you can start implementing data analysis, logging, etc. in your code by modifying the existing examples.
Nick
Applications Engineer