Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Error:NIDAQmx no such file or directory

Hello,
I have got National Instruments DAQ software version 8.6 with S series
multichannel simultaneous PCI-6143 card.
I have installed all of the features.My operating system  is Windows XP.The

environment that i am using to converse with the device through the board
is
cygwin which is a linux like environment.

First of all, i could not find the folder "examples" in "C:\Program
Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include".
Is this because of that version i am using 8.6?Or some other reason?

Second issue :I am unable to compile an example written in C,took somewhere

from the forums where it includes the NIDAQmx.h file and when the compiler
does
find the header file i included the whole path of the directory:"C:\Program

Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h".
But it still gives the error :NIDAQmx.h:no such file or directory found.

Let me know if i have to get an other version or some other files.

Please kindly tell the right syntax to run and compile the code.I
I am using :
gcc -c "filename".c

Jasmeet
0 Kudos
Message 1 of 2
(6,171 Views)

Hi Jasmeet,

 

The C examples are located at C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples\DAQmx ANSI C.  Please verify that they are in that location.  In regards to using CYGWIN to compile DAQmx code, DAQmx on windows is compiled using visual studio and cannot be compiled (without extensive changes) using a gcc compiler.  The reason is because the calling convention for gcc is different.  The DAQmx Base and DAQmx 8.0 for linux drivers install gcc compiled examples that are compiled using gcc.  In short, the examples will not compile using a gcc compiler under windows. Is there a specific reason you are wanting to use CYGWIN?  Are you planning on running the code within the CYGWIN shell?  If this is the case, DAQmx 8.6 isn't supported under linux or CYGWIN.  If you would like to use a gcc compiler, your best option would be to use a supported linux flavour with DAQmx Base or DAQmx 8.0.

 

I hope this helps,

Paul C.

Message Edited by Paul C. on 10-07-2008 09:02 AM
0 Kudos
Message 2 of 2
(6,148 Views)