Requires: VI Scripting
To use VI Scripting to inspect, modify, or create VIs and VI objects, you must usually begin by obtaining a reference to the target VI with which you want to interact. You then can use the reference to obtain references to objects within the target VI or to add new objects to the target VI.
Refer to the following table to identify the best way to obtain a VI reference for your specific use case.
|Type of Target VI||How to Obtain a Reference to the Target VI|
|Pre-existing target VI whose path you know at edit time||Static VI Reference
|Pre-existing target VI that you want to select at run time|
Target VI that you intend to call with the Call By Reference node
|Open VI Reference
|New VI||New VI
|New VI with contents copied from a template VI||Create a new VI from a template.|