LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 849
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-66ni.comNXTCommBTWriteParameters:This system call method copies data from the buffer input to an internal Bluetooth buffer and instructs the NXT firmware to send the data to the device configured on the specified port.If the return value is zero, the method successfully started a communication transaction. Use NXTCommBTCheckStatus to monitor the status of the transaction.This method can return the following non-zero status codes:If you are sending data to another NXT brick, the buffer must contain a complete packet conforming to the NXT communication protocol. Refer to the LEGO MINDSTORMS Web site actionURI(http://mindstorms.lego.com/):at mindstorms.lego.comactionURI(http://mindstorms.lego.com/): for the communications protocol documentation for Bluetooth. ParameterData CodeI/O DirectionDescriptionStatus CodeI8outputRefer to the following status codes.ConnectionU8inputConnection (port), [0, 3]BufferU8 arrayinputUp to 256 bytes for writing to specified portStatus CodeEnumDescription–330xDFERR_COMM_CHAN_INVALIDSpecified port is out of range–320xE0ERR_COMM_CHAN_NOT_READYSpecified port is busy or not properly configured–190xEDERR_INVALID_SIZEBuffer size exceeded maximum size