DAQ - Simulink NI myDAQ

8 ビュー (過去 30 日間)
Manuel
Manuel 2015 年 2 月 12 日
回答済み: Manuel 2018 年 1 月 23 日
Hi,
i want to measure analog and digital Signals in Simulink with an NI myDAQ Device.
http://www.ni.com/mydaq
I use a 32bit MATLAB (Data Acquisition Toolbox Version 3.6 R2014b) in a 64bit Windows 7 PC. The Support Package is installed too.
http://de.mathworks.com/hardware-support/ni-mydaq.html
Device (myDAQ) works with NI Software without problems
devices =
ni: National Instruments NI myDAQ (Device ID: 'myDAQ1')
Analog input subsystem supports:
-2.0 to +2.0 Volts,-10 to +10 Volts ranges
Rates from 0.1 to 200000.0 scans/sec
2 channels ('ai0','ai1')
'Voltage' measurement type
Analog output subsystem supports:
-2.0 to +2.0 Volts,-10 to +10 Volts ranges
Rates from 0.1 to 200000.0 scans/sec
2 channels ('ao0','ao1')
'Voltage' measurement type
Digital subsystem supports:
8 channels ('port0/line0' - 'port0/line7')
'InputOnly','OutputOnly','Bidirectional' measurement types
Counter input subsystem supports:
Rates from 0.1 to 100000000.0 scans/sec
1 channel ('ctr0')
'EdgeCount','PulseWidth','Frequency','Position' measurement types
Counter output subsystem supports:
Rates from 0.1 to 100000000.0 scans/sec
1 channel ('ctr0')
'PulseGeneration' measurement type
>> daqhardwareinfo = daqhwinfo
daqhardwareinfo =
ToolboxName: 'Data Acquisition Toolbox'
ToolboxVersion: '3.6 (R2014b)'
MATLABVersion: '8.4 (R2014b)'
InstalledAdaptors: {3x1 cell}
>> daqinstalledadaptors = daqhardwareinfo.InstalledAdaptors
daqinstalledadaptors =
'nidaq'
'parallel'
'winsound'
>> daqregister('nidaq')
ans =
'mwnidaq.dll' successfully registered.
but i cant select the device in Simulink :(
any ideas whats wrong? what should i do? do you need more information?
thanks mscharff
  1 件のコメント
Ali Zolfagharian
Ali Zolfagharian 2017 年 3 月 16 日
Hi Manuel,
Could you find the answer to your question? I have the same problem but still waiting for a help.

サインインしてコメントする。

回答 (4 件)

Manuel
Manuel 2015 年 2 月 16 日
is the following Information correct?
from
https://www.linkedin.com/groups/How-interface-NImyDAQ-Matlab-134533.S.227913757
" Ivan M.
Application Engineer - The MathWorks
It's because myDAQ use Session Interface, meanwhile the blocks in Data Acquisition Toolbox that support Simulink are available only for data acquisition devices that can be used with the legacy interface.
"
Any Idea/Samples/Papers what i can do?
  1 件のコメント
BingQian YAN
BingQian YAN 2015 年 6 月 28 日
Nice, true.thx

サインインしてコメントする。


Christian
Christian 2015 年 12 月 10 日
Hey, I am facing the same Problem. Is there a way to do Simulink session based data acquisition? Regards Chris

Ali Zolfagharian
Ali Zolfagharian 2017 年 3 月 16 日
Hi,
Is there any way to use myDAQ in Simulink? Since I have the same problem.

Manuel
Manuel 2018 年 1 月 23 日
https://de.mathworks.com/matlabcentral/answers/330174-ni-mydaq-simulink-toolbox

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by