r/LabVIEW • u/Lianes8Studio • 1d ago
I wanted to help the LabVIEW community, so I built 13 open-source Python libraries from unanswered forum threads
I've been wanting to give something back to the LabVIEW community for a while. My pure LabVIEW skills aren't that great, so I went with what I know best: Python.
I used an AI to dig through the NI forums, LAVA and Stack Overflow for real LabVIEW problems that never got an answer, then I sat down and solved them in Python, one by one. The result is 13 small open-source libraries (MIT, pure Python, no dependencies, typed and tested):
- **lverror**: turns LabVIEW, VISA and DAQmx error codes (888 of the common ones) into a plain explanation, no LabVIEW install needed - **lvflatten**: reads and writes Flatten To String binary data, the bytes LabVIEW sends over TCP, UDP, serial or to a file - **lvtime**: the 128-bit LabVIEW timestamp (1904 epoch) to and from datetime, without losing precision - **lvconfig**: LabVIEW config files with LabVIEW's exact escaping, path and boolean rules - **lvmio**: LabVIEW Measurement (.lvm) files - **tdmread**: NI TDM/TDX files - **lvjson**: Flatten To JSON, including NaN, Infinity and LabVIEW's 20-digit numbers - **lvxml**: Flatten To XML / Unflatten From XML - **lvpath**: LabVIEW path strings, the portable /C/DIR form and the flattened form - **lvtypedesc**: LabVIEW type descriptors, parsed and written back - **lvext**: 80-bit extended floats (EXT) - **lvfxp**: fixed-point (FXP) numbers - **lvbitpack**: Boolean arrays and bit packing
All of them are a `pip install` away, e.g. `pip install lverror`.
Overview: https://lianes8studio.com/open-source/labview All the code is public on GitHub, linked from that page.
I'd really like these to be community libraries. If you hit a bug, miss a case, or have a LabVIEW ↔ Python problem nobody has solved, open an issue or send a PR. Help keeping them maintained and up to date is very welcome.
And if there's a pain point you deal with every week, tell me in the comments. It might be the next one.
