03-09-2006 02:36 PM
Hi,
I am trying to convert some legacy code to use NI-DAQmx functions. The DAQmx library (nidaqmx.lib) appears to be intended for Microsoft Visual C. Unfortunately, we are using the WATCOM C/C++ version 11 compiler. Is this library compatible with the WATCOM linker?
This issue came up because I am using a MATALB Mex function to call the DAQmx routines. When I try to compile the code I get the following error:
>> mex selfcal_ni4472.c nidaqmx.lib
The instruction at 0x69c16ed0 referenced memory at 0x003d8000.
The memory could not be read.
C:\MATLAB71\BIN\MEX.PL: Error: Link of 'selfcal_ni4472.mexw32' failed.
??? Error using ==> mex
Unable to complete successfully
But when I comment out the one call to the DAQmx routine there are no errors. In the past I was able to compile the Mex file with the same compiler when legacy DAQ calls were used.
Thanks.
03-13-2006 02:55 PM
03-13-2006 03:08 PM
03-13-2006 03:21 PM