Optical Monitor OM1 Simulators

om1_sim

This is the main simulator. It is based on previous simulators and tried to calculate events real-time and output them through a PC ISA card to the DPU.
setenv XMMOMMSSLSIM .../data      wherever the data is
cd .../fields
The source file e.g., EG_And.dat, has the RA/Dec as the first line then each line consists of: Here are the answers to the questions:

fast simulator

To get the fast fast simulator: and put them in a directory somewhere. Compile using

gcc -O -o fast_check fast_check.c

To run the fast fast simulator:

io_lx fast_check
fast_sim will say something like this with the responses in bold. The "1028 1028" is the position of the bfast source.
2 msslge:~jpdm/xmm/fast% io_lx ./fast_check
user_id: 208
********** Writing to hardware ****************
Input sourcecat_*.dat file : sourcecat_6.dat
Input source 1 for fast mode : countrate (c/s) : 100
                                    Xpos, Ypos : 1028 1028
Input detector windows file (<CR> for whole detector) :       <CR>
Number of sources 349
Read out time is 0.010948 
Total count rate : 19762.766470
Input running time : 100000000
Aquisition mode is 0

And it is running waiting for Choose Guide Stars. The output should look like this:
2 msslge:~jpdm/xmm/fast% io_lx ./fast_check
user_id: 208
********** Writing to hardware ****************
Input sourcecat_*.dat file : sourcecat_6.dat
Input source 1 for fast mode : countrate (c/s) : 100
                                    Xpos, Ypos : 1028 1028    
Input detector windows file ( for whole detector) : /home/pjs1/det.win
Number of sources 93
Read out time is 0.006813 
Total count rate : 19546.454810
Input running time : 1000000000
Aquisition mode is 2

then the fast sim will keep producing events for a long time.

Restarting the sim

To change fields, control-C the VxWorks script during the last taskDelay of "exp" and wait 1000 s. Then control-C the simulator and run it again with a different field.


The script

<generate/expose

This is generated with gen.c in ~egse/scripts/generate