Python Iseg HV controller

From FSU Fox's Lab Wiki
Revision as of 16:42, 6 September 2022 by Rtang (talk | contribs) (Created page with "The Iseg HV modules are using Mpod crate. A Mpod-C (controller) is used to control the HV module. The Mpod-C can be controlled via ethernet, USB, or CAN. For the ethernet, it requires an IP. = GUI control and monitor = thumb https://fsunuc.physics.fsu.edu/git/rtang/IsegSNMPGUI The GUI also push monitor values to database and display on Grafana https://fsunuc.physics.fsu.edu/grafana/d/JG7ADC67z/iseg-hv-monitor?orgId=1&refresh=5...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Iseg HV modules are using Mpod crate. A Mpod-C (controller) is used to control the HV module.

The Mpod-C can be controlled via ethernet, USB, or CAN. For the ethernet, it requires an IP.

GUI control and monitor

IsegHVContol Screenshot.png

https://fsunuc.physics.fsu.edu/git/rtang/IsegSNMPGUI

The GUI also push monitor values to database and display on Grafana https://fsunuc.physics.fsu.edu/grafana/d/JG7ADC67z/iseg-hv-monitor?orgId=1&refresh=5s

Iseg HV with Wiener Mpod

to control the Mpod-C via USB (say, setting up the IP), in Windows, install the MUSEController.

SNMP

More detail can be found in here.

In linux, install snmp

sudo apt install snmp

copy the WIENER-CRATE-MIB.txt into /usr/share/snmp/mibs/

Name Type Unit Read/Write Comment
outputVoltage Float V R/W Set voltage
outputCurrent Float A R/W Set trip current
outputMeasurementSenseVoltage Float V R Sense output voltage
outputMeasurementCurrent Float A R Leakage current
outputSwitch Integer R/W 0 = off, 1 = on, 2 = reset Emergency Off, 3 = set emergenct Off, 10 = clear events
outputVoltageRiseRate Float V/s R/W
outputVoltageFallRate Float V/s R/W

example syntax

~>snmpget -v 2c -Op .12 -m +WIENER-CRATE-MIB -c guru 128.186.111.101 outputMeasurementSenseVoltage.u1
WIENER-CRATE-MIB::outputMeasurementSenseVoltage.u1 = Opaque: Float: 0.000000000000 V
~>snmpset -v 2c -Op .12 -m +WIENER-CRATE-MIB -c guru 128.186.111.101 outputVoltage.u0 F 0.0
WIENER-CRATE-MIB::outputVoltage.u0 = Opaque: Float: 0.000000000000 V

Python GUI for control and monitor

https://fsunuc.physics.fsu.edu/git/rtang/IsegSNMPGUI

This program should be suitable for all Iseg HV modules using Mpod-C with SNMP protocal.

The only hard-coded thing is the Mpod-C IP, and the database IP and name.