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
|
|
Available in Real-Time Operating System | No |
Available in Run-Time Engine | No |
Available with control VIs | Yes |
Available with global VIs | Yes |
Available with polymorphic VIs | No |
Available with strict type definitions | Yes |
Loads the block diagram into memory | Yes |
Loads the front panel into memory | Yes |
Must wait until user interface is idle | No |
Need to authenticate before use | No |
Remote access allowed | Yes |
Settable when the VI is running | No |
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
|
|
Data Type
|
Yes
|
The data type you want to use to create the constant.
|
|
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.
|
|
Position
|
No
|
Specifies the position where you want to create the constant or control.
|
|
New Object Reference
|
No
|
The reference to the constant or control you create.
|
|
Make Names Unique (F)
|
No
|
|
Uses
History
Version
|
Change(s)
|
|
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