Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

LabVIEW program to read two VG (now EpiMAX) PVCi ion gauge controllers of an Omicron LT STM/AFM microscope, logging the pressure in HDF5 format

License

Notifications You must be signed in to change notification settings

angelo-peronio/pressure-logger

Repository files navigation

pressure-logger

Reads, displays, and logs the pressure measured by two VG (now EpiMAX) PVCi ion gauge controllers of an Omicron LT STM/AFM microscope. Communication with the controllers uses MODBUS over RS232, the logfiles are in HDF5 format.

Needs:

Writes:

  • yyyy-mm-pressure-log.h5, a monthly logfile in HDF5 format;
  • pressure-logger-output.log, a text file with errors and start/stop times.

It is reboot-tolerant, performing a clean quit if LabVIEW exits.

Usage

Before running main-pressure-logger.vi, edit its source code to set:

  • serial port parameters;
  • MODBUS unit IDs of the PVCi controllers;
  • path to the folder containing the logfiles.

main-autorun.vi opens and runs main-pressure-logger.vi. It can be added to the Windows startup folder to run the program at startup.

main-log-viewer.vi is as simple viewer for the recorded logs.

Typical errors

In our setup we sporadically get the following error codes:

  • 538172
    frequency: 2.3 errors/hour or 1 error every 7.8k MODBUS reads;
    description: MODBUS function data mismatch, the response doesn't match the request;
    See here.

  • 538170
    frequency: 1.6 errors/day or 1 error every 270k MODBUS reads;
    description: MODBUS function code mismatch, the returned function code does not match the requested data.

  • 56
    frequency: 0.5 errors/day or 1 error every 860k MODBUS reads;
    description: time out or CRC error.

About

LabVIEW program to read two VG (now EpiMAX) PVCi ion gauge controllers of an Omicron LT STM/AFM microscope, logging the pressure in HDF5 format

Resources

License

Stars

Watchers

Forks

Packages

No packages published