Command batch files let you execute commands in a time driven manner. A simple ASCII file with *.cpb extension lists all the commands you want to execute prefixed with a time tag.
Comments can be inserted anywhere in the file. A comment starts with the '#' character and ends at the end of the line.
The format of each command line is:
after [ddd,] hh:mm:ss Command
Batch files can be started and stopped from the GSEOS Command window. You can also start a batch file programmatically with the GseosCmd module.
Example
The following code shows a sample batch file:
### ----------------- DPU processing----------------
after 0,00:00:01 EPU_CNTRL(RAW_EVENTS)
after 0,00:00:01 EPU_CNTRL(CHEMS_ONLY)
### --------------------------------------------------
### ----------------- CHEMS_ON (start)----------------
### --------------------------------------------------
### ------- Make sure HV is disconnected !!!----------
### --------------------------------------------------
### --------------------------------------------------
after 0,00:00:10 PWR_CNTRL(CHEMS_PROC, ON)
after 0,00:00:01 C_ANALOG(ALL, ON)
after 0,00:00:01 C_PHA_MODE(NORMAL)
after 0,00:00:01 C_EV_LOGIC(E_OR_T)
after 0,00:00:01 C_THRESHOLD(ALL, 36)
after 0,00:00:01 C_BIAS(ALL, ON)
after 0,00:00:01 RT_HV_ENABLE()
after 0,00:00:01 PWR_CNTRL(CHEMS_DPPS, ON)
after 0,00:00:01 C_HV_LIMIT(DPPS, 1)
after 0,00:00:01 C_HV_ENABL(DPPS, ON)
after 0,00:00:01 C_DPPS_FRZ(1)