Sie sind auf Seite 1von 2

TCP Communicator Active.

vi (Client)

Description:
This example, while not specifically written for the LabVIEW Real-Time Module, runs
on RT targets.

Demonstrates how to display an interactive send and receive message dialog for
communication between TCP connections. It establishes a connection on the machine
listed and the port specified. It then waits for you to input data into the Input Line string
control and hit enter. Once you hit enter, the string you typed is sent to the port and
passed to the TCP Communicator - Passive.vi where it is displayed on a string indicator.

The key difference between the Active and Passive VIs is that the Active VI establishes a
connection, while the Passive VI waits for a connection to be established.

Note: Requires the TCP Communicator - Passive.vi.


TCP Communicator Passive.vi (Server)

Description:
This example, while not specifically written for the LabVIEW Real-Time Module,
runs on RT targets.

Demonstrates how to displays an interactive send and receive message dialog for
communication between TCP connections. It listens for 10 seconds at the specified port.
If no connection is detected, it times out. If a connection is detected it then waits for you
to type into the Input Line string control. Once you hit enter, the string you typed is sent
to the port and passed to the TCP Communicator - Active.vi where it is displayed in a
string indicator.

The key difference between the TCP Communicator - Active.vi and the TCP
Communicator - Passive.vi is that the Active VI establishes a connection, while the
Passive VI waits for a connection to be established.

Note: Requires the TCP Communicator - Active.vi.

Das könnte Ihnen auch gefallen