05-19-2025 03:46 AM
Hello everyone!
I'm new to LabVIEW, and I'm trying to build a TCP communication between my computer and my Raspberry Pi.
I want my Raspberry Pi to connect to my LabVIEW TCP server and send values. On the other hand, I want my LabVIEW server to accept the connection and plot the values on a graph.
For now, I'm starting small, so my server just writes the values to a numeric indicator.
My problem is that the client doesn't seem to connect to the server... I just don't know why, and I don't have enough knowledge of LabVIEW to debug it myself.
I've attached my LabVIEW server and my client so you can help me find the issue.
Here’s some info about my Raspberry Pi, in case it's helpful:
Raspberry Pi 3
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
Architecture: aarch64
The board on top of the Raspberry Pi that reads the data: MCC 128 (DAQ HAT)
(My tcp client was working just fine with a python server using matplotlib)
Solved! Go to Solution.
05-19-2025 10:03 AM
You do not need to wire the service name for create listener. You probably meant to connect the net address terminal on top, but that is also not necessary.
The connection id terminal is on the bottom of wait on listener. You have to specify a value greater than zero for bytes to read. Use a large value, it will only read until it encounters CRLF.
You have to add a carriage return \r to your send string, right now it only contains a newline \n.
See if this works.
TCP Server CRLF
05-20-2025 03:36 AM
Thank you cordm !
My biggest problem was that windows defender was blocking Labview. Now I can connect my Raspberry to labview and your vi works perfectly fine.
Now I will continue with plotting my value 😁