From: LOCAL:.UMDUHE::CHENML 3-DEC-1996 03:31:54.81 To: MX%"skelec@nscpmail.physics.umd.edu" CC: CHENML Subj: The updated doc of FSCC/socket package
M.L.Chen J.Goodman
U. of Maryland
void trig_isr();
void set1877_Dmode();
void set_latch();
void rd1877_Pdff();
void rd_latch_Pdff();
void openFB();
void closeFB();
int grito_initFB();
int evt_buf_check();
void grito_timer();
void wd_act();
void wd_remove();
void buf_match_act();
void SGI_com(); *
void fast_reset(); *
void trigHold(); *
void trigResume(); *
void dataHelp(); *
*: User callable function, other wise internal functioon.Above subroutines execute following functions :
FSCC actions: Read in FastBus module map
Initialize FB modules (TDCs, latch)
In case FB error, report error to the host
Set FSCC to "ready for data taking" status
Initialize run parameters
Responds to Sun:
111 = monitor timer init error
FB error:
-1 = FB long timer time out
-2 = No AK, AK time out
-3 = DK or AK release time out
-5 = Bad slave status
(See FB malual for definitions of AK, DK and other concerned
parameters)
0 = command received and startup done without error
FSCC actions: Inhibit trigger
Clear FSCC dataFIFO
Send run parameter back to host
Responds to Sun: Total trigger counts in this run
FSCC actions: Pause a run or
Resume a paused run
Responds to SGI: 1 = command received
FSCC action: Return current trigger counts
Responds to Sun: Trigger counts number
FSCC action: Trigger rate is checked automatically at a user
defined frequency. If it is lower than a threshold,
which can be set by user, the error flag will be set.
The current version returns the trigger rate to the
host.
Responds to Sun: positive integer = Trigger rate
-1 = trigger rate monitor off
FSCC action: Check TDC buffer mismatch upon host request, and
send checking result back.
Responds to Sun: 0 = ok
111 = buffer mismatch error
FSCC action: Host computer can ask FSCC doing a fast reset.
This function reset TDCs and concerned portion of
FSCC hardware, then ready for taking next event.
Responds to Sun: 1 = command received
ld<sktrig_sock_jp.o
on the FSCC console to load the package. Then type
sktrig_sock_jp(#)
to run it.
dataHelp
on the FSCC console you will obtain a command explanation and a step by
step instruction how to set up the socket.
SGI_com
on the console then just follow the manual on the screen.
11
13
15
17
99
21
999
0
2
30
10
16000
60000003
############################################################
#The numbers before 99 are slot numbers of TDC modules
#The number before 999 is the slot number of latch module
#1/0 : auto fast_reset_flag on/off
#n : timer interval in SECs, n= 1/60 x (an integer)
#mm : "trig count too low" threshold
#k : event buffer match checking frequency = k*timer-intervl
#16000: TDC time window in ns
#60000000 : HEX, TDC data mode set up (See LeCroy1877
# manual)
####################################################