VI class/Create from Data Type method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 49D
Scope VI Scripting
Data Name Create from Data Type
Short Name* Create from Data Type
Long Name* Create from Data Type
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 2
Owning Class Name VI Class
Return Data Type No return value
Invoke Node Create from Data Type
Available in Real-Time Operating SystemNo
Available in Run-Time EngineNo
Available with control VIsYes
Available with global VIsYes
Available with polymorphic VIsNo
Available with strict type definitionsYes
Loads the block diagram into memoryYes
Loads the front panel into memoryYes
Must wait until user interface is idleNo
Need to authenticate before useNo
Remote access allowedYes
Settable when the VI is runningNo

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.

Parameters

Data type Name Required Description
LV Variant Data Type Yes The data type you want to use to create the constant.
Enum U8 Style Yes Specifies 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.
Numeric Cluster Position No Specifies the position where you want to create the constant or control.
GObject Refnum New Object Reference No The reference to the constant or control you create.
Boolean Make Names Unique (F) No

Uses

History

Version Change(s)
LabVIEW 2011 In LabVIEW 2011 the Create from Data Type method changed the data type of the Style parameter from a 32-bit signed integer to an enum. The Style parameter also includes the following new values: {Probe, Diagram, Panel Control, 3D Panel Control, Dialog Panel Control, Panel Indicator, 3D Panel Indicator, Dialog Panel Indicator, Power PC Control, and Power PC Indicator.} (For the previous method see Create from Data Type (Deprecated) method.)

See Also

External Links