O'Reilly logo

LabVIEW Graphical Programming Cookbook by Yik Yang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Simple TCP/IP Messaging to pass data

Simple TCP/IP Messaging (STM) is another way to pass data between programs within a PC and programs running on different PCs on the same network. It is very similar to the shared variable, but uses the TCP/IP protocol for communication. This recipe demonstrates how to use STM to pass data.

How to do it…

In this example, we will create two programs that reside on the same PC, and they will communicate via STM.

  1. Create the server VI. The first state is Initialize. It waits for a TCP connection at port 55555 and sets up variable name for the connection. It sets up the metadata for messaging, which is then sent to the other side for message decoding purposes. The name of the variable Number is sent as the metadata. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required