Addi-Data APCI-1500 Technical Description page 78

Digital i/o board, optically isolated
Hide thumbs Also See for APCI-1500:
Table of Contents

Advertisement

Standard software
BYTE
b_HardwareOrSoftwareTriggerSelect:
BYTE
b_HardwareOrSoftwareGateSelect:
BYTE
b_InterruptHandling
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)
78
- 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
- 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.
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.
APCI-/CPCI-1500

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APCI-1500 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Cpci-1500

Table of Contents