From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-01-2017 12:22 PM
Hello,
I am using an external compiler (gcc) to program NI 6255 on Windows 10. I have downloaded the NI-DAQmx 17.1.0 Driver Software and started with the available sample codes. When I run a sample code with gcc, it gives me the error ' 'NIDAQmx.h': No such file or directory' since the header filed is included in the program.
As I read in the forum, this header file should be located in <Program Files>\National Instruments\Shared\ExternalCompilerSupport\C\include\NIDAQmx.h . However, inside the Shared directory, there is no 'External Compiler Support'. Therefore, I cannot find the header files.
Can someone tell me what I am missing?
Cheers
Solved! Go to Solution.
07-05-2017 04:51 PM
Hey cylnu,
I have been looking into this quite a bit, and I think the issue might be in the DAQmx install. Did you make sure to install support for ANSI C when you did the install? If not, make sure you have that installed. This document shows how to modify your installs to include examples:
http://digital.ni.com/public.nsf/allkb/CA27535CCC93674086256E0B00784CBA
Follow this, but choose ANSI C under the application development support and make sure it is installed. Then, you should be able to find the header file in the directory that you listed.
Cheers,
Ryan
07-05-2017 05:03 PM
Hey Ryan,
Thanks a lot for your reply. I figured it out actually. I have installed NI-DAQmx 17.1.
The header file is located at
C:\Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
cynlu
07-06-2017 08:01 AM
That's great news! Could you mark this as the solution?