Справочник Пользователя для National Instruments NI-VXI

Скачать
Страница из 149
Chapter 3      Software Overview
© National Instruments Corporation
3-65
NI-VXI User Manual
  GetSoftResetHandler ()
GetSoftResetHandler
 returns the address of the current Soft Reset
interrupt handler. A default handler, 
DefaultSoftResetHandler
, is
automatically installed when 
InitVXIlibrary
 initializes the NI-VXI
software.
Note:
The Soft Reset interrupt does not apply to VME.
  GetSysfailHandler ()
GetSysfailHandler
 returns the address of the current Sysfail
interrupt handler. A Sysfail condition detected on the local CPU
generates an interrupt that calls the current Sysfail interrupt handler. A
default handler, 
DefaultSysfailHandler
, is automatically installed
when 
InitVXIlibrary
 initializes the NI-VXI software.
  GetSysresetHandler ()
GetSysresetHandler
 returns the address of the current Sysreset
interrupt handler. The 
InitVXIlibrary
 function automatically
installs a default handler, 
DefaultSysresetHandler
, when it
initializes the NI-VXI software.
  SetACfailHandler (func)
SetACfailHandler
 replaces the current ACfail interrupt handler with
an alternate handler. An ACfail condition detected on the local CPU
generates an interrupt that calls the current ACfail interrupt handler.
Your application can take any appropriate action within the allotted
time period before complete power failure. The 
InitVXIlibrary
function automatically installs a default handler,
DefaultACfailHandler
, when it initializes the NI-VXI software.
Your application must then call 
EnableACfail
 to enable ACfail
interrupts.
  SetBusErrorHandler (func)
SetBusErrorHandler
 replaces the current bus error interrupt handler
with an alternate handler. During an access to the VXI/VMEbus, the
BERR* signal (bus error) is asserted to end the bus cycle if the address
or mode of access is determined to be invalid. The bus error exception
condition generates an exception on the local CPU, which can be
trapped by the bus error handler. Your application should include a
retry mechanism if it is possible for a particular access to generate bus