|Download Help (Windows Only)|
int RTIsShuttingDown (void);
Indicates whether the real-time target is shutting down.
You can use RTIsShuttingDown to programmatically determine when to run the cleanup code in a real-time application, as follows:
void CVIFUNC_C RTmain (void)
if (InitCVIRTE (0, 0, 0) == 0)
return; /* out of memory */
/* your initialization code */
while (!RTIsShuttingDown ())
/* your code */
/* your cleanup code */
RT This function is supported only on RT systems.
|shuttingDown||int||Indicates whether the real-time target is shutting down. RTIsShuttingDown initially returns false. The following table describes when RTIsShuttingDown returns true and the behavior of the cleanup code and the real-time target.
National Instruments recommends that you use the Simulate RT Shutting Down item to terminate execution while you are debugging.
Library: Real-Time Utility Library
Include file: rtutil.h
LabWindows/CVI compatibility: LabWindows/CVI 8.1 and later
Refer to the following examples that use the RTIsShuttingDown function: