APCI-/CPCI-1500 Technical
description Chapter 9
88
Task:
Selects the operating mode of the third counter/watchdog. Enter its limit.
You have to decide:
- if the counter must execute once or several times the counting operation,
- if the counter/watchdog is used as a counter or a watchdog,
- if an interrupt must be generated when the counter/watchdog has run down,
- and if the external gate is used (if it is used as a counter).
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The parameter for selecting the counter or the timer is wrong
(APCI1500_COUNTER or APCI1500_WATCHDOG)
-3: Interrupt selection error (APCI1500_ENABLE or APCI1500_DISABLE)
-4: User interrupt routine is not installed
-5: Cycle parameter is wrong
(APCI1500_CONTINUOUS or APCI1500_SINGLE)
-6: Gate parameter is wrong (APCI1500_SOFTWARE_GATE or
APCI1500_HARDWARE_GATE)
5) i_APCI1500_StartTimerCounter1(...)
Syntax:
<Return value> = i_APCI1500_StartTimerCounter1 (BYTE
b_BoardHandle)
Parameters:
BYTE
b_BoardHandle
Handle of the
xPCI-1500
Task:
Starts the first counter/timer. Please initialise it previously with the function
"i_APCI1500_InitTimerCounter1".
If the counter is used, it is now ready for counting.
If the timer is used, it is now running.
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The counter or timer has not been initialised.
Please use function "i_APCI1500_InitTimerCounter1"