Python Iseg HV controller: Difference between revisions

From FSU Fox's Lab Wiki
Jump to navigation Jump to search
(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...")
 
Line 20: Line 20:
In linux, install snmp
In linux, install snmp


  sudo apt install snmp
  sudo apt install snmp snmp-mibs-downloader


copy the [[:File:WIENER-CRATE-MIB.txt|WIENER-CRATE-MIB.txt]] into /usr/share/snmp/mibs/
copy the [[:File:WIENER-CRATE-MIB.txt|WIENER-CRATE-MIB.txt]] into /usr/share/snmp/mibs/

Revision as of 15:23, 14 May 2024

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 snmp-mibs-downloader

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.