DAQ does not recognize vendor but vendor is listed as operational

76 visualizaciones (últimos 30 días)
Michael Stachowsky
Michael Stachowsky el 14 de En. de 2020
Respondida: Kautuk Raj el 23 de Oct. de 2024
I am trying to connect to an NI USB-6001 DAQ. I've got MATLAB 9.7.0.1216025 (R2019b, Update 1) and Data Acquisition Toolbox 4.0.1 (2019b). I have NI's DAQ-MX installed and I have previously been able to connect to my DAQ. The blue light is solid on the USB-6001, indicating that it is connected and there are no issues.
I run the following code:
daqreset
daq.getVendors
and I get an error message:
Error using CIVE123_ACPhaseExploration (line 2)
Vendor 'ni' not recognized. Use 'daq.getVendors()' for a list of
vendors.
Caused by:
Vendor 'ni' is not operational.
Use 'daq.getVendors()' for a list of supported vendors.
Support for the vendor may require installation of the driver via
the Support Package Installer.
However, if I run
daq.getVendors
I get the message:
>> daq.getVendors
ans =
Data acquisition vendor 'National Instruments(TM)':
ID: 'ni'
FullName: 'National Instruments(TM)'
AdaptorVersion: '4.0.1 (R2019b)'
DriverVersion: '19.5.0 NI-DAQmx'
IsOperational: true
I've shut down and re-opened MATLAB and tried again but it has not fixed it. It appears that 'ni' devices are in fact operational and that the driver is installed. Why does the data acquisition toolbox disagree, and how can I fix it?
  1 comentario
Michael Stachowsky
Michael Stachowsky el 14 de En. de 2020
Ah, of course what I forgot to do was restart the computer and now it works. However, I'd still like to know what the problem was so that I can potentially avoid it without a restart. Why did the vendor list itself as operational but the getDevices did not?

Iniciar sesión para comentar.

Respuestas (1)

Kautuk Raj
Kautuk Raj el 23 de Oct. de 2024
It sounds like you are encountering an issue where the National Instruments (NI) database file might be corrupted, causing the Data Acquisition Toolbox to incorrectly report the 'ni' vendor as non-operational. As the issue got resolved with a restart of the computer, I will enlist the steps to be followed to fix it without the need for a restart:
(1) Verify the NI Database:
  • Open the NI Measurement & Automation Explorer (NI MAX) application on your computer.
  • Use ‘NI MAX’ to check for any signs of database corruption.
(2) Reset Configuration Data:
  • In ‘NI MAX, navigate to the menu at the top of the window.
  • Click on "Tools", then select “Reset Configuration Data.”
  • Confirm by clicking “Yes” and proceed with the reset.
Now, open MATLAB again and try running your data acquisition commands.
By following these steps, you should be able to resolve the issue and successfully connect to your NI USB-6001 DAQ.

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by