This repository was formerly named current_control
and was imported from J. Martin's repository.
This repository defines a GUI to control the power supply and do measurements with a fluxgate to test coil winding direction. It is expected to run by sending serial commands to an arduino using the code found here.
Full documentation here
To install on the python path first clone this directory
git clone [email protected]:ucn-triumf/ShimCoil_CurrentControl.git
Then navigate to this directory and run the following:
pip install -e .
Note the period at the end of that line. Also, while the -e
flag will cause edits made to the code (either through git pull
or directly editing) to be immediately implemented, not all systems like this. If this fails run without the -e
flag and return the above command every time the code is update to see changes in execution.
This repository defines three objects of note:
ArduinoControllerCS
: Base-level controller for the arduino via serial connection.ArduinoController64
: Similar toArduinoControllerCS
, but abstracts the circuit select/channel ID method out to a 0-63 indexing. Also allows for setting volatile memory on the arduino and eeprom.ShimController
: Top-level controller, this should be the thing you mostly interact with.