Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Intercepting memory full error in CompactRIO with Linux NI-RT

 

I would like to intercept and handle the memory full error coming from the run-time, e.g. from an array allocation. The RT watchdog will take care of rebooting my application, but I would like to have the chance to intercept it. Eventually in another thread/CPU core.

 

Thanks,

-E

0 Kudos
Message 1 of 4
(2,474 Views)

Hi,

as a starting point, you could find the following document useful: Why Do I Get a Memory Full Error When Deploying Code to My Real-Time Controller? (and links therein).

Regards,

Alessia

0 Kudos
Message 2 of 4
(2,446 Views)

Thanks. We do not have Memory Full errors, and we are able to monitory our memory usage under NI-RT, but, in case of a possible Memory Full error we do not like to have the Dialog Box shown.


@alamanna  ha scritto:

Hi,

as a starting point, you could find the following document useful: Why Do I Get a Memory Full Error When Deploying Code to My Real-Time Controller? (and links therein).

Regards,

Alessia


 

0 Kudos
Message 3 of 4
(2,439 Views)

Hi,

if you don't want the error dialog box to be shown, you should disable automatic error handling by removing the checkmark from the Enable automatic error handling checkbox (VI Properties, Execution Page).

 

AutomaticErrorHandling.png

 

Manual error handling shouldn't be used neither: don't connect the error wire to the Simple Error Handler VI.

Regards,

Alessia

0 Kudos
Message 4 of 4
(2,436 Views)