Chapter 6
NI-FBUS Function Reference
©
National Instruments Corporation
6-23
NI-FBUS Hardware and Software User Manual
nifShutdownCM
Purpose
Closes the NI-FBUS Communications Manager.
Format
nifError_t
nifShutdownCM (
uint32 interval);
Input
interval
The maximum waiting time in milliseconds for closing the
NI-FBUS Communications Manager process. If
interval
is set
to 0, the default timeout value of 2000 milliseconds is used.
If
interval
is set to
NIFB_TIMEOUT_INFINITE
, the function
will return only when the NI-FBUS Communications Manager
has been cleanly closed. If the interval time is exceeded, the
NI-FBUS Communications Manager process will be forcefully
closed.
Output
None.
Context
Not applicable.
Description
nifShutdownCM
closes the NI-FBUS Communications Manager. The return value indicates
whether the NI-FBUS Communications Manager has been forcibly closed. If the
NI-FBUS Communications Manager cannot be closed normally within the
interval
time,
it will be closed forcefully. The normal close can ensure all the system resources are cleaned
up. The forceful close can’t ensure that.
Return Values
E_OK
The NI-FBUS Communications Manager has been closed
normally. The call was successful.
E_SHUTDOWN_FORCE
The NI-FBUS Communications Manager has been forcefully
closed.