A Python 3 module to communicate with an INFICONVGC502 controller over TCP. It supports reading pressure values from one or more gauges.
- VGC501, VGC502
- Connect to VGC controller
- Read out the pressure
- Python 3.7+
- Install base class from https://github.com/COO-Utilities/hardware_device_base
pip install .You can also use the INFICON module interactively from a Python terminal or script:
from inficonvgc502 import InficonVGC502
vgc502 = InficonVGC502()
vgc502.initialize()
pressure = vgc502.get_atomic_value("pressure1") # must have gauge number
print(f"Pressure: {pressure} Torr")Unit tests are in the tests/ directory.
To run all tests from the projecgt root:
python -m pytestBelow is a class diagram of the added methods and attributes for the Inficon. See the README for the hardware_device_base module for the inherited methods and attributes.
classDiagram
class InficonVGC502 {
+Int timeout
+Str type
+Str model
+Str serial_number
+Str firmware_version
+Str hardware_version
+Str pressure_units
+Int n_gauges
+socket sock
_clear_socket()
_send_enq() bool
_read_until() bytes
+set_pressure_unit() bool
+get_pressure_unit() str
+read_temperature() float
+read_pressure() float
run_manually()
}