- Make sure that the latest version of NI-VISA (5.1 or later) is installed. Older versions of NI-VISA (5.0) are missing some required header files.
- Using IVI-C drivers (such as NI-DCPower) with 64-bit MATLAB (R2014a and earlier) installations require a properly installed and configured C++ compiler (as opposed to 32-bit MATLAB installations, which include a compiler)
Why do I get "Failed to load shared library." error when using NI-DCPower support package (or IVI-C driver) with ICDEVICE in Instrument Control Toolbox (64-bit MATLAB)?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 21 Mär. 2014
Bearbeitet: MathWorks Support Team
am 7 Feb. 2017
I am trying to use the NI-DC Power support package with Instrument Control Toolbox MATLAB 2014a (64 bit), and when running the following command:
I am getting the following error
>> ictObj = icdevice('nidcpower.mdd', 'DAQ::PXI1Slot1', 'optionstring','simulate=true');
Error using icdevice (line 233)
Failed to load shared library.
Akzeptierte Antwort
MathWorks Support Team
am 7 Feb. 2017
There might be multiple causes that can cause this since the error is very generic.
Run mex -setup to check whether a valid compiler has been configured.
>> mex -setup
If there is no compiler configured, then the expected error would be:
>> ictObj = icdevice('nidcpower.mdd', 'DAQ::PXI1Slot1', 'optionstring','simulate=true');
Error using icdevice (line 233)
A 'Selected' compiler was not found.
You may need to run mex -setup.
However, in case of a failed Windows SDK 7.1 installation, the error might be:
>> ictObj = icdevice('nidcpower.mdd', 'DAQ::PXI1Slot1', 'optionstring','simulate=true');
Error using icdevice (line 233)
Failed to load shared library.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Instrument Connection and Communication finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!