Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

New VI Object Offset From Referenced Object

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Owning Palette: VI Scripting VI and Functions

Requires: VI Scripting

This cluster provides a way to define the location input of the New VI Object function as an offset from another object. Refer to the New VI Object Location Argument example VI in the labview\examples\VIScripting\New VI Object - Location directory for a visual comparison of the three acceptable types of arguments for the location input.

You must initialize the Refnum element to a reference to a pre-existing object by using the Bundle or Bundle By Name function.

Details  Example

Refnum is a reference to the object next to which you want the New VI Object function to place a new object.
Relative Direction is the direction relative to the object referenced by Refnum where you want the new object to be placed.

0Right
1Left
2Top
3Bottom
4Top Right
5Top Left
6Bottom Right
7Bottom Left
Point32 indicates the offset of the new object in the given direction from the referenced object.
Horizontal is the horizontal offset from the location specified by Relative Direction.
Vertical is the vertical offset from the location specified by Relative Direction.

New VI Object Offset From Referenced Object Details

The New VI Object Offset From Referenced Object cluster contains a reference to another object, an enumerated list of relative directions from that object, and a sub-cluster of offset coordinates. Together, the relative direction and offset specify where the New VI Object function places the new object in relation to the referenced object.

Example

Refer to the New VI Object Location Argument VI in the labview\examples\Application Control\VI Scripting\Creating Objects directory for an example of using the New VI Object Offset From Referenced Object VI.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit