National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 2 Formatting and I/O Library
© National Instruments Corporation 2-19 LabWindows/CVI Standard Libraries
error). If the last function that performs I/O encountered an I/O error, GetLastFmtIOError
returns a nonzero value.
Return Value
status integer Indicates success or failure of last function that
performed file I/O.
Return Codes
FmtIONoErr
0 No error.
FmtIONoFileErr
1 File not found.
FmtIOGenErr
2 General I/O error.
FmtIOBadHandleErr
3 Invalid file handle.
FmtIOInsuffMemErr
4 Not enough memory.
FmtIOFileExistsErr
5 File already exists.
FmtIOAccessErr
6 Permission denied.
FmtIOInvalArgErr
7 Invalid argument.
FmtIOMaxFilesErr
8 Maximum number of files open.
FmtIODiskFullErr
9 Disk is full.
FmtIONameTooLongErr
10 File name is too long.
GetFmtIOErrorString
char *message = GetFmtIOErrorString (int errorNum);
Purpose
Converts the error number returned by GetLastFmtIOError into a meaningful error message.
Parameters
Input
errorNum
integer
Error Code returned by GetLastFmtIOErr.
Return Value
message
string Explanation of error.