Package: slice-qtc
SLICE-QTCA python package to communicate with a VESCENT Slice-QTC temperature controller.This package wraps the serial API of the Vescent Slice temperature
controllerVescent Slice temperature controllerto a python class for convenient communication.All serial commands are implemented as class properties.Warning: The software currently only works with firmware version 2.22. Earlier firmware versions are not supported!UsageBasic usage is to create an instance of the Slice class and access its attributes:importsliceqtc=slice.Slice()# read current temperature of channel 1print(qtc.ch1.Temp)# change set point of channel 2qtc.ch2.SetTemp=19.040You can also read/set the values for all 4 channels simultaneously:importsliceqtc=slice.Slice()# prints a tuple like (20.34, 20.50, 30.1, 10.0)print(qtc.Temp)# Sets the setpoint temperature of all 4 channels. Channel 3 will be ignored since 'None' was passedqtc.SetTemp=(20.5,21.,None,30.)# If all channels should receive the identical settings, you can also do:qtc.PGain=5.5For convenience, all channel settings can be exported to and imported from a JSON file:importsliceqtc=slice.Slice()# save all channel settings to a JSON fileqtc.save_json('channel_settings.json')This will create a JSON file containing all settings per channel.Example JSON{"ch1":{"Beta":3450.0,"Bipolar":0,"Control":0,"Current":0.0,"Deriv":0.0,"DerivEn":0,"Integ":20.0,"IntegEn":1,"MaxCurr":1.0,"MaxPwr":4.0,"PGain":5.0,"PGainEn":1,"RefRes":10000.0,"RefTemp":25.0,"Slew":0.0,"SlewEn":0,"TCoefA":0.000684,"TCoefB":0.00029,"TCoefC":0.0,"TempMax":50.0,"TempMin":-5.0,"TempSet":25.0},"ch2":{"Beta":3450.0,"Bipolar":0,"Control":0,"Current":0.0,"Deriv":0.0,"DerivEn":0,"Integ":20.0,"IntegEn":1,"MaxCurr":1.0,"MaxPwr":4.0,"PGain":5.0,"PGainEn":1,"RefRes":10000.0,"RefTemp":25.0,"Slew":0.0,"SlewEn":0,"TCoefA":0.000684,"TCoefB":0.00029,"TCoefC":0.0,"TempMax":50.0,"TempMin":-5.0,"TempSet":26.0},"ch3":{"Beta":3450.0,"Bipolar":0,"Control":0,"Current":0.0,"Deriv":0.0,"DerivEn":0,"Integ":20.0,"IntegEn":1,"MaxCurr":1.0,"MaxPwr":4.0,"PGain":5.0,"PGainEn":1,"RefRes":10000.0,"RefTemp":25.0,"Slew":0.0,"SlewEn":0,"TCoefA":0.000684,"TCoefB":0.00029,"TCoefC":0.0,"TempMax":50.0,"TempMin":-5.0,"TempSet":26.0},"ch4":{"Beta":3450.0,"Bipolar":0,"Control":0,"Current":0.0,"Deriv":0.0,"DerivEn":0,"Integ":20.0,"IntegEn":1,"MaxCurr":1.0,"MaxPwr":4.0,"PGain":5.0,"PGainEn":1,"RefRes":10000.0,"RefTemp":25.0,"Slew":0.0,"SlewEn":0,"TCoefA":0.000684,"TCoefB":0.00029,"TCoefC":0.0,"TempMax":50.0,"TempMin":-5.0,"TempSet":26.0}}To import it back to the device, just do:importsliceqtc=slice.Slice()# save all channel settings to a JSON fileqtc.load_json('channel_settings.json')InstallationThe package can be installed via pip:pipinstallslice-qtcDisclaimerThis is NOT an official package by Vescent Photonics.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.