LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

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

Summary of Contents

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

  • Chapter 2Extensions to LabVIEW© National Instruments Corporation2-47LabVIEW LEGO MINDSTORMS NXT ModuleNXTFileReadParameters:This system call method attempts to read Length bytes of data from the file opened with the handle specified by File Handle.If the return value is zero, the file read operation succeeded. Buffer contains Length bytes of file data in string format. If the file contains text data, use the string like a normal text string, such as the display to the screen. If the file contains flattened binary data, use the Unflatten from String function to unflatten it.If the return value is non-zero, an error occurred attempting to read bytes from the file. Note that Buffer might still contain valid data if the method encountered the end of the file before reading Length bytes. In this case, the Length output contains the count of bytes that were actually read.Successive calls to NXTFileRead with the same file handle reads new data each time. For example, each read operation advances the internal file read cursor.ParameterData TypeI/O DirectionDescriptionStatus CodeU16outputRefer to 57,the File Access 57, Status 57, Codes 57, section.File HandleU8input-outputUnique handle to identify open fileBufferstringoutputFile data in string formatLengthU32input-outputLength of file in bytes