I can not use functions for NI device
6 ビュー (過去 30 日間)
古いコメントを表示
I found I can not use some functions when I tried to acquire data with ni product usb-6008.
for example,
s = daq.createSession('ni'),daq.getDevices,addAnalogInputChannel.
I can not use them, the error is: Undefined variable "daq" or class "daq.createSession". Undefined function or variable 'daq'.and so on. what's the matter?
0 件のコメント
回答 (3 件)
Walter Roberson
2013 年 7 月 31 日
You do not have the DAT installed, or not licensed, or you are using a version of MATLAB that does not support session based acquisition.
Which MATLAB release are you using?
Does
which -all daq
show any result?
2 件のコメント
Walter Roberson
2013 年 7 月 31 日
The first support for session-based interfaces was R2010b, the release after the one you had. With your software you will need to use the legacy interface.
Note: not all NI devices were supported in R2010b; more devices were added with each release from R2010b.
mado
2013 年 7 月 31 日
編集済み: mado
2013 年 7 月 31 日
2 件のコメント
Walter Roberson
2013 年 8 月 1 日
I already responded above. Your version does not support session-based interface at all.
Eric Keller
2013 年 8 月 1 日
if you have a 32 bit system and can't upgrade matlab, use the legacy interface.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Hardware-in-the-Loop Simulation with Simulink Real-Time についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!