Code:
void RtapiApp::unexpected_realtime_delay(rtapi_task *task, int nperiod) {
static int printed = 0;
if(!printed)
{
rtapi_print_msg(RTAPI_MSG_ERR,
"Unexpected realtime delay on task %d with period %ld\n"
"This Message will only display once per session.\n"
"Run the Latency Test and resolve before continuing.\n",
task->id, task->period);
printed = 1;
}
}
The code above displays message only once.
This may mean either a serious problem or a one-off event with no impact on further work.
This, in turn, means that this message says nothing, warns against nothing and is unnecessary.
The right thing to do is to run latency-test or latency-plot for a few hours immediately after installation, which will clearly answer the question whether the hardware and software can be used safely.