APCI-/CPCI-1500 Technical
description Chapter 9
86
BYTE b_InterruptHandling
Interrupts can be generated, when the
counter has run down, or when the timer
output is on high.
With this parameter the user decides
if interrupts are used or not.
-
APCI1500_ENABLE:
Interrupts are enabled.
-
APCI1500_DISABLE:
Interrupts are disabled.
Task:
Selects the operating mode of the second counter/timer. Enter its start value.
You have to decide:
- if the counter/timer must execute the counting operation once or several times,
- if the counter/timer is used as a counter or a timer,
- if an interrupt must be generated when the counter/timer has run down,
- if the external trigger is used and if the external gate is used.
Return value:
0: No error
-1: The handle-parameter of the board is wrong
-2: Wrong selection for counter/timer
(APCI1500_COUNTER
or
APCI1500_TIMER)
-3: Error with the interrupt selection
(APCI1500_ENABLE or APCI1500_DISABLE)
-4: User interrupt routine is not installed
-5: Cycle parameter is wrong
(APCI1500_CONTINUOUS
or APCI1500_SINGLE)
-6: Wrong gate parameter
(APCI1500_SOFTWARE_GATE
or APCI1500_HARDWARE_GATE)
-7: Wrong trigger parameter
(APCI1500_SOFTWARE_TRIGGER or APCI1500_HARDWARE_TRIGGER)