LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual

LabVIEW LEGO MINDSTORMS NXT Module Programming Guide Manual
Pages 97
Views 807
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-16ni.comNXTCommLSReadParameters:This system call method attempts to copy BufferLength bytes from the internal read buffer to your buffer.If the return value is zero, the read operation succeeded and Buffer contains all bytes available in the internal buffer. Successive NXTCommLSRead method calls will read new data each time.This method can return the following non-zero status codes:If any negative status code error is returned, Buffer is an empty array.ParameterData TypeI/O DirectionDescriptionStatus CodeI8outputRefer to the following status codes.PortU8inputPort, [0–3]BufferU8 arrayoutputBytes read from device, if anyBufferLengthU8inputUpper bound on number of bytes to read into Buffer; actual number returned limited to bytes available in the internal read bufferStatus CodeEnumDescription320x20STAT_COMM_PENDINGPort is busy performing a transaction.–350xDDERR_COMM_BUS_ERRLast transaction failed (possible device failure).–330xDFERR_COMM_CHAN_INVALIDSpecified port is out of range.–320xE0ERR_COMM_CHAN_NOT_READYSpecified port is not configured properly.