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)?

3 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Feb 2017
There might be multiple causes that can cause this since the error is very generic.
  1. 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.
  2. 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)
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.

More Answers (0)

Categories

Find more on Instrument Connection and Communication in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!