Prosoft-technology MVI69-ADM Manual de usuario Pagina 223

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 342
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 222
MVI-ADM 'C' Programmable Backplane API Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 223 of 342
February 20, 2013
MVIbp_SetUserLED
Syntax
int MVIbp_SetUserLED(MVIHANDLE handle, int lednum, int ledstate);
Parameters
handle
Handle returned by previous call to MVIbp_Open
lednum
Specifies which of the user LED indicators is being addressed
Description
MVIbp_SetUserLED allows an application to turn the user LED indicators on and
off.
handle must be a valid handle returned from MVIbp_Open.
lednum must be set to MVI_LED_USER1 or MVI_LED_USER2 to select User
LED 1 or User LED 2, respectively.
ledstate must be set to MVI_LED_STATE_ON or MVI_LED_STATE_OFF to turn
the indicator On or Off, respectively.
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;
/* Turn User LED 1 on and User LED 2 off */
MVIbp_SetUserLED(Handle, MVI_LED_USER1, MVI_LED_STATE_ON);
MVIbp_SetUserLED(Handle, MVI_LED_USER2, MVI_LED_STATE_OFF);
Vista de pagina 222
1 2 ... 218 219 220 221 222 223 224 225 226 227 228 ... 341 342

Comentarios a estos manuales

Sin comentarios