The RMP Motion Controller API

◆ ErrorLogGet()

virtual const RsiError* const ErrorLogGet ( )
pure virtual

Get the next RsiError in the log.

Description:
ErrorLogGet returns the next RsiError in the log.
Returns
(RsiError*) An error.

ℹ This function is avaliable in RapidCode

Sample Code:
ErrorLog
// Turn off exceptions. Exceptions will be logged as RsiError objects.
axis.ThrowExceptions(false);
// Do something that will cause an error (zero acceleration).
axis.MoveVelocity(0.0, 0.0);
while (axis.ErrorLogCountGet() > 0)
{
RsiError error = axis.ErrorLogGet();
Console.WriteLine(error.Message);
}
See also
ErrorLogCountGet
Examples
HelperFunctions.h, StreamingMotionBufferManagement.cpp, SyncOutputWithMotion.cpp, and UpdateBufferPoints.cpp.