How to add ThermocoupleType in AppDesigner

1 view (last 30 days)
Wojciech Wojtala
Wojciech Wojtala on 23 Aug 2021
Answered: Pratyush on 22 May 2024
How to add ThermocupleType in appDesigner?
TerminalConfig, coupling, are working good but in ThermocoupleType always shows an error: Unrecognized method, property, or field 'ThermocoupleTypesAvailable' for class 'daq.ni.AnalogInputInfo'.
case 'TerminalConfig'
items = cellstr(string(subsystem.TerminalConfigsAvailable));
itemsData = [];
case 'ThermocoupleType'
items = cellstr(string(subsystem.ThermocoupleTypesAvailable));
itemsData = [];
case 'Coupling'
items = cellstr(string(subsystem.CouplingsAvailable));
itemsData = [];
case 'Range'
numRanges = numel(subsystem.RangesAvailable);
items = strings(numRanges,1);
itemsData = cell(numRanges,1);
for ii = 1:numRanges
range = subsystem.RangesAvailable(ii);
items(ii) = sprintf('%.2f to %.2f', range.Min, range.Max);
itemsData{ii} = [range.Min range.Max];
end
items = cellstr(items);
case 'ExcitationSource'
items = {'Internal','External','None'};
itemsData = [];
end
end

Answers (1)

Pratyush
Pratyush on 22 May 2024
Hi Wojciech,
When facing the error "Unrecognized method, property, or field 'ThermocoupleTypesAvailable' for class 'daq.ni.AnalogInputInfo'" in MATLAB while trying to add "ThermocoupleType" in App Designer, ensure your MATLAB and Data Acquisition Toolbox versions support "ThermocoupleTypesAvailable". Compatibility can vary based on software versions.
If the property is not available, you might need to manually specify the thermocouple types supported by your device.
It's important to ensure that your software and hardware are fully compatible and that you're using the correct properties and methods for your specific version of MATLAB and the Data Acquisition Toolbox.

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!