Skip to content

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

SYSTEM 8500-Model 854

Device Specification: here

Manufacturer card: DANFYSIK

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

PROTOCOLS > SCPI

from pymeasure.instruments import SerialInstrument
from pymeasure.adapters import SerialAdapter
from pymeasure.instruments.danfysik import Danfysik8500
# Create a SerialAdapter for the instrument
adapter = SerialAdapter(port="/dev/danfysik", baudrate=9600)
# Create a Danfysik8500 instrument object
power_supply = Danfysik8500(adapter)
# Connect to the power supply
power_supply.connect()
# Read the identification information
id_info = power_supply.id
print("Identification Information:", id_info)
# Set the current to 10 Amps
power_supply.current = 10
# Enable the flow of current
power_supply.enable()
# Wait for the current to stabilize
power_supply.wait_for_current()
# Read the actual current
actual_current = power_supply.current
print("Actual Current:", actual_current)
# Disable the flow of current
power_supply.disable()
# Disconnect from the power supply
power_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.