Connecting to PT 104 Picoch by Pico Technology in Python
Instrument Card
The PT-104 is a four-channel temperature measuring data logger. It offers the ultimate in resolution (0.001 °C) and accuracy (0.015 °C). Along with temperature it can also be used to measure resistance.
Device Specification: here
Manufacturer card: PICO TECHNOLOGY
Pico Technology was established in 1991 and soon became a leader in the field of PC Oscilloscopes and data loggers. Pico has always been recognized for providing innovative, cost-effective alternatives to traditional test equipment and data acquisition products. In doing so, we have made high-quality instrumentation affordable.
- Headquarters: Texas, United States
- Yearly Revenue (millions, USD): 24
- Vendor Website: here
Connect to the PT 104 Picoch in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
import pytango as pt
# Create a DeviceProxy for the PT-104 devicept104 = pt.DeviceProxy("pt104/01")
# Get unit informationdriver_version = pt104.driver_versionusb_version = pt104.usb_versionhardware_version = pt104.hardware_versionvariant = pt104.variantbatch_serial = pt104.batch_serialcal_date = pt104.cal_datekernel_driver_version = pt104.kernel_driver_version
# Set mains rejection to 50 Hzpt104.set_mains(0)
# Set channel 1 for a PT-100 sensorpt104.set_channel(1, "PT100", 4)
# Collect datanum_samples = 30data_values = []
for _ in range(num_samples): value = pt104.get_value(1) data_values.append(value / 1000) # Convert to °C pt.sleep(1)
# Plot the dataimport matplotlib.pyplot as plt
plt.plot(range(1, num_samples+1), data_values)plt.title("Plot of Temperature vs. Sample")plt.xlabel("Sample")plt.ylabel("Temperature (°C)")plt.legend(["Channel 1"])plt.grid(True)plt.show()
# Close connection to devicept104.close_unit()