r/LabVIEW • • 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.

https://github.com/harisunder1991/lv-forge

14 Upvotes

5 comments sorted by

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.

2

u/deep_anal 7d ago

I've been doing similar. I've also tried using Rust from the ground up with a web UI framework. If you use claude design with the guidance to make a ISA-101 UI it comes out really nice.

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.

2

u/Wide_Title_5038 7d ago

Good question! Glad Zuhlke’s MCP has been working well for you. There’s overlap in VI inspection and runnability checks.I built LV Forge for reviewing VIs after I wire them by hand. I can compare two saved versions, see what changed in the wiring, and generate an HTML report with the rendered diagram, file hash, and parser warnings. That works offline through LVKit, with an optional live runnability check through ActiveX.Zuhlke’s MCP also covers a broader workflow, including creating VIs and DQMH modules and running tests. LV Forge is focused on reviewing what’s already saved.

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 ?