next up previous contents index
Next: Generating Object Codes from Up: An Example Experiment Readout Previous: The Hardware   Contents   Index

The CRL Code

The CRL code for the readout described above would have the following structure :
############### SECTION 1 ####################
# DO NOT change the lines in this block ******
readout list VME1
# event buffer size (bytes), number of event buffers in pool
maximum 400,2000
vme readout
include "/home/coda/cat_software/crl/TUNL_crl_reg.h"
include "/home/coda/cat_software/scalers/buffser.h"
include "expt_module_setup.h"
include "expt_crl.h"
const FCODE = 9
const TIR_ADDR = 0x0ed0
const CRATE=1
unsigned long laddr;
int camacdata=0, qstat;
int chlista[32], chlistb[32], chlistc[32];

unsigned long data32;
unsigned short data16;
#
# End of hands-off block  ********************
############### SECTION 2 ####################
variables ...

begin download
...
end download

begin prestart
...
end prestart

begin go
...
end go

begin trigger usrtrig
...
end trigger

begin end
...
end end

begin pause
... 
end pause



begin done usrtrig
...
end done 

begin done
end done

begin status
...
end status

#############################################
Let us describe these sections in detail. All experiments require the secondary.crl and it must not be modified by the users.
next up previous contents index
Next: Generating Object Codes from Up: An Example Experiment Readout Previous: The Hardware   Contents   Index
Mohammad Ahmed 2003-07-23