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
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
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
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
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
Colin 2019 年 3 月 9 日
Same problem here with cDAQ-9171 & NI9234, running both Matlab 2018a and 2018b

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

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

質問済み:

2017 年 5 月 18 日

編集済み:

2019 年 3 月 9 日

Community Treasure Hunt

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

Start Hunting!

Translated by