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 commentaires

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?
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
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 le 19 Nov 2018
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 le 9 Mar 2019
Same problem here with cDAQ-9171 & NI9234, running both Matlab 2018a and 2018b

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by