◆ ErrorLogGet()

virtual RsiError* ErrorLogGet ( )
pure virtual

Get the next RsiError in the log.

ℹ This function is avaliable in RapidCode

Description:
ErrorLogGet returns the next RsiError in the log.
Returns
(RsiError*) An error.
Sample Code:
ErrorLog
// Turn off exceptions.
axis.ThrowExceptions(false);
// Do something that will cause an error (zero acceleration).
axis.MoveVelocity(0.0, 0.0);
RsiError err;
while (controller.ErrorLogCountGet() > 0)
{
err = controller.ErrorLogGet();
Console.WriteLine("%s\n", err.text);
}
See also
ErrorLogCountGet
Examples
HelperFunctions.h, StreamingMotionBufferManagement.cpp, SyncOutputWithMotion.cpp, and UpdateBufferPoints.cpp.