powersupply#

This module contains functions for communication with the powersupply that runs the electromagnet.

The bipolar powersupply (CAENels EASY-Driver 0520) is able to provide +/- 5A at +/- 20V and is connected via ethernet to the measurement PC.

image of the bipolar powersupply CAENels EASY-Driver 0520

The electromagnet (PHYWE) consists of 2 coils with 600 windings that have resistance of 2.5 Ohm and an inductance of 9 mH each. The maximal continuous current is 2A but for a short time it can take up to 4A. The coils are connected via a 30mm x 30mm horse shoe iron core that can be closed with two different sets of pole shoes. The pole shoes with a central hole have a gap of 7 mm and provide an out-of-plane field for the polar moke configuration. The pole shoes without a hole have a gap of 12 mm and are designed for an in-plane field.

image of the electromagnet and pole shoes from different angles

functions#

ppf_moke.powersupply.open_connection()[source]#

opens the serial connection with the powersupply

ppf_moke.powersupply.close_connection(s)[source]#

closes the given serial connection with the powersupply should be done at the end of the measurement script

ppf_moke.powersupply.shutdown_connection(s)[source]#

shuts down the serial connection with the powersupply should be done at the end of the measurement script

ppf_moke.powersupply.set_current(s, current)[source]#

sets a current via a given serial connection to the powersupply

ppf_moke.powersupply.read_current(s)[source]#

reads the current via a given serial connection to the powersupply

ppf_moke.powersupply.test()[source]#

prints a confirmation to the console if the module is properly loaded