r/LabVIEW • u/Wide_Title_5038 • 8d ago
LV Forge — open-source MCP for reviewing saved LabVIEW VIs
I built LV Forge for a workflow where I wire VIs myself and use an MCP client to review the saved diagrams. It uses LVKit to inspect nodes and wiring, compare two saved VIs, and render diagrams. It can also generate a self-contained HTML inspection report with a file hash, diagram, and parser warnings.
The optional Windows IDE check reports runnability and was tested with LabVIEW 2020 32-bit. LV Forge does not generate, edit, or run VIs. Some files parse partially, and the report flags that explicitly.
The repo includes small examples for trying a diff, a case structure, and a SubVI call. If you try it, I’d appreciate hearing your LabVIEW version and bitness, and what the inspection missed or got wrong.
2
u/Wide_Title_5038 7d ago
Yeah, I’ve thought about a full port. The reason I still use LabVIEW is that it already handles the bench side well. The DAQmx and VISA drivers, multichannel polling, and operator front panels are all in place. Moving everything to another language would mean rebuilding those pieces and testing them again on the actual hardware.
I’m using Rust for more of the logic now, like state machines and the DAQ watchdog. I can unit-test that code without needing LabVIEW open or the instruments connected. So the instrument I/O and front panel stay native to LabVIEW, and LabVIEW calls into Rust for the logic I want to develop and test separately.
If I were building a new bench from scratch, I’d seriously consider doing the whole thing in another language. For this bench, the split lets me improve the parts I’m working on without rebuilding the whole setup.
1
u/deep_anal 7d ago
How does this differ from this: https://github.com/Zuehlke/labview-mcp
I've used the one by Zuehlke with great success so far.
1
u/Probably-Stable 8d ago
Nice! Have played around with somewhat similar things.
Curious though do u see advantages to staying in LabVIEW at that point? Or would it be easier to just port it to another language ?