Prosoft-technology MVI69-ADM Manual de usuario Pagina 224

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 223
Backplane API Functions MVI-ADM 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 224 of 342 ProSoft Technology, Inc.
February 20, 2013
MVIbp_SetModuleStatus
Syntax
int MVIbp_SetModuleStatus(MVIHANDLE handle, int status);
Parameters
handle
Handle returned by previous call to MVIbp_Open
status
Module status, OK or Faulted
Description
MVIbp_SetModuleStatus allows an application set the state of the module to OK
or Faulted.
handle must be a valid handle returned from MVIbp_Open.
state must be set to MVI_MODULE_STATUS_OK or
MVI_MODULE_STATUS_FAULTED. If the state is OK, the module status LED
indicator will be set to Green. If the state is Faulted, the status indicator will be
set to Red.
Note: The MVI hardware can set the OK LED to Red if any of the following occurs:
an unrecoverable fault
hardware failure
backplane driver failure
Neither the MVI hardware nor the Set ModuleStatus call has priority. Either can
overwrite the other.
Return Value
MVI_SUCCESS
The input scan has occurred.
MVI_ERR_NOACCESS
handle does not have access
MVI_ERR_BADPARAM
lednum or ledstate is invalid.
Example
MVIHANDLE Handle;
/* Set the Status indicator to Red */
MVIbp_SetModuleStatus(Handle, MVI_MODULE_STATUS_FAULTED);
Vista de pagina 223
1 2 ... 219 220 221 222 223 224 225 226 227 228 229 ... 341 342

Comentarios a estos manuales

Sin comentarios