Example Code

Control Real-Time (RT) Target VI from Host VI Using VI Server

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates the use of a simple Host VI to control a specified Target VI using VI Server.


Description
The example can programmatically start and stop a Target VI, and displays data retrieved from the VI to illustrate when the target starts and stops.Instructions for running the VI are included on the Front Panel of the Host VI.

 
Requirements

  • LabVIEW 2012 (or compatible)
  • LabVIEW Real Time module 2012 (or compatible)


Steps to Implement or Execute Code

  • Select the target system IP.
  • Select the VI path to be deployed on the RT system
  • Run the program

 

Additional Information or References
VI Snippet

3-301.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Fred Visser -- SystemLink R&D -- National Instruments

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