Connecting to PL303-P by Aimtti in Python
Instrument Card
Bench/System Linear Regulated DC Power Supply Single Output, 30V/3A, USB, RS232, LAN(LXI) and Analogue Interfaces
Device Specification: here
Manufacturer card: AIMTTI
TTi (Thurlby Thandar Instruments) is a leading manufacturer of electronic test and measurement instruments. These products are sold throughout the world via carefully selected distributors and agents in each country. We are located in Huntingdon near to the famous university city of Cambridge, within one of the high technology areas of the United Kingdom.
- Headquarters: UK
- Yearly Revenue (millions, USD): 9000
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the PL303-P in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes to connect to a PL303-P Power Supply:
This script first imports the necessary modules and classes from Qcodes. Then, it creates an instance of the AimTTi
class, which represents the PL303-P Power Supply. The constructor takes two arguments: the name of the instrument (power_supply
) and the VISA resource address (TCPIP0::192.168.1.1::inst0::INSTR
in this example).
The script then prints the instrument identification using the get_idn()
method.
Next, it sets the voltage and current values of channel 1 using the volt()
and curr()
methods, respectively.
After that, it enables the output of channel 1 by setting the output
parameter to 1.
Finally, the script closes the connection to the power supply using the close()
method.
Note: Make sure to replace the VISA resource address (TCPIP0::192.168.1.1::inst0::INSTR
) with the actual address of your power supply.