LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 793
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-69LabVIEW LEGO MINDSTORMS NXT ModuleNXTMessageReadParameters:This system call method reads the oldest message available in the specified mailbox queue and optionally removes that message from the queue.If the return value is zero, the specified message queue was not empty and the Message output contains the oldest message from the queue.This method can return the following non-zero status codes:If you are calling NXTMessageRead on a master NXT brick with slave devices connected, this method also periodically checks for outgoing messages on the slave devices by automatically exchanging Bluetooth protocol packets with slaves.ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputRefer to the following status codes.QueueIDU8inputMailbox queue, [0, 9]Remove (T)BooleaninputIf TRUE, remove message from specified queue after reading dataMessagestringoutputMessage dataStatus CodeEnumDescription640x40STAT_MSG_EMPTY_MAILBOXSpecified mailbox queue is empty–180xEEERR_INVALID_QUEUEInvalid mailbox queue specified