How to Read Board temperature from Ocean optics spectrometer
6 views (last 30 days)
Show older comments
Hi, I'm using FlameS spectrometer form Ocean optics and i want to read the board temperature. I manage to do so by using the following code:
if true
java.util.Locale.setDefault(java.util.Locale.US);
wrapper = com.oceanoptics.omnidriver.api.wrapper.Wrapper();
wrapper.openAllSpectrometers();
bool = wrapper.isFeatureSupportedBoardTemperature(0);
boardTemperature = wrapper.getFeatureControllerBoardTemperature(0);
boardTemperature.getBoardTemperatureCelsius()
end
but when trying with the 'Invoke' command i get error:
if true
spectrometerObj = icdevice('OceanOptics_OmniDriver.mdd');
connect(spectrometerObj);
disp(spectrometerObj);
invoke(spectrometerObj, 'isFeatureSupportedBoardTemperature',0);
end
"Error using icdevice/invoke (line 53) The function isFeatureSupportedBoardTemperature is not supported by this device object."
appropriate any help! thanks, Etay.
1 Comment
Fabian
on 21 Jul 2023
For me it also only works with these comands:
% Init Temp
java.util.Locale.setDefault(java.util.Locale.US);
wrapper = com.oceanoptics.omnidriver.api.wrapper.Wrapper();
wrapper.openAllSpectrometers();
wrapper.isFeatureSupportedBoardTemperature(0);
boardTemperature = wrapper.getFeatureControllerBoardTemperature(0);
% INIT controler
featureController = wrapper.getFeatureControllerThermoElectric(0);
% Set controler TEC
featureController.setTECEnable(true)
% get Target Temp
featureController.getDetectorSetPointCelsius()
% get Detector Temp
featureController.getDetectorTemperatureCelsius()
% Boardtemperatur
boardTemperature.getBoardTemperatureCelsius()
%Set Temp
desiredTemperature = 22;
featureController.setDetectorSetPointCelsius(desiredTemperature)
But not with NIRQuest
does any one know how to control the Temperatur with a NIRQuest
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!