Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
6 ratings:
 4 out of 5   

How Do I Programmatically Open a VI?



Primary Software: LabVIEW Development Systems>>LabVIEW Base Development System
Primary Software Version: 2012
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
In LabVIEW 2011, I programmatically opened VIs using the Front Panel»Open property node. However, I can't locate the property node in LabVIEW 2012. Additionally when I open code created in previous versions in LabVIEW 2012, the property node is pink rather than pale yellow. What should I use to programmatically open VIs?

FP.Open Property Node



Solution:
The property node variant is no longer supported in the 2012 version of LabVIEW. Instead, a VI Invoke Node can be used to achieve the same function.

FP.Open Invoke Node


  1. Place a VI Reference wire into the corresponding input of the Invoke Node.
  2. Left-click method and select Front Panel»Open.

There is also a method for closing the front panel:


To achieve the equivalent of the read property, use the Front Panel Window»State property to read whether the front panel is open (standard) or closed.



Related Links:
Community Example: Programmatically Open a VI from within Another VI

Attachments:





Report Date: 10/24/2012
Last Updated: 08/27/2014
Document ID: 62NA1HYI

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit