LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

'NIDAQmx.h': No such file or directory

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(10,121 Views)

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

0 Kudos
Message 2 of 4
(10,006 Views)
Solution
Accepted by cylnu

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

0 Kudos
Message 3 of 4
(10,002 Views)

That's great news! Could you mark this as the solution?

0 Kudos
Message 4 of 4
(9,982 Views)