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 type | Name | Required | Description |
---|---|---|---|
Data Type | Yes | The data type you want to use to create the constant. | |
Position | No | Specifies the position where you want to create the constant or control. | |
New Object Reference | Yes | The reference to the constant or control you create. | |
Make Names Unique | No | Determines 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 type | No return value |
Available in Run-Time Engine | No |
Available in Real-Time Operating System | No |
Settable when the VI is running | No |
Loads the front panel into memory | Yes |
Need to authenticate before use | No |
Loads the block diagram into memory | Yes |
Remote access allowed | No |