Basler A400K Manual de usuario Pagina 49

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 130
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 48
AW00118501000 Physical Interface
Basler racer Camera Link 41
Checking the State of an I/O Line Using Direct Register Access
To check the current state of an I/O line via direct register access:
For the CC1 line, read the value of the Line Status CC1 register. The value will indicate 1 (true)
or 0 (false).
For the CC2 line, read the value of the Line Status CC2 register.
For the CC3 line, read the value of the Line Status CC3 register.
For the CC4 line, read the value of the Line Status CC4 register.
For the CL Spare line, read the value of the Line Status CL Spare register.
For more information about direct register access, see Section 3.2 on page 16.
5.7.2 Checking the State of All Lines
Checking the State Using Basler pylon
You can determine the current state of all input and output lines by reading the value of the Line
Status All parameter. You can read the Line Status All parameter value from within your application
software by using the pylon API. The following code snippet illustrates using the API to read the
parameter value:
int64_t lineState = Camera.LineStatusAll.GetValue( );
The Line Status All parameter is a 32 bit value. As shown in Fig. 9, certain bits in the value are
associated with each I/O line, and each of these bits will indicate the state of the associated line. If
a bit is 0, it indicates that the state of the associated line is currently low. If a bit is 1, it indicates that
the state of the associated line is currently high.
You can also use the Basler pylon Viewer application to easily read the parameter.
Checking the State Using Direct Register Access
To check the current state of all I/O lines via direct register access, read the value of the Line Status
All register. The register holds a 32 bit value that indicates the state of each I/O line. The mapping
of the bits in the value to I/O lines is similar to the mapping described above for access via Basler
pylon.
For more information about direct register access, see Section 3.2 on page 16.
Indicates CL Spare state
Indicates CC3 state
Indicates CC4 state
Indicates CC1 state
Indicates CC2 state
Fig. 9: Line Status All Parameter Bits
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 129 130

Comentarios a estos manuales

Sin comentarios