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
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 PL155-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 PL155-P Power Supply:
from qcodes.instrument.visa import VisaInstrumentfrom 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 supplypower_supply = AimTTi('power_supply', 'TCPIP::192.168.1.1::INSTR')
# Print the identification of the power supplyprint(power_supply.get_idn())
# Access the channels of the power supplychannels = power_supply.channels
# Print the voltage of channel 1print(channels.ch1.volt())
# Set the voltage of channel 1 to 5Vchannels.ch1.volt(5)
# Close the connection to the power supplypower_supply.close()
Note: Replace 'TCPIP::192.168.1.1::INSTR'
with the actual VISA resource address of your PL155-P Power Supply.