ADCTimingMode issue with 2017a (vs 2016a)
이전 댓글 표시
I have a NI cDAQ setup to run a load cell (module NI 9237) and two LVDTs (module NI 9215). I started with 2016a, and everything works fine. However, now that I'm trying to use 2017a, I am getting
"The 'ADCTimingMode' property is not supported by the channel 'cDAQ1Mod2/ai0'."
cDAQ1Mod2 is the load cell module (NI 9237). Why would I get this on 2017a and not on 2016a? How can I remedy the problem? Code for that module below.
s.addAnalogInputChannel('cDAQ1Mod2',0,'Bridge');
s.Channels(1).BridgeMode='Full';
s.Channels(1).NominalBridgeResistance=350; % ohm
s.Channels(1).ADCTimingMode='HighResolution';
s.Channels(1).ExcitationVoltage=10;
댓글 수: 5
Sangeetha Jayaprakash
2017년 5월 23일
What version of the NI-DAQmx Support Package do you have installed? You can find by this running the following command in MATLAB:
matlabshared.supportpkg.getInstalled
Does it work with MATLAB R2016b?
Were there any other changes made to the code?
leebs
2018년 3월 1일
Hi Sangeetha, I'm having exactly the same issue with the NI-9237 having upgraded to 2017a and not changed any code. Here's my output from the support package you mentioned above:
Name Version Base Product
---------------------------------------------------------------------------------- ------- ------------------------
Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices 17.1.0 Data Acquisition Toolbox
MoeIsKing
2018년 11월 13일
Same problem here!
Matlab 2018a
matlabshared.supportpkg.getInstalled
gives me:
Data Acquisition Toolbox Support Package for National Instruments NI-DAQmx Devices 18.1.0 Data Acquisition Toolbox
s.Channels.ADCTimingMode = 'HighSpeed'; ADCTimingMode
Error:
Error using demo_compactdaq_intro_acquisition_2 (line 31)
The 'ADCTimingMode' property is not supported by the channel 'cDAQ1Mod3/ai0'.
Module NI9237 is in 9178 Slot 3
MoeIsKing
2018년 11월 19일
indeed if you omit the 'ADCTimingMode','HighResolution' you only get 3 decimal places...
if you send it it errors out but you still get high resolution :-P
Colin
2019년 3월 9일
Same problem here with cDAQ-9171 & NI9234, running both Matlab 2018a and 2018b
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!