HC Photonics

TC038 Crystal oven AC

class instruments.hcp.TC038(*args, **kwargs)[source]

Communication with the HCP TC038 oven.

This is the older version with an AC power supply and AC heater.

It has parity or framing errors from time to time. Handle them in your application.

query(command)[source]

Send a command to the oven and read its response.

Parameters

commandstring, optional

Command to be sent. Three chars indicating the type, and data for the command, if necessary.

Returns

string

response of the system.

sendcmd(command)[source]

Send “command” to the oven with “commandData”.

Parameters

commandstring, optional

Command to be sent. Three chars indicating the type, and data for the command, if necessary.

property information

Read the device information.

property monitored_quantity

The monitored quantity.

property monitored_value

Read and return the monitored value.

Per default it’s the current temperature in °C.

property setpoint

Read and return the current setpoint in °C.

property temperature

Read and return the current temperature in °C.

TC038D Crystal oven DC

class instruments.hcp.TC038D(*args, **kwargs)[source]

Communication with the HCP TC038D oven.

This is the newer version with DC heating.

The temperature controller is on default set to modbus communication. The oven expects raw bytes written, no ascii code, and sends raw bytes. For the variables are two or four-byte modes available. We use the four-byte mode addresses, so do we. In that case element count has to be double the variables read.

static CRC16(data)[source]

Calculate the CRC16 checksum for the data byte array.

readRegister(address, count=1)[source]

Read count variables from start address on.

writeMultiple(address, values)[source]

Write multiple variables.

byteMode = 4
functions = {'echo': 8, 'read': 3, 'writeMultiple': 16, 'writeSingle': 6}
property setpoint

Get the current setpoint in °C.

property temperature

Get the current temperature in °C.