¿Buscando una versión en Español?

Pylavi

Pylavi is a tool written in Python that parses LabVIEW files as binary files without opening LabVIEW. It is very useful for CI because it is superfast and only requires Python to run, so it's easy to use - no need to setup a runner or anything, tell GitLab CI to use a Python Docker container and pip install it. It can check LV Versions of files. It can check for separate compile code and automatic error handling. It can also check for breakpoints and suspend on call and a variety of other things.

Here is a simple example of using pylavi:

pylavi:
  stage: inspect
  image: python:3
  script:
    - pip install pylavi
    - vi_validate
        --path source 
        --no-code 
        --breakpoints 
        --no-suspend-on-run 
        --autoerror

Key points are:

  • You first pip install pylavi
  • the command you then use is vi-validate
  • the --path option tells it which folder to look in
  • --no-code means fail if compiled code is not separated
  • --breakpoints means fail if any breakpoints found
  • --no-suspend-on-run means fail if suspend on run found
  • --autoerror means fail if autoerror handling is enabled