forked from zietzm/Helmholtz_Test_Bench
28 lines
898 B
Python
28 lines
898 B
Python
import numpy as np
|
|
|
|
global XY_DEVICE
|
|
global Z_DEVICE
|
|
|
|
global X_AXIS # object structure: (device, channel, arduino pin, axis index)
|
|
global Y_AXIS
|
|
global Z_AXIS
|
|
|
|
global AXES # list containing [X_AXIS, Y_AXIS, Z_AXIS]
|
|
|
|
# Constants:
|
|
COIL_CONST = np.array([38.6, 38.45, 37.9]) * 1e-9 # Coil constants [x,y,z] in T/A
|
|
AMBIENT_FIELD = np.array([80]) * 1e-6 # ambient magnetic field in measurement area, to be cancelled out
|
|
RESISTANCES = np.array([3.9, 1, 1]) # resistance of [x,y,z] circuits
|
|
MAX_WATTS = np.array([8, 0, 0]) # max. allowed power for [x,y,z] circuits
|
|
MAX_VOLTS = [16, 16, 16] # max. allowed voltage, limited to 16V by used diodes!
|
|
|
|
# COM-Ports for power supply units:
|
|
XY_PORT = "COM1" # placeholders
|
|
Z_PORT = "COM2"
|
|
|
|
global ARDUINO
|
|
|
|
RELAY_PINS = [15, 16, 17] # pin on the Arduino for switching relay of each axis [x,y,z]
|
|
|
|
# ToDo: make proper settings file to read from and write to
|