I can not use some functions for NI device
조회 수: 1 (최근 30일)
이전 댓글 표시
[EDIT: 20110720 23:36 CDT - reformat - WDR]
Hi, guys,
I found I can not use some functions when I tried to acquire data with ni product usb-6251.
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?
I can use analoginput('nidaq','Dev1'),but I can not add channels.
please
thank you
댓글 수: 0
채택된 답변
Walter Roberson
2011년 7월 21일
I believe that after
s = daq.createSession('ni')
you would need to use
s.addAnalogInputChannel(...)
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Input and Output에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!