Example Code

Programmatically Run a VI on an RT Target

Code and Documents

Attachment

Overview

This project is meant to show how to run a VI on a target computer from a host.

 

Description

Sometimes multiple types of functionality is needed at runtime from an RT target to a host computer.  To dynamically call VIs to implement this functionality a source distribution must be used.  This example is in reference to this Knowledge Base article: http://digital.ni.com/public.nsf/allkb/a7dba869c000b5ae862570b2007c4170?OpenDocument

 

Requirements

  • LabVIEW 2012 compatible, with LabVIEW RT

 

Steps to Implement or Execute Code

  1. Build a deploy the source distribution on the RT Target
  2. Open "Host.vi"
  3. Input the IP address of the target
  4. If no changes were made to the target VI, run the VI and watch the Output indicator count down from 0.
  5. Pressing stop will reset the VI and running it again will start the counter at 0.

 

Additional Information or References

 

run on rt snippet.png
 

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

 

Bobby Breyer
Applications Engineer
National Instruments

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