Technical description Chapter 9
APCI-/CPCI-1500
85
3) i_APCI1500_InitTimerCounter2 (...)
Syntax:
<Return value> = i_APCI1500_InitTimerCounter2
(BYTE
b_BoardHandle,
BYTE
b_CounterOrTimerSelect,
LONG
l_ReloadValue,
BYTE
b_ContinuousOrSingleCycleSelect,
BYTE
b_HardwareOrSoftwareTriggerSelect,
BYTE
b_HardwareOrSoftwareGateSelect,
BYTE
b_InterruptHandling)
Parameters:
BYTE
b_BoardHandle
Handle of the
xPCI-1500
BYTE b_CounterOrTimerSelect Selects the mode of the 2
nd
counter/timer
- APCI1500_TIMER :
The 2nd counter/timer is used as a timer
- APCI1500_COUNTER :
The 2nd counter/timer is used as a counter
LONG
l_ReloadValue
This parameter has two meanings.
If the counter/timer is used as a counter, it
loads the start value of the counter.
If the counter/timer is used as a timer,
it loads the divider factor for the output.
BYTE b_ContinuousOrSingleCycleSelect: - APCI1500_CONTINUOUS:
Each time the counter value or timer value
is set to "0",
l_ReloadValue
is loaded.
-
APCI1500_SINGLE:
If the counter or timer value is set to
"0", the counter or timer is stopped.
BYTE b_HardwareOrSoftwareTriggerSelect:
- APCI1500_HARDWARE_TRIGGER:
The input 12 is used for the trigger.
If this input channel is on high, the
start value is re-loaded.
-
APCI1500_SOFTWARE_TRIGGER:
Input 12 has no influence on the trigger
BYTE b_HardwareOrSoftwareGateSelect :
-
APCI1500_HARDWARE_GATE:
The input 13 is used for the gate.
If this input channel is on high, the
counter/timer is started.
If this input channel is on low,
the counter/timer is stopped.
-
APCI1500_SOFTWARE_GATE:
Input 13 has no influence on the gate.