Get Type and Creator Function

Owning Palette: Advanced File VIs and Functions

Requires: Base Development System

Reads the type and creator of the file specified by path. type and creator are four-character strings. This function does not work for files inside an LLB.

If the specified file has a name ending with characters that LabVIEW recognizes, such as .vi for the LVIN file type and .llb for the LVAR file type, this function returns that type in type and LBVW in creator. If the specified file is not a known LabVIEW file type, this function returns ???? in type and creator.

Details  

 Add to the block diagram  Find on the palette
path specifies the file or directory whose type or creator you want to read.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
path out returns path unchanged.
type contains the current type of the file after this function executes. If no error occurs, this function returns the type of the specified file in type. If an error occurs, error indicates the type of error and type is an empty string.
creator contains the current creator of the file after this function executes. If no error occurs, this function returns the creator of the specified file in creator. If an error occurs, error indicates the type of error and creator is an empty string.
error out contains error information. This output provides standard error out functionality.

Get Type and Creator Details

type can return the values for LabVIEW files listed in the table below.

LabVIEW File Typetype Value
ControlLVCC
.logLVDL
LabVIEW ClassCLIB
LabVIEW ProjectLVPJ
LibraryLIBR
LLBLVAR
PaletteLMNU
Template ControlsVCC
Template VIsVIN
XcontrolLVXC
VILVIN

The type parameter can also return some platform-specific strings.