![abaco systems CEI-100 Series Скачать руководство пользователя страница 83](http://html.mh-extra.com/html/abaco-systems/cei-100-series/cei-100-series_user-manual_450728083.webp)
Program Interface Library
AR _CLOSE
CEI-100/CEI-200/CEI-
x20 User’s Manual
71
AR _CLOSE
CEI_INT16 ar_close (CEI_INT16 board)
This routine should be called when the user application has finished using
the board. This routine stops the on-board processor, releases memory
mapping resources allocated by the host, and uninstalls the internal
interrupt handler (if any). This must be the last utility subroutine executed,
and it should be called before the user application exits back to the
operating system.
If multi-process mode is active, this routine does not shut down the board
if it is still opened by another process. Refer to
AR_SET_PRELOAD_CONFIG documentation for details.
ARS_NORMAL
Operation completed successfully.
ARS_INVBOARD
Invalid board number.
ARS_BOARD_MUTEX
Failed to acquire/release the board lock.
ARS_CONFIG_MUTEX
Failed to acquire/release the board
configuration lock.
ARS_THREAD_WAITING
An 'await data' mode thread is waiting to
receive a word - must cancel the wait
operation before closing the board.
ARS_INT_ISR
Failed to uninstall internal interrupt
handler.
board
(input) board number.
Syntax
Description
Return Value
Arguments
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com