From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Example Two Way Stream

Code and Documents

Attachment

Description

This is just a simple implementation of a Two Way Stream API. You can use this to more easily implement communication with a remote system. It is based on Network Streams.

This example code can also be used as a reference for you to learn how to encapsulate data into LabVIEW classes to create an API for any function.

Steps to Implement or Execute Code

  1. Run the example in Tester.vi or the RT project on your cRIO. If you want you can put the remote loop on a cRIO or remote PXI.

Requirements

Software

LabVIEW 2013

Network Streams installed on the remote system

Hardware

NA

Additional Images or Video



Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
PrimaryKey
NI Employee (retired)
on

For new applications you should consider using Reconnecting Network Stream - OOP

 

https://forums.ni.com/t5/Example-Code/NEW-Version-3-2-Variant-Reconnecting-Stream-with-Connection/ta...

Piotr Kruczkowski
Certified TestStand Architect
Certified LabVIEW Architect
Contributors