LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 804
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-45LabVIEW LEGO MINDSTORMS NXT ModuleNXTFileResolveHandleParameters:The NXT firmware has a list of open file handles. This system call method searches the list of open file handles by Filename. To succeed, Filename must contain the exact filename of an already opened file.If the return value is zero, the file is already open. The File Handle output is assigned a unique handle for use with NXTFileRead/NXTFileWrite and NXTFileClose. If the Boolean output Write Handle? is set to TRUE, the file is open for write operations. Otherwise, the file is open for read operations.If the return value is non-zero, the file is not yet open. You can ignore File Handle and Write Handle?. If you intend to use the file, call the appropriate open method for the file.ParameterData TypeI/O DirectionDescriptionStatus CodeU16outputRefer to the 57,File Access 57, Status Codes section.File HandleU8outputUnique handle to identify open fileWrite Handle?BooleanoutputTRUE if returned handle is for write operations.FilenamestringinputMaximum of 19 characters (15.3 filename)