Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue loading nidaqmx library in matlab when /3GB boot.ini option in winxp pro is activated

I am using matlab 2009b, Bits on win XP pro Bits SP3 to samples microphones with a National Instrument data acquisition card NI-4462.

I initially had 2Gb of RAM and I can sample and record fine then I added an extra 2Gb of ram.Windows recognize 3Gb (as expected for a Bits OS).

If I activate the /3GB option in order to be able to use the 3Gb in matlab virtual memory, the loading of the library nicaiu.dll (http://www.mathworks.de/matlabcentral/fileexchange/27609-daqmx-examples) fails with the error message:

??? Error using ==> loadlibrary at 474 There was an error loading the library "C:\Documents and Settings\Holistic Lab\Desktop\Kinect_Matlab_version1e\nicaiu.dll" A dynamic link library (DLL) initialization routine failed.

Error in ==> acquisition_kinect_manekin_1_1 at 45 funclist = loadlibrary('nicaiu.dll','nidaqmx.h','alias',lib);

Caused by: Error using ==> loaddefinedlibrary A dynamic link library (DLL) initialization routine failed.

If I remove the /3GB option, everything works fine.

Anyone would have a hint on that?

Thanks in advance.

0 Kudos
Message 1 of 7
(3,528 Views)

Hi guillaumegarreau, 

 

Can you tell me which version of DAQmx you are using? Thanks, 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 2 of 7
(3,505 Views)

hi,

 

i am using DAQmx 8.9.5 (501749A-01).

 

Do i need to do an update?

 

Guillaume

0 Kudos
Message 3 of 7
(3,499 Views)

Hello, 

 

There were a few issues related to this error that were corrected in version 9.1.1. I would recommend downloading the newest DAQmx drivers from ni.com/drivers. Please let me know if this fixes your issue. 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 4 of 7
(3,487 Views)

hi,

 

i download and install the  NIDAQmx 9.4.0 but i have exactly the same error.

 

regards,

 

Guillaume

0 Kudos
Message 5 of 7
(3,471 Views)

Hi Guillaume, 

 

I looked into this error a bit more, and often this error is caused by missing dependencies in the DLL. You can use a free utility called Dependency Walker, which steps through a DLL file and can identify files that are needed. More information on where to download and how to use this tool can be found here: 

http://digital.ni.com/public.nsf/allkb/E32D92BF5241A203862573000004E06F?OpenDocument

 

I hope this helps! 

Julianne K
Systems Engineer, Embedded Systems
Certified LabVIEW Architect, Certified LabVIEW Embedded Systems Developer
National Instruments
0 Kudos
Message 6 of 7
(3,459 Views)

hi,

 

i use the software that gave me 2 missing dll: ieshims.dll and wer.dll that seems to be not related to NI or matlab, i installed them and then ncrypt.dll and bcrypt.dll were missing after installing them new issue in the dll dependency appears so i dropped the issue and will do my work using only 2GB of RAM in matlab. even after the installation the initial problem wasn't solved.

 

thanks for your help and time,

 

Guillaume

0 Kudos
Message 7 of 7
(3,426 Views)