- 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 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 21 Mar 2014
Modifié(e) : MathWorks Support Team
le 7 Fév 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.
Réponse acceptée
MathWorks Support Team
le 7 Fév 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Instrument Connection and Communication dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!