LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 827
Downloads : 2 times
PDF Size : 572.7 KiB

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEWLabVIEW LEGO MINDSTORMS NXT Module2-40ni.comFile Access Status CodesFile access system call methods return a different set of status codes from most other system call methods. File access status codes are unsigned 16-bit integers rather than signed 8-bit integers. In most cases, you only need to check if file access methods return status codes other than zero (SUCCESS), but the following table lists specific codes which you might see in your programs.ValueEnumDescription0x0000SUCCESSOperation succeeded.0x8100NO_HANDLESThe firmware is not able to allocate any more file handles for this operation.0x8300NO_FILESThe firmware is not able to create any more files.0x8400PARTIAL_WRITEWrite request exceeded space available in file; partial write performed.0x8500EOFFile operation reached end of file.0x8700FILE_NOT_FOUNDSpecified file not found.0x8800FILE_CLOSEDSpecified file or handle is already closed.0x8900NO_LINEAR_SPACEThe firmware is not able to allocate requested linear file system space for specified file.0x8A00GENERIC_ERRORA generic (unspecified) error condition occurred.0x8B00FILE_BUSYCannot acquire file handle for specified file because some other operation has opened the file.0x8C00NO_WRITE_BUFFERSCannot open file for write operation because all write buffers are already in use. Only four files can be open for write simultaneously.0x8D00ILLEGAL_APPENDCannot open file for append.0x8E00FILE_FULLAllocated space for specified file is full (no more write operations allowed).0x8F00FILE_EXISTSFailure to create or rename file due to name collision.0x9200ILLEGAL_FILE_NAMEIllegal file name provided. Ensure file name consists of 15.3 (or fewer) printable characters.0x9300ILLEGAL_HANDLEAllocated space for specified file is full.