Connecting to SYSTEM 8500-Model 854 by Danfysik in Python
Instrument Card
The System 8500 Power Supply program offers the ultrastable Model 854 specially designed for powering magnets in MRI applications
Device Specification: here
Manufacturer card: DANFYSIK
Danfysik accelerator system and accelerator components are in service at most particle accelerator facilities worldwide
- Headquarters: Denmark
- Yearly Revenue (millions, USD): 13
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the SYSTEM 8500-Model 854 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from pymeasure.instruments import SerialInstrumentfrom pymeasure.adapters import SerialAdapterfrom pymeasure.instruments.danfysik import Danfysik8500
# Create a SerialAdapter for the instrumentadapter = SerialAdapter(port="/dev/danfysik", baudrate=9600)
# Create a Danfysik8500 instrument objectpower_supply = Danfysik8500(adapter)
# Connect to the power supplypower_supply.connect()
# Read the identification informationid_info = power_supply.idprint("Identification Information:", id_info)
# Set the current to 10 Ampspower_supply.current = 10
# Enable the flow of currentpower_supply.enable()
# Wait for the current to stabilizepower_supply.wait_for_current()
# Read the actual currentactual_current = power_supply.currentprint("Actual Current:", actual_current)
# Disable the flow of currentpower_supply.disable()
# Disconnect from the power supplypower_supply.disconnect()
This script first creates a SerialAdapter
object to connect to the power supply using the specified serial port. Then, a Danfysik8500
instrument object is created using the adapter. The script opens the connection to the power supply, reads the identification information, sets the current to 10 Amps, enables the flow of current, waits for the current to stabilize, reads the actual current, disables the flow of current, and finally closes the connection to the power supply.
Note: Make sure to replace "/dev/danfysik"
with the correct serial port for your SYSTEM 8500-Model 854 Power Supply.