forked from zietzm/Helmholtz_Test_Bench
18 lines
475 B
Python
18 lines
475 B
Python
# import platform
|
|
# import time
|
|
import numpy as np
|
|
import globals as g
|
|
import cage_func as func
|
|
# from pyps2000b import PS2000B
|
|
|
|
# User Inputs/Configuration----------------------------------
|
|
# Coil data:
|
|
g.Coil_const = np.array([38.6, 38.45, 37.9])*1e-9 # Coil constants [x,y,z] in T/A
|
|
|
|
# COM-Ports for power supply units:
|
|
xPort = "COM1" # placeholders
|
|
yPort = "COM3"
|
|
zPort = "COM5"
|
|
|
|
func.set_devices(xPort, yPort, zPort)
|
|
print(func.current_vec(np.array([10, 10, 5])*1e-6)) |