Skip to content Skip to navigation

OpenStax CNX

You are here: Home » Content » Transmission Control Protocol (TCP/IP) in LabVIEW

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
Download
x

Download module as:

  • PDF
  • EPUB (what's this?)

    What is an EPUB file?

    EPUB is an electronic book format that can be read on a variety of mobile devices.

    Downloading to a reading device

    For detailed instructions on how to download this content's EPUB to your specific device, click the "(what's this?)" link.

  • More downloads ...
Reuse / Edit
x

Module:

Add to a lens
x

Add module to:

Add to Favorites
x

Add module to:

 

Transmission Control Protocol (TCP/IP) in LabVIEW

Module by: Felix Annan. E-mail the author

Summary: This module discusses the use of the Trasmission Control Protocol virtual instruments in LabVIEW for inter-VI data transfer

TCP allows the developer to setup data communication between virtual instruments on a network using internet protocol addresses and port numbers. TCP sets up an end to end connection between the two communicating parties over which the data is sent. For each message sent, the receiver has to know the length of the package sent in order to use the correct number of bytes in determining the message that was sent. With the ability to send and receive messages of varying lengths, one can develop various complicated methods for the transfer of data with the use of state machines. TCP can be used with any protocol that is built with TCP as its base like http, ftp etc. It enables the developer to set up communications between clients where the clients can “negotiate” on the data to be transferred and how it will be transferred.

The Advantage:

  1. Variable length messages allows clients to negotiate the transfer of information
  2. Data that is transferred is buffered by receiver
  3. Servers can be built where desired

The Disadvantage:

  1. Can be complicated to setup

This method of data transfer can be used for most kinds of data. With a little extra knowledge one can be able to set up interesting communication models between applications.

Implementation:

A typical sender-receiver implementation is shown in the Figure. 1

Figure 1: The VI on the left writes to a port of a specified ip and the VI on the right reads from the port that is being written to
Transmission Control Protocol
Transmission Control Protocol (tcp.jpg)

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Reuse / Edit:

Reuse or edit module (?)

Check out and edit

If you have permission to edit this content, using the "Reuse / Edit" action will allow you to check the content out into your Personal Workspace or a shared Workgroup and then make your edits.

Derive a copy

If you don't have permission to edit the content, you can still use "Reuse / Edit" to adapt the content by creating a derived copy of it and then editing and publishing the copy.