LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 758
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-37LabVIEW LEGO MINDSTORMS NXT ModuleBuilt-In I/OThe module provides access to several kinds of built-in I/O, including the following:•Manipulating files in a simple flash file system using the File Access Methods•Drawing to the NXT display using the NXT Display Methods•Reading the built-in buttons on the NXT brick using the NXT Button Method•Playing back recorded or synthesized sound using the Sound Playback Methods•Communication with connected Bluetooth peers using the Bluetooth Communications MethodsTo use any of these built-in I/O features in a program, connect an NXTSyscall refnum to the reference input of any Invoke Node and select the appropriate method.File Access MethodsUse the file access methods to create, modify, rename, or delete files stored on the NXT brick.The NXT firmware organizes all files in a simple flat file system stored in the flash memory on the NXT brick. Files are listed and referred to by name, and files can have any size up to the amount of available flash. The file system is flat because the file system does not support organizing files into hierarchical folders. NXT firmware 1.05 allows you to create up to 63 files, assuming flash space is available.NXT filenames include up to 15 characters for the main name, a dot, and 3 characters for the extension, which specifies the file type. This convention is referred to as 15.3 filenames. A file extension serves as a cue to the NXT firmware as to how and where files are listed and treated. The NXT firmware 1.05 and the LEGO MINDSTORMS NXT software use the following main file extensions:•RXE—Executable files compiled from NXT-G, LabVIEW, or another compatible programming environment•RPG—Simple 5-step programs created using the NXT Program UI on the NXT brick