LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 754
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-65LabVIEW LEGO MINDSTORMS NXT ModuleNXTCommBTCheckStatusParameters:This system call method checks the status of the Bluetooth communication on the specified port.If the return value is zero, the port is idle and the last operation, (if any, did not cause any errors.This method can return the following non-zero status codes:If you see ERR_COMM_CHAN_NOT_READY, make sure a Bluetooth connection is configured on the specified port.If you see STAT_COMM_PENDING, an operation is in progress and do not interrupt it. Avoid calls to NXTCommBTWrite until NXTCommBTCheckStatus returns zero or a negative error code.ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputRefer to the following status codes.ConnectionU8inputConnection (port), [0, 3]Status CodeEnumDescription320x20STAT_COMM_PENDINGPort is busy performing a transaction.–350xDDERR_COMM_BUS_ERRLast transaction failed–330xDFERR_COMM_CHAN_INVALIDSpecified port is out of range [0,3]–320xE0ERR_COMM_CHAN_NOT_READYSpecified port is not properly configured