How to add ThermocoupleType in AppDesigner
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
Pratyush
il 22 Mag 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 Commenti
Vedere anche
Categorie
Scopri di più su Data Acquisition Toolbox Supported Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!