page Fehler: Referenz nicht gefunden. The parameter
“channel”
selects which connector is used
(0 ↔ Aux1, 1 ↔ Aux2). The parameter
”input”
selects the type of signal that is provided at this
output (In ↔ 0 , X ↔ 10, Y ↔ 11, R ↔ 12, Phi ↔13). “MaxRange” scales the signals according to
the amplitude at the selected input channel. MaxRange of Phi is always 180° while for the other
channels it can be any value between -10 V and 10 V.
Examples:
SetLockInAux(1,10,0.01) → provides the measured value of X at the output
AUX2 scaled to 10 mV.
SetLockInAux(0,1,2.35) → Aux1 is set to 2.35 V.
If the parameter "input" is set to 1, then the "MaxRange" parameter is used as output voltage.
Examples:
SetLockInAux(1,1,5.32) → sets the output of Aux2 to 5.32 V
SetUsedDevice
function SetUsedDevice (FullName: PChar) : longbool;
When multiple USBLockIn250 are connected to the PC, each lockin amplifier can be selected by its
ID. This command allows to enter a specific device information so that this multiple lockins can be
addressed independently. (see also page 48)
GetVersion
function GetVersion : PChar;
Returns the hardware serial number (e.g. 280007), the version number of the
driver (e.g. 0.07.0.3) and the version of the dll itself (e.g. 1.0.6.2).
When the DLL is initialized, it sets the following default values:
Phase
0 degree
Harmonic:
1
PLL.:
off
Time constant:
10 ms
RollOff:
12 dB
Input Gain:
1 (high reserve)
SetLockInPID
function SetLockInPID (Channel, Input : LongInt; Offset, Kp, Ti, Td:
Double):boolean;
This functions sets the parameters for PID control.
The parameter
“channel”
selects which connector is used (0 ↔ Aux1, 1 ↔ Aux2).
The parameter
”input”
selects the type of signal that is used as input for the PID control (In ↔ 0 ,
X ↔ 10, Y ↔ 11, R ↔ 12, Phi ↔13).
The parameter
”Offset”
equals the set-point.
"Kp”
,
"Ti"
and
"Td"
are the feedback parameters
(see page Fehler: Referenz nicht gefunden).
6.3 E
XAMPLE
PROGRAMS
Currently, there is a program examples provided in Borland Delphi 6.0 (demo.exe).
It can be found in the directory %YourPath/DLL/Delphi
Manual Anfatec PCI-Lockin Amplifier AMU2.4 – Rev. 1.10 dated 30/09/20
Page 37 (70)
Example result