26
ADwin-Gold
Hardware Manual, Version 2.3
ADwin
6.5 Processes for Calibration
The
ADbasic
processes for calibration can be found as <
*.bas
>-files on the
ADwin
-CD-ROM beginning
from version 3.00.30xx in the directory
<C:\ADwin\Tools\Calibration\...>
.
1. Output voltage with the DAC (Process 1)
'Process for the ADwin-Gold in order to
'output a voltage with the 16 bit DAC.
'Last modification on July 31st, 2000
'Usage of the variables:
'
'PAR_10: DAC channel number (1 or 2, with DA add-on: 1...8)
'PAR_9 : output value (0...65,535)
'##############################################################################
INIT:
GLOBALDELAY=200000
IF (PAR_10=0) then PAR_10=1 'prevent channel number 0 (not allowed)
IF (PAR_9=0) then PAR_9=32768
'64080 => +9.555664V (at a voltage range of ±10V)
'32768 => 0V
' 1456 => -9.555664V
EVENT:
DAC(PAR_10,PAR_9)
'output value
2. Read voltage with the 16-bit ADC (Process 2)
'Process for the ADwin-Gold in order to
'read a voltage with a 16 bit ADC.
'A mean value is calculated in FPAR_1.
'Last modification on August 08, 2000
'Usage of the variables:
'
'PAR_1 : value which has been read (0...65,535)
'PAR_3 : channel number (1...16)
'FPAR_1: mean value
'##############################################################################
INIT:
GLOBALDELAY=20000
IF (PAR_3=0) then PAR_3=1
'prevent channel! number 0 (not allowed)
IF (PAR_1=0) then PAR_1=32768
'64080 => +9.555664V (at a voltage range of ±10V)
'32768 => 0V
' 1456 => -9.555664V
EVENT:
PAR_1 = ADC(PAR_3)
'read value
FPAR_1= FPAR_1*0.95 + PAR_1*0.05 'calculate mean value
6.5 Processes for Calibration