Example Code

Pass Streaming Data to SubVI in LabVIEW

Code and Documents

Attachment

Overview:

This project exemplifies a way to pass data to a stand-alone subVI.

Description:

This VI uses the VI server architecture to open a reference to the subVI and use the "Control Value:Set" method to change the value of a control. This can be used to keep the main front panel free from unnecessary indicators and keep them in a separate VI to be opened and viewed only when desired. It is also possible to run the subVI programmatically depending on the value of the "Startup Sub VI" Boolean control.

Requirements:
LabVIEW Base Development System.

Steps to Implement or Execute Code:
1. Open the attached VI "Streaming Data Send LV 2012 - NI Verified.vi"
2. Run the VI.
3. Set the value of the "Star SubVI" boolean control to "True".

Additional Information or References: 


Snippet Data Send 3862.png**This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Regards,

Jared Boothe
Staff Hardware Engineer
National Instruments

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

Comments
lafox24
Member
Member
on

How can this be modified to pass an array of U8 instead of as string,  I've had a go but haven't had any success.