Short Name: AddItem
Requires: Base Development System
Class: ProjectItem Methods
To Use: Create a method.
This method returns an error if the specified type cannot be created under the current item. The method also returns an error when you try to add a shared variable to a library that is not opened in a project.
|Note The LabVIEW Datalogging and Supervisory Control Module supports this method in the Run-Time Engine.|
|Name||Yes||Name of the project item you want to add.|
|Path||Yes||Path to the project item you want to add.|
|Type||Yes||Specifies the project item type.
The following values are the most common Type values:
To determine the value of Type for a project item that is not listed above, use the Type String property to programmatically return the type of the item.
The following table lists the characteristics of this method.
|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||No|
|Need to authenticate before use||No|
|Loads the block diagram into memory||No|
|Remote access allowed||Yes|
|Must wait until user interface is idle||No|
|Available with control VIs||No|
|Available with global VIs||No|
|Available with strict type definitions||No|
|Available with polymorphic VIs||No|
Refer to the Add Files to Project VI in the labview\examples\Application Control\VI Server\Manipulating Projects directory for an example of using the Add Item method.