Formatting and I/O Library Chapter 2
LabWindows/CVI Standard Libraries 2-12 © National Instruments Corporation
Parameter Discussion
FileName may be an absolute pathname or a relative file name. If you use a relative file name,
the file is located relative to the current working directory.
DataType must be one of the following.
•VAL_CHAR
•VAL_SHORT_INTEGER
•VAL_INTEGER
•VAL_FLOAT
•VAL_DOUBLE
•VAL_UNSIGNED_SHORT_INTEGER
•VAL_UNSIGNED_INTEGER
•VAL_UNSIGNED_CHAR
NumberOfGroups specifies the number of groups into which the data in the file is divided.
Groups can be in the form of either columns or rows. If there are no groups, use 1. This
parameter only applies if the file type is ASCII.
If the data is divided into groups, arrayDataOrder specifies the order in which the data is to be
stored in the array. The two choices are as follows.
•VAL_GROUPS_TOGETHER— all points from one data group are stored together followed by
all points from the next data group.
•VAL_DATA_MULTIPLEXED—the first points from each data group are stored
consecutively, followed by the second points from each group, etc.
If the file is in ASCII format, fileLayout specifies how the data appears in the file. The two
choices are as follows.
•VAL_GROUPS_AS_COLUMNS
•VAL_GROUPS_AS_ROWS
If there is only one group, VAL_GROUPS_AS_COLUMNS specifies that each value in the file is
on a separate line.
FileType specifies whether the file is in ASCII or binary format. The choices are as follows.
•VAL_ASCII
•VAL_BINARY