Instruction manual

Table Of Contents
Page
97
PC215E
6.6.9.2 Prepare a Voltage-Controlled Oscillator - TCsetVCO
Implements a voltage controlled oscillator which periodically reads a voltage from an analog
input channel and generates an external frequency based on the value. The analog input
channel can be from an Amplicon PC226E, PC30AT, PC26AT or PC27E data acquisition
board. Please ensure the board is configured for a 10V unipolar input range (or 4V unipolar,
for the PC27E). See section 4.2.10 for more details on the Voltage Controlled Oscillator
application.
i = TCsetVCO (h, AImodel, AIbaseAddr, AIchan, opChip, opChan, udFreq,
udChip, freq0V, freq10V)
where
h Integer. Board handle as issued by function
registerBoard.
AImodel Integer. Model name of the analog input card
being used. Use one of the following pre-
defined constants:
PC226E = 226
PC30AT = 30
PC26AT = 26
PC27E = 27
AIbaseAddr Integer. Analog input card base address.
AIchan Integer. Analog input card channel number.
opChip Integer. Address offset of the Frequency
Output timer/counter chip. One of the following
pre-defined constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20.
opChan Integer. Frequency output timer/counter
channel within the chip (0, 1 or 2).
udFreq Float. Update rate, in Hertz.
udChip Integer. Address offset of the Update Rate
timer chip. One of the following pre-defined
constants may be used:
X1 = 0
X2 = 4
Y1 = 8
Y2 = 12
Z1 = 16
Z2 = 20.
Counter1 of this chip will be used to generate