Instruction manual
Table Of Contents
- INTRODUCTION
- GETTING STARTED
- MAKING THE CONNECTIONS
- USING THE PC215E
- STRUCTURE AND ASSIGNMENTS OF THE REGISTERS
- Register Assignments
- Register Groups
- The Register Details
- Programmable Peripheral Interface PPI-X Data Register Port A
- Programmable Peripheral Interface PPI-X Data Register Port B
- Programmable Peripheral Interface PPI-X Data Register Port C
- Programmable Peripheral Interface PPI-X Command Register
- Programmable Peripheral Interface PPI-Y Data Register Port A
- Programmable Peripheral Interface PPI-Y Data Register Port B
- Programmable Peripheral Interface PPI-Y Data Register Port C
- Programmable Peripheral Interface PPI-Y Command Register
- Z1 Counter 0 Data Register
- Z1 Counter 1 Data Register
- Z1 Counter 2 Data Register
- Counter/Timer Z1 Control Register
- Z1 Counter/Timer Status Register
- Z2 Counter 0 Data Register
- Z2 Counter 1 Data Register
- Z2 Counter 2 Data Register
- Counter/Timer Z2 Control Register
- Z2 Counter/Timer Status Register
- Group Z Clock Connection Register
- Group Z Gate Connection Register
- Interrupt Source Selection Register
- Interrupt Status Register
- PROGRAMMING THE PC215E
- Copyright
- Files installed from the Distribution Diskette
- Windows DLL and Examples
- DOS 'C' Library and Examples
- Using the Dynamic Link Library
- Windows and DOS Library Functions
- Initialisation Functions
- Interrupt Control Functions
- Data Buffer Functions
- Timer/Counter Functions
- Differential Counter Functions
- Frequency Generation Functions
- Millisecond Stopwatch Functions
- Frequency Input and Output Functions
- Digitally- and Voltage-Controlled Oscillator Functions
- Digital Input/Output Functions
- Switch Scanner Matrix Functions
- Bi-Directional Data Bus Functions
- PC215E Library Error Codes
- PC215E Interface Guide For LABTECH NOTEBOOK
- Guide to User Programming
- Signal Centre
- CONTENTS
- DECLARATION OF CONFORMITY

Page
105
PC215E
6.6.11.2 Query Status of a Switch within the Scan Matrix - DIOgetSwitchStatus
Queries the status of a particular switch in the switch matrix setup by the DIOsetSwitchMatrix
function. The grid reference of the switch is given, and the function performs a test on that
switch and returns 1 for switch on (closed) or 0 for switch off (open).
i = DIOgetSwitchStatus (h, xcoord, ycoord)
where
h Integer. Board handle as issued by function
registerBoard.
xcoord Integer. X-co-ordinate of the position of the
switch in the matrix (origin is at port A0/B0 of
PPIX). Valid values should be in the range 0 -
order (as specified in DIOsetSwitchMatrix).
ycoord Integer. Y-co-ordinate of the position of the
switch in the matrix (origin is at port A0/B0 of
PPIX). Valid values should be in the range 0 -
order
(as specified in DIOsetSwitchMatrix).
Returns Integer:
Zero, if switch was OFF (open). Non-zero if switch was ON
(closed).
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
DIOsetSwitchMatrix
See Also DIOfreeSwitchMatrix
6.6.11.3 Free-up the Digital I/O Chip(s) from a Switch Matrix - DIOfreeSwitchMatrix
Frees the DIO resources used by the switch matrix as setup in function DIOsetSwitchMatrix.
i = DIOfreeSwitchMatrix (h)
where
h Integer. Board handle as issued by function
registerBoard.
Returns Integer:
OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoard
DIOsetSwitchMatrix
See Also