Connecting to TC-038D by HCP in Python
Instrument Card
Temperature controller, TC-038D, goes along with different ovens (OV-30D, OV-50D, WG OVENs) with extreme temperature tunability up to 200 deg
Device Specification: here
Manufacturer card: HCP
HC Photonics (HCP) provides crystal ovens and controllers to well manage the temperature of nonlinear crystals, especially PPLN and PPLT.
- Headquarters: Taiwan
- Yearly Revenue (millions, USD): 7
- Vendor Website: here
Connect to the TC-038D in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Explanation:
- The script imports the
hcp
module frominstrumentkit
, which provides support for the TC038 AC crystal oven by HC Photonics. - It then connects to the TC-038D Temperature Controller by calling the
open_serial
method of theTC038D
class and passing the serial port name as an argument (e.g.,'COM10'
). - The script sets the setpoint temperature of the temperature controller to 45.3 degrees Celsius by assigning the desired value to the
setpoint
property of theinst
object. - Finally, it retrieves the current temperature from the temperature controller by accessing the
temperature
property of theinst
object and assigns it to thetemperature
variable. - The script then prints the value of the
temperature
variable, which represents the current temperature in degrees Celsius.