next up previous contents index
Next: Code Sections Up: CODA Readout Language (CRL) Previous: File Format   Contents   Index

Compiler Flags

The first non-comment lines of code select a readout list name, event buffer sizes, what type of readout hardware is being used, and whether the readout will be triggered by interrupt or by polling. The readout list name is specified by

readout list SFI1
where the name (e.g. SFI1) must be a single word and is case sensitive.

The next statement is optional and specifies the maximum size and number of event buffers to create for the readout list event pool. The default, a maximum event size of 4 Kilobytes and number of 512 buffers (a total of 2 MBytes) is used otherwise.

maximum 256,1000   # create 1000 256 Byte buffers
If execution of the trigger routine(s) is to be determined by polling of a variable or hardware register then the next statement should be present. This statement is mandatory for test and event mode readout.
polling

Next, there must be a line containing one of the key statements for FASTBUS, SFI,CAMAC, or VME to enable support for the corresponding hardware:

camac readout                 # uses camac standard routines 
vme readout                   # camac and vme may both be used 
fastbus readout               # FSCC fastbus routines included 
sfi readout                   # SFI/fastbus routines included 
test readout                  # generates test triggers 
event readout                 # use for secondary rol only


next up previous contents index
Next: Code Sections Up: CODA Readout Language (CRL) Previous: File Format   Contents   Index
Mohammad Ahmed 2003-07-23