flex_read_rdb |
Read Return Data Buffer
Usage
status = flex_read_rdb(u8 boardID, u16 *number, u16 *wordCount, u8 *resource, u16 *command, u16 *commandData);
Purpose
Reads the Return Data Buffer.
Parameters
Name | Type | Description |
---|---|---|
boardID | u8 | assigned by Measurement & Automation Explorer (MAX) |
number | u16* | maximum number of data packets to read |
wordCount | u16* | array containing the number of 16-bit words in the command packet |
resource | u16* | array containing the device number returned by the controller |
command | u16* | array containing the command ID returned by the controller |
commandData | u16* | array containing the data read from the return data buffer |
Parameter Discussion
number as an input contains the maximum number of data packets to read. number as an output returns the number of data packets read.
wordCount is an array containing the number of 16-bit words in the command packet.
resource is an array containing the resource ID or IDs returned by the controller.
command is an array containing the command ID or IDs returned by the controller.
commandData is an array containing the data read from the return data buffer.
Using This Function
You can use the Read Return Data Buffer function to read the RDB.
Refer to the motion controller documentation for more information about low-level communications protocols and return data packets.