MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ RecorderRecordDataGet() [1/2]

int32 * RecorderRecordDataGet ( )
pure virtual

Get one record of recorded data.

Description:
RecorderRecordDataGet returns the data for one record.
Returns
(int32*) The record data.
Sample Code:
// find out how many records were recorded
int32 recordsAvailable = controller->RecorderRecordCountGet();
printf("There are %ld Records available.\n", recordsAvailable);
// print all the records
for(int32 i = 0; i < recordsAvailable ; i++)
{
// get the pointer to the record data
recordDataPtr = controller->RecorderRecordDataGet();
// copy the recorded data into an array
memcpy(&recordData, recordDataPtr, sizeof(recordData));
// print first data value (int32)
printf("Record %ld: Axis 0 ActPos: %ld ", i, recordData[0]);
// print second data value (float)
printf("Axis 0 CmdVel: %f ", (float)*((float*)&recordData[1]));
// print third data value (int32)
printf("Axis 1 ActPos: %ld\n", recordData[2]);
}
See also
RecorderDataCountSet, RecorderDataAddressSet
 
Examples
Recorder.cpp.