How to add ThermocoupleType in AppDesigner

1 vue (au cours des 30 derniers jours)
Wojciech Wojtala
Wojciech Wojtala le 23 Août 2021
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

Réponses (1)

Pratyush
Pratyush le 22 Mai 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.

Catégories

En savoir plus sur Data Acquisition Toolbox Supported Hardware dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by