Connecting to Keithley S46 by Keithley in Python
Instrument Card
S46 Microwave Switch Systems are designed to simplify the automated switching needed to test a wide range of RF and telecommunication products and devices. The S46 can control 32 relay contacts in a package as small as a 2U high (3.5 in) full-rack enclosure.
Device Specification: here
Manufacturer card: KEITHLEY
Keithley Instruments is a measurement and instrument company headquartered in Solon, Ohio, that develops, manufactures, markets, and sells data acquisition products, as well as complete systems for high-volume production and assembly testing.
- Headquarters: Cleveland, Ohio, United States
- Yearly Revenue (millions, USD): 110.6
- Vendor Website: here
Connect to the Keithley S46 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keithley S46 Switch using Qcodes, you can use the following Python script:
from qcodes.instrument_drivers.Keithley.KeithleyS46 import KeithleyS46
# Create an instance of the KeithleyS46 instruments46 = KeithleyS46("s46", "TCPIP::192.168.1.1::INSTR")
# Open a connection to the instruments46.connect()
# Print the available channelsprint(s46.available_channels)
# Close channel 'A1's46.A1.set("close")
# Check if channel 'A1' is closedprint(s46.A1.is_closed())
# Open all channelss46.open_all_channels()
# Close channel 'R2's46.R2.set("close")
# Check if channel 'R2' is closedprint(s46.R2.is_closed())
# Close the connection to the instruments46.disconnect()
This script creates an instance of the KeithleyS46
instrument, connects to it using the specified address (replace "TCPIP::192.168.1.1::INSTR"
with the actual address of your instrument), and performs various operations on the switch channels. Finally, it disconnects from the instrument.