APCI-/CPCI-1500
9.2.5 Digital input channel - events
1)
i_APCI1500_SetInputEventMask (...)
Syntax:
<Return value> = i_APCI1500_SetInputEventMask
Parameters:
BYTE
b_BoardHandle
BYTE
b_Port
BYTE
b_Logik
PCHAR pc_EventMask
i
IMPORTANT!
If you use the APCI1500_AND logic, you can only use one edge event
Task:
An event can be generated for each port.
The first event is related to the first 8 input channels (port 1).
The second event is related to the next 6 input channels (port 2).
An interrupt is generated when one or both events have happened.
(BYTE b_BoardHandle,
BYTE b_PortNbr,
BYTE b_Logik,
PCHAR pc_EventMask)
Handle of board xPCI-1500
Number of the input port to be masked (1 or 2)
Event logic
Three possibilities for the first port:
APCI1500_AND: This logic connects the
input channels with an AND logic.
APCI1500_OR: This logic connects the
input channels with an OR logic.
APCI1500_OR: This logic connects the
input channels with a OR logic.
This 8-digit character string (port 1) and
6-digit character string (port 2) defines the
mask of the event. Each digit indicates the
state of the input channel. The state is
identified by one of the following characters:
"X": This input channel is not used for event
"0": The input channel must be on "0"
"1": The input channel must be on "1"
"2": The input channel reacts to a falling edge
"3": The input channel reacts to a rising edge
"4": The input channel reacts to both edges
Port 1: from the left to the right, the first digit
of the character string is input 8 and the last
digit is input 1.
Port 2: from the left to the right, the first digit
of the character string is input 14 and the last
digit is input 9.
Standard software
67
Need help?
Do you have a question about the APCI-1500 and is the answer not in the manual?
Questions and answers