Create from Data Type Method

LabVIEW 2018 Help

Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)

LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Short Name: Create from Data Type

Requires: VI Scripting

Class: VI Methods

To Use: Create a method.

Creates a control or constant of the data type you specify. LabVIEW always creates a control initially, even if you configure Style to create a constant or indicator. To change the type of the new object, use the Indicator property.

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.
StyleYesSpecifies whether you create a front panel or block diagram object. If you select a front panel object, this parameter further specifies the style of that object.

2Panel Control
33D Panel Control
4Dialog Panel Control
5Panel Indicator
63D Panel Indicator
7Dialog Panel Indicator
8Power PC Control
9Power PC Indicator
10Silver Control
11Silver Indicator
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 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


Not Helpful