Daq device not found on Simulink

조회 수: 11 (최근 30일)
Carlos Figueredo
Carlos Figueredo 2019년 9월 4일
답변: Roshni Garnayak 2019년 9월 10일
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

답변 (1개)

Roshni Garnayak
Roshni Garnayak 2019년 9월 10일
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:

카테고리

Help CenterFile Exchange에서 Hardware Discovery and Setup에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by