LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 765
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-2ni.comNoteRefer to th 94,e Using Dynami 94,c System 94, Calls 94, section of this document for more information about using the NXTDynamicSyscall refnum.Each method you use corresponds to a call to an internal system function matching the name of the method, or the system call. Most system call methods provide status codes as their return values. In general, status code values indicate one of the following three results:•A status code of zero indicates a status of OK; no special action is required.•A negative status code indicates an error.•A positive status code indicates a warning.System call methods might have more parameters listed below the return value. These parameters can be inputs, outputs, or both.NoteThe module does not support using error cluster inputs or outputs on Property Nodes or Invoke Nodes.The following sections describe how to program various device types in more detail.Analog Input Devices The NXT brick features four input (sensor) ports, which you can connect interchangeably to both analog inputs, such as light sensors, and digital inputs, such as the NXT ultrasonic sensor. This section describes the interface provided to program analog input devices.Analog input devices includes touch, light, sound, and color sensors.Input Port PropertiesTo configure or read values from analog I/O devices, use the NXTInput interface. Connect an NXTInput refnum wire to the reference input of a Property Node. Then resize the Property Node to add more terminals. Adding more terminals enables you to display the properties you want to access. This section describes each property that this module supports.