Jump to content

ProjectItem: Difference between revisions

From LabVIEW Wiki
Dnatt (talk | contribs)
No edit summary
Dnatt (talk | contribs)
No edit summary
Line 1: Line 1:
The '''ProjectItem''' class in VI Server allows you to inspect and modify items that appear in the Project window, such as VIs, virtual folders, classes, libraries, etc.
The '''ProjectItem''' class in VI Server allows you to inspect and modify items that appear in the Project window, such as VIs, virtual folders, classes, libraries, etc.


If you have a reference to a ProjectItem, you can read the ''TypeString'' property of the item to identify what kind of item it is:
If you have a reference to a ProjectItem, you can read the ''Type String'' property (short name is ''TypeString'') of the item to identify what kind of item it is:


[[File:TypeString property.png]]
[[File:TypeString property.png]]
Line 9: Line 9:
[[File:Get All Descendents method.png]]
[[File:Get All Descendents method.png]]


The following table lists valid ''TypeString'' values and their descriptions. Update this table with new type strings as you discover them.
The following table lists valid ''Type String'' values and their descriptions. Update this table with new type strings as you discover them.


{| class="wikitable"
{| class="wikitable"
|-
|-
! TypeString !! Description
! Type String !! Description
|-
|-
| Ability VI || An Ability VI within an XControl or XNode
| Ability VI || An Ability VI within an XControl or XNode

Revision as of 19:06, 3 June 2019

The ProjectItem class in VI Server allows you to inspect and modify items that appear in the Project window, such as VIs, virtual folders, classes, libraries, etc.

If you have a reference to a ProjectItem, you can read the Type String property (short name is TypeString) of the item to identify what kind of item it is:

This is the same string you can use for the Type parameter of the Get All Descendents method of the ProjectItem class to get all children of a ProjectItem that match a specific type:

The following table lists valid Type String values and their descriptions. Update this table with new type strings as you discover them.

Type String Description
Ability VI An Ability VI within an XControl or XNode
Build The Build Specifications node under every target
Class Private Data The Private Data Control inside a LabVIEW Class
cRIO Chassis RT CompactRIO Target
Dependencies The Dependencies node under every target
Directives Directives items created for VIs by FPGA IP Builder
DLL The Shared Library (DLL) node under Build Specifications
Document Non-LabVIEW files, like images, text files, etc.
ECATEbusSlave EtherCAT slave device
ECATEnetSlave EtherCAT slave device
ECATMaster EtherCAT master device
EXE The Application (EXE) node under Build Specifications
Elemental IO IO Resource under an FPGA target
FPGA Base Clock Base clock under an FPGA target
FPGA Component Level IP RIO DRAM
FPGA Derived Clock Derived clock under an FPGA target
FPGA FIFO FIFO node under an FPGA target
FPGA Memory Block Memory node under an FPGA target
FPGA Target FPGA target (R-series device, cRIO target, etc.)
Folder A virtual folder or an auto-populating folder
HTTP WebResources Container The Web Resources folder under a Web Service node
IO Server An I/O Server node under a target
IP Builder Target IP Builder node under an FPGA target
Installer The Installer node under Build Specifications
LVClass A LabVIEW class
Library A LabVIEW project library
LibraryData A hidden ProjectItem that contains internal information about an LVStatechart library
Localhost In some projects with a Real-Time target, the 'My Computer' target will have a type of 'Localhost' instead of 'My Computer'.
LVLibp A packed project library (PPL)
LVStatechart A LabVIEW StateChart Module library
LVStatechartVIItem A hidden ProjectItem that contains internal information about an LVStatechart library
Method VI A Method VI in an XControl
Module Container The Real-Time Scan Resources node under an RT Chassis
My Computer The My Computer node under the root Project
Packed Library The Packed Library node under Build Specifications
Project The root project item at the top of the Project Explorer
Property Definition A property definition folder under a LabVIEW Class
Property Folder A property folder in an XControl
Property VI A property VI in an XControl
RIO C Series Module A CompactRIO module that appears under the FPGA Target node under an RT CompactRIO Target
RIO Subresource A resource under a RIO module. For example, an SD Card node.
RT CompactRIO An RT CompactRIO Target
RT Generic A generic RT Target
RT PXI Chassis An RT PXI Target
RT Single-Board RIO An RT Single-Board RIO Target
Robotics Environment Simulator Simulated robot device
sbRIO Chassis An sbRIO Chassis that appears under an RT Single-Board RIO target
Source Distribution The Source Distribution node under Build Specifications
Startup VIs Container The Startup VIs folder under a Web Service node
TestItem A .lvtest file from the Unit Test Framework
TestVectorItem A .lvvect file from the Unit Test Framework
TouchPanel A Touch Panel target
VI A Virtual Instrument (VI)
Variable A shared variable node under a library or a target
Web Service A Web Service node
XControl An XControl library
XNode An XNode library
Zip File The Zip File node under Build Specifications
.NET Interop Assembly The .NET Interop Assembly node under Build Specifications
{69A947D5-514E-4E75-818E-69657C0547D8} The Real-Time Application node under Build Specifications (under an RT Target)
{9C5E1E31-72F0-41E9-9B17-FFBE4626F549} The IP Build node under Build Specifications (under an IP Builder target)
{E661DAE2-7517-431F-AC41-30807A3BDA38} The Package node under Build Specifications
{F4C5E96F-7410-48A5-BB87-3559BC9B167F} The Compilation node under Build Specifications (under an FPGA target)