Flush Return Data BufferClears the Return Data Buffer (RDB) by deleting all of the buffered data.
| Device Compatibility
|
Board ID is a unique number assigned by Measurement & Automation Explorer (MAX) used to send and receive commands and data to or from a specific NI motion controller. | |||||||
error in (no error) describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
|
|||||||
Bd ID Out is provided for flow control. You can string together NI-Motion VIs by wiring the Bd ID Out terminal of one VI to the Board ID terminal of the next VI. | |||||||
error out contains error information. If error in indicates an error, error out contains the same error information. Otherwise, it describes the error status that this VI produces.
|
Using This VI
The Flush Return Data Buffer VI clears the Return Data Buffer by repeatedly reading the RDB until the buffer is empty. All return data packets in the RDB are deleted and this VI returns nothing.
You typically use the Flush Return Data Buffer VI after an error condition when the data in the Return Data Buffer is no longer valid or relevant. This VI is also useful for flushing the RDB after a programming error has caused the buffer to become skewed. Buffer skew is when the data returned by a read VI using the default input vector of 0xFF does not return the expected data but rather returns data requested by a previous VI.
Refer to the motion controller documentation for more information about low-level communications protocols and return data packets.