Create from Reference Method

Short Name: Create from Reference

Requires: VI Scripting

Class: VI Methods

To Use: Create a method.

Creates a constant or control using a constant or control reference as a template.

Parameters

Data typeNameRequiredDescription
Source Object ReferenceNoA reference to the object you want to duplicate on the target VI. If you use this parameter, you do not need to wire the type descriptor and style fields.
PositionNoSpecifies the position where you want to create the constant or control.
New Object ReferenceYesThe reference to the constant or control you create.
Make Names UniqueNoDetermines whether to make the name of the constant or control unique. Make Names Unique does not rename the constant or control if a constant or control with that name already exists.

Remarks

The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineNo
Available in Real-Time Operating SystemNo
Settable when the VI is runningNo
Loads the front panel into memoryYes
Need to authenticate before useNo
Loads the block diagram into memoryYes
Remote access allowedYes
Must wait until user interface is idleNo
Available with control VIsYes
Available with global VIsYes
Available with strict type definitionsYes
Available with polymorphic VIsNo