ADCTimingMode issue with 2017a (vs 2016a)
Mostrar comentarios más antiguos
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 comentarios
Sangeetha Jayaprakash
el 23 de Mayo de 2017
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
el 1 de Mzo. de 2018
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
el 13 de Nov. de 2018
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
el 19 de Nov. de 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
el 9 de Mzo. de 2019
Same problem here with cDAQ-9171 & NI9234, running both Matlab 2018a and 2018b
Respuestas (0)
Categorías
Más información sobre Data Acquisition Toolbox Supported Hardware en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!