MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ ErrorLogGet()

RsiError * ErrorLogGet ( void  )
pure virtual

Get the next RsiError in the log.

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