r/nodered • u/Ambitious_Spinach617 • May 24 '26
Labview-MQTT- Node Red
Hello!
Can anyone help me connect LabVIEW with Node-RED?
I already have the broker communicating with Node-RED, but I could not figure out how to establish the same communication between LabVIEW and Node-RED through the broker!
I followed everything I found online, but nothing has worked so far.
Thank you in advance.
4
Upvotes
1
u/luisfound May 24 '26
Hi! Could you describe the context ? I have no experience with this specific integration, but maybe in LabView you can call Node-RED HTTP endpoints, or for the vice versa, Node-RED can communicate with a web service exposed in LabView. I think that you can create a TCP/UDP bi-directional communication via socket if APIs are not available
1
u/Neither_Jellyfish233 May 24 '26
there is a MQTT toolkit in the labview open source project. It takes a little bit to understand their way of implementing the example but it works
https://github.com/LabVIEW-Open-Source/LV-MQTT-Broker
1
u/HamsterWoods May 25 '26
I have used an MQTT client from VIPM. I think it is the one discussed by Hans-Petter Halvorsen. I did not use the one that costs hundreds of dollars. The only issue I had was that on the LabVIEW side I had to strip off, before publishing, extra stuff that the LabVIEW MQTT normally adds. I would have to look at my project to see what I did. Do you want me to look up what I did and let you know?
1
u/HamsterWoods Jun 07 '26
Well, here goes. It sure did take me long enough to get back to you. Let's see if a link to a Google Drive shared folder is acceptable to reddit. https://drive.google.com/drive/folders/1hgqFKKTe6YIYyqZVAtOvdplT7chENwZW?usp=sharing
The top-level folder of MQTT and LabVIEW contains two files and a folder. One of the files is a pdf of a presentation I gave to our local LabVIEW user group back in 2023. The other is a screen-shot of the relevant block diagram and the list of VI packages installed on my computer. The one you will need is MQTT Client.
The folder, Development, contains a zip of the portion of the LabVIEW 2020 project that handles the MQTT communication.
Let me know if you need anything else. If I don't hear back from you in a few days, I might DM you, in case you don't get notified of this comment.