Skip to content

Connecting to PL155-P by Aimtti in Python

Instrument Card

Bench/System Linear Regulated DC Power Supply Single Output, 15V/5A, USB, RS232, LAN(LXI) and Analogue Interfaces

PL155-P

Device Specification: here

Manufacturer card: AIMTTI

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 PL155-P in Python

PROTOCOLS > SCPI

Here is a Python script that uses Qcodes to connect to a PL155-P Power Supply:

from qcodes.instrument.visa import VisaInstrument
from qcodes.instrument.channel import ChannelList
class AimTTiChannel(VisaInstrument):
# Define the parameters and methods for the channel
class AimTTi(VisaInstrument):
# Define the parameters and methods for the power supply
# Create an instance of the power supply
power_supply = AimTTi('power_supply', 'TCPIP::192.168.1.1::INSTR')
# Print the identification of the power supply
print(power_supply.get_idn())
# Access the channels of the power supply
channels = power_supply.channels
# Print the voltage of channel 1
print(channels.ch1.volt())
# Set the voltage of channel 1 to 5V
channels.ch1.volt(5)
# Close the connection to the power supply
power_supply.close()

Note: Replace 'TCPIP::192.168.1.1::INSTR' with the actual VISA resource address of your PL155-P Power Supply.