ADwin-Pro
Hardware, manual version 2.9, June 2006
199
Programs for calibration
Pro AOut 4/16 und 8/16 (DAC)
ADwin
6.5 Programs for calibration
You will find the
ADbasic
programs for calibration as source files in the direc-
tory <
C:\ADwin\Tools\Calibration\…
> with standard installation from
the
ADwin
CDROM (beginning with version 3.00.30xx).
6.5.1
Pro
AOut 4/16 und 8/16 (DAC)
'Process for the ADwin-Pro in order to
'output voltage with an AOUT module.
'Last modification on July 18, 2000 ur
'Usage of the variables:
'PAR_6 : module address (1 to 255)
'PAR_7 : channel number (1 to 8)
'PAR_8 : output value (0 to 65535)
#INCLUDE adwpad.inc
#INCLUDE adwpda.inc
'######################################################
INIT:
GLOBALDELAY=2000
IF (PAR_6=0) then PAR_6=1 'prevent module address 0
IF (PAR_7=0) then PAR_7=1 'prevent channel number 0
IF (PAR_8=0) then PAR_8=32768
'64080 => +9.555664V (at a voltage range of +/- 10V)
'32768 => 0V
'1456 => -9.555664V
‚######################################################
EVENT:
DAC(PAR_6,PAR_7,PAR_8)'output value