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

Capturing Events from VIs in SubPanels

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 project demonstrates capturing events from front panel objects of a subVI that is running in a subpanel.


Description
The main VI uses VI Server to get a reference to the front panel objects, and then can dynamically register a value change event for a front panel object of the dynamically called Sub VI


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run VI

 

Additional Information or References
VI Block Diagram

 
Block Diagram.png

 

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

 

 

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

Comments
jjsanchez83
Member
Member
on

Can you attach for Labview 2009^? thanks

Chris.N
Member
Member
on

I just attached a version that was saved in 2009.  I didn't take the time to test in 2009, I just saved for previous version.  Let me know if it works, otherwise I would rebuild the VI from looking at the concept in the images.

Cheers!

jjsanchez83
Member
Member
on

Hi Chris,

thanks for your reply. It doesn´t work in 2009 because the object "start asynchronously call" does not exists but I will take you scheme and I will try to solve using "invoke mode" run to call the VI.