How to add ThermocoupleType in AppDesigner
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Pratyush
am 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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Acquisition Toolbox Supported Hardware finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!