r/ElectricalEngineering • u/cris_crafter • 2d ago
Project Showcase Open Source LabVIEW "Alternative"
Since I had about a month of freetime between two jobs I chose to use that time wisely and developed an Open-Source Alternative to LabVIEW.
Here I used it to automatically test a 4€ Ikea 20W USB-PD power supply for efficiency, Voltage Stability, ripple etc.
I also made a private short where I go into a little more detail: https://youtube.com/shorts/WpEfdhIpwws
It obviously isn't even a close match to LabVIEW yet, but the potential is there, it works pretty well for what it is and definitely is much easier to set up than any alternative there currently is.
You can program visually like in this example, but in the background the visual script is converted to Lua at runtime and the Lua Code is what actually runs.
You can also start a Project with Lua code straight away if it is more complicated.
One of the next things I am adding is a Plugin editor/creator, so that you can very easily add your own Devices.
You can find the Project on my Github here: https://github.com/criscrafter/benchloom



32
u/Ill-Quit6803 2d ago
I don't actually think this looks anything like labview. It definitely looks like data flow, and similiar to GNU radio.
113
u/shift124 2d ago
I’ll never know why people love labview so much when python exists
2
u/BathroomTaboo 2d ago
Is that ImGui? Did you use an existing node widget kit or did you roll your own?
2
u/negativ32 1d ago
I bet the core isn't 5GB?
10
u/herrcespedes 2d ago
I’ve been using labview for 10 years professionally, while this is certainly far from replacing labview, it seems like a useful piece of kit. I’ll take it for a spin. And thanks for the hard work (and for making it FOSS)!!
10
u/TobyS2 2d ago
As a 30+ year LabVIEW developer, I like it and it is a great start. I like that you can switch between Lua and graphical view. Those that get graphical programming love it and wouldn't want to program any other way. There are great text programmers that can't understand why anyone would want to programming any other way. Our brains all work differently and love that you can use whatever mode you want. Possibly even switching between modes just to look at a problem in a different way. Lacking this text aspect is what is holding LabVIEW back in the age of AI. While there are translators to python and some have even used AI to visually analyze the screen. These methods are all slower and use more tokens than just using text.
I like that it is lean, portable, and no license management to get in the way. This is perfect for students. LabVIEW has become bloated and really can't be uninstalled completely. I'd be upset if a professor made my kid install LabVIEW on their laptop for a class.
Dislikes? Mac support would be nice and honestly would put this a leg up on NI's offerings. Also, I'd try to force inputs on the left side of a function and outputs on the right. The for loop graphical representation is a bit clunky.
Didn't even mention the driver plugins which is great. I started with LabVIEW version 3 and I feel like this is almost equivalent. We made good test systems with that. Keep at it. I think there is something here.
2
u/Fine-Fig7252 2d ago
This is pretty cool! Will give it a go. Thank you for the hard work.
2
u/electr0n_CL 2d ago
oof this is gold would love to try it
3
u/Past_Ad326 2d ago
I’m embarrassed to say I’ve never heard of LabVIEW
3
u/madartist2670 1d ago
Industry is shifting towards python for lab automation
1
u/jeduars 2d ago
☠️why Lua when Python exists???
2
u/dE3OB2 2d ago
The main feature of LV is wide zoo of drivers for devices and ready solution as PID, visualisation, etc. You solution looks cool, but specific. Where I spent a days for writing of lab/experimental mesuarment software (LV, HP VEE (your solution looks close to it), python), today LLM is require a minutes Qt interface and unit tests. Also main language for devices was SCPI, but last years companies create own solution, any under building as Lua does not simplified life. But anyway I hope your "bicycle" could find a riders, good luck.
2
u/c4chokes 2d ago
True test will be, if you can test this on Tek hardware without GPIB/LAN locking up
2
u/jeanlouwired 1d ago
That looks really nice!
2
u/low-control-labs 2d ago
Nice
1
u/Hirtomikko 2d ago
I am more interested with the instruments on the bench....I am salivating
1
u/Electronic-Split-492 1d ago
Literal spaghetti code.
1
u/jonsca 1d ago
If you've got the Python, you don't need the LabView.