A SERVICE OF

logo

SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition
ACTIVEX CALL
Long EDRECTX.Read(long Port)
The counter number must be passed by the calling function. If the return code is negative it
means an error occurred, otherwise it will be the value read from the counter.
Counter Assigned Number Resolution
CT0 0 16-bits
CT1 1 16-bits
CT2 2 16-bits
CT3 3 16-bits
CT4 4 16-bits
CT5 5 16-bits
Table 4-3 Counter Resolution
Configuring a counter
A single call is necessary to configure a counter.
API-CALL
Long EDRE_CTConfig(ulng Sn, ulng Ct, ulng Mode, ulng Type, ulng ClkSrc, ulng
GateSrc)
The serial number, counter-number, mode, type, clock source and gate source is needed to
specify a counter’s configuration. A return code will indicate if any errors occurred.
ACTIVEX CALL
Long EDRECTX.Configure(long ct, long mode, long type, ulng source, ulng gate)
The counter-number, mode, type, clock source and gate source is needed to specify a
counter’s configuration. A return code will indicate if any errors occurred.
The table below shows the options for each parameter.
Parameter Description
Sn Serial Number
Ct Counter Number:
0 : Counter 0
1 : Counter 1
2 : Counter 2
3 : Counter 3
4 : Counter 4
5 : Counter 5
Mode 82c54 Mode
See 82c54 datasheet
Type
Interrupt on TC:
0 : Disabled
1 : Enabled
This bit will only generate a interrupt at the interrupt sub-system. The
interrupt sub-system must also be setup to generate a interrupt.
Source 0 : Internal (10MHz)
1 : External (External connector)
Gate 0 : Internal
1 : External (External connector)
Table 4-4 Counter Configuration
Controlling the counter gate
A single call is necessary to control a counter’s gate.
API-CALL
Long EDRE_CTSoftGate(ulng Sn, ulng Ct, ulng Gate)
The serial number, counter-number and gate are needed to control a counter’s gate. A return
code will indicate if any errors occurred.
ACTIVEX CALL
Eagle Technology © Copyright 2003 – www.eagledaq.com 19