|
|
Beamline Instrument Software Support |
| VDL.mac | ||||||
| [ source code | installed at | configured at ] | ||||||
| See other macros in category: All | ||||||
Description:
| ||||||
Documentation:
These macros allow to define and run data acquisition on vdl boards They use the Spec built in features for the VDL board. The software simulates additional vdl channels to get the results from internal calculation. Imagine the additional channels as if the vdl hardware could do the calculations itself. SETUP The meaning of each channels is assigned by assigning a channel number:
0 ! ] raw data channel a1
. ! ] channel b1
. ! ]
2*multi-1 ! ] channel bmulti
2*multi ! nb of reads per multiplexed entry
2*multi+1 ! live time (*TG) per entry
2*multi+2 ! nb of calculations done
! BPM2 ! BPM1 ! PHD2 ! PHD1
2*multi+3 ! xb1 ! xb1 ! It/Io 1 ! It/Io 1
2*multi+4 ! yb1 ! yb1 ! It/Io 2 ! ln (Io/It) 1
2*multi+5 ! xb2 ! sum1 ! ln (Io/It) 1 !
2*multi+6 ! yb2 ! ! ln (Io/It) 2 !
2*multi+7 ! sum1 !
2*multi+8 ! sum2 !
As an example consider the channel numbers in the following cases:
Channel No ! BPM1 ! BPM2
0 ! RawData1 ! RawData1 Beam1
1 ! RawData2 ! RawData2 Beam1
2 ! RawData3 ! RawData1 Beam2
3 ! RawData4 ! RawData2 Beam2
4 ! No of rawdata reads ! RawData3 Beam1
5 ! Total TG time ! RawData4 Beam1
6 ! No of calculations ! RawData3 Beam2
7 ! X (Hor. Beam Pos) ! RawData4 Beam2
8 ! Y (Vert.Beam Pos) ! No of rawdata reads
9 ! Sum of Rawdatas ! Total TG time
10 ! No of calculations ! No of calculations
11 ! ! X1 (Hor. Beam1 Pos)
12 ! ! Y1 (Vert Beam1 Pos)
13 ! ! X2 (Hor. Beam2 Pos)
14 ! ! Y2 (Vert Beam2 Pos)
15 ! ! Sum1 (Sum of RawD1)
16 ! ! Sum2 (Sum of RawD2)
Channel No ! PHD1 ! PHD2
0 ! RawData Ch A I0 ! RawData1 Ch A Beam1 I0
1 ! RawData Ch B I ! RawData2 Ch B Beam1 I
2 ! No of rawdata reads ! RawData1 Ch A Beam2 I0
3 ! Total TG time ! RawData2 Ch B Beam2 I
4 ! No of calculations ! No of rawdata reads
5 ! I/I0 ! Total TG time
6 ! ln (Io/It) ! No of calculations
7 ! I/I0 Beam1
8 ! I/I0 Beam2
9 ! ln (Io/It) Beam1
10 ! ln (Io/It) Beam2
| ||||||
Macros:
Usage: vdlshowpar Prints the current parameters on the screen vdldevsetup Usage: vdldevsetup ["MODE TD TG REF TMOD FRE NOACQ CMOD MULTI MAG DARKA DARKB" "MODE2 .. DARKB2" ...] Without parameters ,the uses is asked additional parameters for the vdl cards he configured in SPECs config editor. A star (*) in place of a parameter will not change the actual value. This allows macros to be written that allow to change only certain values (like TD or TG). The meaning of the different parameters | ||||||
| Internal Macros: | ||||||
Usage: vdlsetpar sets the vdl parameters according to the global array VDL_xxx vdlgetpar Usage: vdlgetpar fills the global array VDL_xxxx with the vdl parameters. | ||||||
|