Daq device not found on Simulink

11 visualizzazioni (ultimi 30 giorni)
Carlos Figueredo
Carlos Figueredo il 4 Set 2019
Risposto: Roshni Garnayak il 10 Set 2019
I'm trying to use a voltage signal in Simulink connectin a MMeasurment Computing USB-1208FS DAQ, but the Analog Input doesn't find any devices. I've already checked on Matlab and it seems there is no troubles there. How may I detect my device on Simulink?
Here's the results from MAtlab diagnose.
daq.getVendors()
ans =
Number of vendors: 2
index ID Operational Comment
----- --- ----------- ---------------------------
1 ni true National Instruments
2 mcc true Measurement Computing Corp.
daq.getDevices
ans =
mcc: Measurement Computing Corp. USB-1208FS (Device ID: 'Board0')
Analog input subsystem supports:
8 ranges supported
Rates from 1.0 to 50000.0 scans/sec
8 channels ('Ai0' - 'Ai7')
'Voltage' measurement type
Analog output subsystem supports:
0 to +4.0 Volts range
Rates from 1.0 to 10000.0 scans/sec
2 channels ('Ao0','Ao1')
'Voltage' measurement type
s = daq.createSession('mcc')
s =
Data acquisition session using Measurement Computing Corp. hardware:
Will run for 1 second (1000 scans) at 1000 scans/second.
No channels have been added

Risposte (1)

Roshni Garnayak
Roshni Garnayak il 10 Set 2019
Try running MATLAB in Administrator mode. Simulink may not be able to access the device if it is not successfully registered, and MATLAB must be running with full administrator privileges to register the device. You can do this with the following steps:
  • Right-click on the MATLAB icon and select "Run as administrator".
  • Once MATLAB opens, open a DAQ analog input demo by executing the following command in the MATLAB Command Window:
demodaqsl_aiao
  • Double-click on the “Analog Input block of Data Acquisition Toolboxin the demo to see if you are now able to access your device. The device should now be recognized. 
Also, note that some data acquisition hardware is supported for use in MATLAB, but not in Simulink. You can check what is specifically supported for your hardware by searching for it in the hardware support catalog, linked below:

Categorie

Scopri di più su Hardware Discovery and Setup in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by