Files
Helmholtz_Test_Bench/settings.py
T

36 lines
1.0 KiB
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
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, 80, 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 = "COM10" # placeholders
Z_PORT = "COM11"
AXIS_NAMES = ["X-Axis", "Y-Axis", "Z-Axis"]
ports = [XY_PORT, XY_PORT, Z_PORT]
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
global TestValuesX
global TestValuesY
global TestValuesZ
global TestValues