How to add ThermocoupleType in AppDesigner

1 visualización (últimos 30 días)
Wojciech Wojtala
Wojciech Wojtala el 23 de Ag. de 2021
Respondida: Pratyush el 22 de Mayo de 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

Respuestas (1)

Pratyush
Pratyush el 22 de Mayo de 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.

Categorías

Más información sobre Data Acquisition Toolbox Supported Hardware en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by