Matlab Support package for SensorDAQ and Thermocouple.
조회 수: 6 (최근 30일)
이전 댓글 표시
Right now I can use NIMAX(provided in NI website for SensorDAQ drivers) to see the thermocouple is actually working. However, when I try to add the sensor in matlab that it will told me the valid channel is ai0,ai1. And I use the following channel in MAX: Channel Name: "Dev1/_sensor0_5V". The error message is the following when I try to run matlab with the Matlab Code:
sdaq.addSensor(s,1,sdaq.Sensors.Thermocouple);
Error Message:
The device 'Dev1' does not have a channel '_sensor0_5V'. Valid channel IDs are 'ai0, ai1'.
Please help me configure this issue, I believe it's the matlab support package didn't specify the right channels
댓글 수: 0
답변 (1개)
Rob Purser
2013년 12월 12일
Hi,
Are you using the Vernier SensorDAQ with R2012a or later? If so, and you still want to use it, let me know, I may have a workaround for you.
-Rob Purser
댓글 수: 2
claire
2014년 5월 7일
Hi,
I have almost the same problem, I am using Vernier hand dynamometer and SensorDAQ. When using sdaq.addSensor(session, 1, sdaq.Sensors.HandDynamometer); I have the same error.
When I try to use directly session.addAnalogInputChannel('Dev1', 'ai0', 'Voltage');
I have a code error saying: NI Error -200983: You only can get the specified property while the task is reserved, committed or while the task is running. Reserve, commit or start the task prior to getting the property. Property: DAQmx_SampClk_Rate Task Name: _unnamedTask<2D> Status Code: -200983
Is there any way to fix the error ?
Thank you very much;
Claire
Francisco Redondo
2014년 8월 28일
Hello I am using Vernier hand dynamometer and SensorDAQ with MATLAB R2013b.
When I write the code: s = sdaq.createSession; sdaq.addSensor(s,1,sdaq.Sensors.HandDynamometer);
I have the next error.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/180600/image.png)
Could you help me?
Thanks
참고 항목
카테고리
Help Center 및 File Exchange에서 Analog Input and Output에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!