Download LabVIEW Function and VI Reference Manual

Transcript
Chapter 11
File Functions
Default Directory Constant
Returns the path to your default directory. The default directory is the directory which the file
dialog displays initially. The Preferences dialog box (Edit»Preferences), under Paths,
defines this directory.
Empty Path
Returns an empty path.
Not A Path
Returns a path whose value is Not A Path. You can use this path as an output from structures
and subVIs when an error occurs.
Not A Refnum
Returns a refnum whose value is Not A Refnum. You can use this refnum as an output from
structures and subVIs when an error occurs.
Path Constant
Use this to supply a constant directory or file path to the block diagram. Set this value by
clicking inside the constant with the Operating tool and typing in the value. Use the standard
file path syntax for a given platform. You can set the value of the path constant to Not a Path
by clicking on the path symbol with the Operating tool and selecting Not a Path from the
resulting menu. See the Paths and Refnums section of Chapter 6, Strings and File I/O, in the
LabVIEW User Manual for more information on using the Not a Path value.
The value of the path constant cannot be changed while the VI executes. You can assign a
label to this constant.
© National Instruments Corporation
11-27
LabVIEW Function and VI Reference Manual