r/LabVIEW • u/Emilbon99 • Jul 23 '24
We built a Case-Specific LabVIEW Alternative with a Built-In Time-Series DB
PSA: This is to some degree a self-promotional post, and we've asked for approval from the mods. We think what we've built could be useful to some of you, are planning on making it open source, and wanted feedback
PSA over! I'm a long time lurker of this sub. My team and I are software engineers who worked with various LabVIEW based rocket launch control systems. Like many of you, we have a somewhat mixed relationship with the tool and the way NI is handling its future development, especially under Emerson. We love how easy it is to integrate with hardware, get GUIs setup, and the high level design tools it offers (especially FPGA). We often get frustrated with the lack of integrations with external tools (like databases), how hard it is to version control, and that it's difficult to set up continuous integration/deployment.
We set out on a journey two years ago to try a different approach to test and measurement, and ended up build a tool called Synnax (Github and docs). Here are the things we wanted to prioritize:
Direct integration with hardware from a number of vendors, starting with NI (via DAQmx) and PLCs (via OPC UA).
Permanent and easily accessible data storage.
No-code support for building GUIs, starting with plots and interactive schematics (buttons, setpoints, valves, pumps, motors).
Easily set-up and configure multiple, real-time GUIs that are all linked to the same test stand.
Ability to write control sequences, processing scripts, and build custom GUIs in widely available languages, starting with C++, Python, and TypeScript.
And here are the things we didn't prioritize, and where LabVIEW is still a much better fit:
Real-time modules and generally high-performance, low-latency logic.
Anything FPGA related.
At the core of our tool is a time-series database that supports real-time streaming of high rate sensor data. What we've built is essentially a frankenstein of InfluxDB and Apache Kafka with hardware-specific tooling. Publishers can push sensor values and commands, and subscribers can receive them. Examples of publishers are:
Our NI Driver that reads data from NI cards via DAQmx, or our OPC UA driver that can read from PLCs.
Control sequences written in our Python SDK or manual operator commands sent from our Console.
Examples of subscribers are:
Our NI driver that can write commands to the digital outputs of NI cards.
Plots and/or Live values in a GUI
Automated post-processing scripts.
We also permanently store all of a channel's data for retrieval, and make it so you can query it for post-processing needs.
I don't want to write a wall of text, so I'll end my speech there. Happy to elaborate on anything technical, answer questions, or take feedback!
We also have some questions for the sub if you're interested in responding:
How important is the graphical part of LabVIEW programming to you? Would you use a similar tool if it had a similar feature set, but was text-based instead?
How often do you integrate LabVIEW with non-NI hardware?
Do you store test data in a database? Do you think there's high demand for doing so, or do you think TDMS/CSV files work well for your team?
2
Jul 23 '24
I personally found the graphical programming portion of LV useful when first learning it on the job from completed projects. I would just run the programs in highlight execution mode which made learning what was happening so much easier.
However, going forward I personally think going text based could be faster when developing a project especially when using new instruments that don’t already have libraries. My only concern here is wondering how multi threading will be done/written. I’ve personally never done that with a text based program.
As for the other two questions I personally don’t think I have good enough input for those.
2
u/Emilbon99 Jul 23 '24
I can agree with that point. It's nice to be able to lay down several async loops and have a clear picture of how everything is behaving. A large portion of what we're trying to accomplish is to remove the need for multithreading when doing common tasks such as acquiring data, running control loops, etc. That way you don't need to be an experience dev to write test and measurement scripts.
5
u/DracoInferno_ CLAD/Intermediate Jul 23 '24
I have to say that the tool looks neat and it seems to have a lot of resources (with images and gifs!). I'll probably give it a deeper look later.
Regarding your questions:
Graphical programming is a big reason why I like LabVIEW. I find it much easier to understand the code than regular text based languages. It's so much faster to identify shapes than words! With one glance you can know the big picture of what the vi do. ("ok I see DAQmx Red looking VIs with a while loop and waveform coming out of one of these vi. I guess it's continuously reading data from a DAQ." all that in a second*).* Someone said multi threading? It's so simple compared to text based (no thread_create, thread_join, ...) just two loops and synchronization palette.
Regarding hardware, my team and me (testbench dev) are regularly working with both NI and non-NI HW, I'd say it's 30% NI / 70% Non-NI. Usually it's instruments (multimeter, power source, waveform generator, ...) so we use third party drivers on NI website. For Digital I/O (and a few Analog I/O) without real-time requirements, we are using PLCs with IO cards that are mapped to a Modbus table. Sometimes it's communicating with the product itself (HTTP, Bluetooth, NFC, ...).
Personally I've never used a database. A colleague of mine did though, in order to allow data visualization through a web app. Usually it's TDMS / CSV / XLSX (pls send help).
1
u/n-winn CLD Aug 02 '24
What language + library did you use for the proof-of-concept UI in the video? Looks nice, btw.
1
u/Emilbon99 Aug 02 '24
It's built in TypeScript + React using an in-house component library. An example plot using the library -> https://docs.synnaxlabs.com/reference/pluto/line-plot
1
1
u/Monastie Sep 01 '25
I'd like to give it a try in an automotive testing environment. Right now we have a commercial solution with a LabView backend and their proprietary drivers for the different type of interfaces we use (LV and HV power sources, WT5000 power analyzer, CAN, Modbus, Datasocket, etc.)
One main question I have is if there's a way to have CAN communication through Vector boxes, such as the VN16XX family? I've not tried it independently yet but there seems to be a python library (python-can) that allows to interface with those type of boxes.
1
u/Emilbon99 Sep 15 '25
Apologies for the late reply here! We don't have a built-in CAN integration, although our python library works exactly the way you'd expect. Install python-can and write up an adapter similar to what we've documented here: https://docs.synnaxlabs.com/reference/python-client/device-driver
We do have a built-in CAN driver on our roadmap for release before the end of the year.
3
0
Jul 23 '24
[deleted]
3
u/Emilbon99 Jul 23 '24
Interesting. Are there specific aspects of the graphical experience you can touch on? Easier to visualize and understand control flow? Also, do you think there's a place for graphical languages in areas outside of test and measurement i.e. pure software dev?
3
u/quantum0058d Jul 24 '24
I'm similar. For me LabVIEW allows me to work very fast. I can't understand why graphical programming hasn't taken off. It's like someone insisting on using assembly when c is much faster and easier
4
u/rockethacker CLA Jul 24 '24
Graphical programming is essential because it gives the ability for test engineers to make their own graphical interface without involving the software team
Local data recording will always be required. Tdms is a pretty good solution for that. Plus db streaming isn't a good solution for hispeed dynamics data
I agree that you can't trust ni/Emerson. I'm the 15 years I've worked with them they've always chosen marketing/hardware sales over the features we actually need.
Curious what you guys have come up with. I'm retired now but I spent a decade managing rocket test site software development so I really understand the technical challenges you are trying to address.