Create from Data Type Method

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Short Name: Create from Data Type

Requires: VI Scripting

Class: Diagram Methods

To Use: Create a method.

Creates a control or constant of the data type you specify. LabVIEW always creates a control initially. To change the type of the new object, use the Change to Indicator method.

Use the To More Specific Class function to try to cast the reference this method returns to the specific class you want to use in the application. If the function does not return an error, the reference matches the specific class.


Data typeNameRequiredDescription
Data TypeYesThe data type you want to use to create the constant.
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.


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 allowedNo
Must wait until user interface is idleNo
Available with control VIsYes
Available with global VIsYes
Available with strict type definitionsYes
Available with polymorphic VIsNo


Not Helpful