> msqld &
This starts msql server 1.0.16 and the databases and access control lists (ACLs) for the various experiments are loaded. Ignore warnings such as "Warning : Couldn't open ACL file: No such file or directory" which result if the file $CODA/common/rcdb/msqldb/<expid>/msql.acl does not exist.
> cedit &
Give a new database name e.g test1 This should be the same as your EXPID environment variable.
Give a new configuration name e.g config1
Trigger Supervisor (TS)
Readout Controller (ROC)
Event Builder (EB)
Data Recorder (DR)
Binary output file (BOF)
CODA format output file (COF)
Output to stdout
Interface to dd system
Flush output to /dev/null
Click on the ROC icon and move mouse to the grey drawing area. For the component attributes, enter
Name: roc0
Ethernet host: phobos3
Id Number: 0
Booting String: $CODA_BIN/coda_roc userstring
Readout List: /usr/local/coda/2.0dev/crl/test.o userstring
Here, the Ethernet Host is your PowerPC ROC running VxWorks. For a test, you can specify your Solaris workstation. Specify the full path to the compiled readout list. "userstring" is currently just a placeholder.
Name: eb0
Ethernet Host: loghost
Id Number: 0
Booting String: $CODA_BIN/coda_eb
Incoming Format: CODA
Outgoing Format: CODA
Here the Ethernet Host is the Solaris workstation on which you have installed CODA.
Data File Name: test.dat
Data File Format: CODA
Finally, save the configuration using File->Save
> dbedit &
Rowname: ashutosh
ID: 0
Owner: phobosx phobos 1002 10
inuse: no
run no: 100
The rowname is the session name; for owner, give the Solaris hostname, phobos username, userID and groupID separated by spaces.
Run "makelist" to compile the crl file into object code. e.g for a Solaris ROC
> makelist test.crl native
for a VxWorks PPC ROC
> makelist test.crl ppc
# up the sliding window
# NFS Mount CODA distribution disk
# Setup environment / load coda_roc
# Download Message logging libraries/client
# Boot file for CODA ROC 2.0
# PowerPC version
tcp_sendspace=0x8000
tcp_recvspace=0x8000
#nfsMount "phobosx","/usr/local"
putenv "MSQL_TCP_HOST=phobosx"
putenv "EXPID=test1"
putenv "TCL_LIBRARY=/usr/local/coda/2.0dev/common/lib/tcl7.4"
putenv "ITCL_LIBRARY=/usr/local/coda/2.0dev/common/lib/itcl2.0"
putenv "DP_LIBRARY=/usr/local/coda/2.0dev/common/lib/dp"
putenv "CMLOG_PORT=8102"
putenv "TOKEN_PORT=5555"
ld
#ld
sp cmlogClientD
taskDelay (60*5)
taskSpawn "ROC",200,0,250000,coda_roc,"-i","-s","ashutosh","-objects","roc0
ROC"
Note that the VxWorks kernel should be built with NFS_SUPPORT and ANSI_EXTENSIONS. The Solaris system should export the "/usr/local" filesystem for mounting from VxWorks.
After the ROC has been loaded, type
Start coda_roc in a separate xterm window using
for ROC "roc1" and session "ashutosh".
This should eventually put you in a tcl shell with prompt
"ashutosh::roc1>"
for EB "eb0" and session "ashutosh".
This should eventually put you in a tcl shell with prompt
"ashutosh::eb0>"
Here, "m" specifies the Solaris workstation running msqld, "d" specifies
EXPID, and "s" the session name.
Once the GUI opens,
Press the "Connect" button. You will now get a window showing the
rcServer host (typically your localhost), the experiment (current
value of the EXPID environment variable). Choose the Session
"ashutosh" and hit "Connect" again. You should now get a proper
RunControl GUI.
If you click on the "expand window" button on the top right, you
should get a full screen GUI with tabs for cedit, dbedit
Now hit "Configure" and choose a configuration (e.g config1)
Next hit "Download". This boots the components and loads the readout
list(s).
Next hit "Prestart" to enter data-taking mode.
Next hit "Start Run" to start a run.
You can stop the run with "End Run". In the Options menu, you can
select displays for event and event/data rate displays. Also, you
can use "File->Options" in cedit or the test1_option table in
dbedit to set dataLimit (in bytes) or eventLimit. Zero indicates no
limits. The no. of tokens should be a factor of 2-6 less than the data
rate. The max no. is hardcoded to 2000 and the default is 64.
Another way to start coda_eb automatically is to enable automatic boot
of EB components through the runcontrol options menu.
David Abbott (757) 269-7190 abbottd@cebaf.gov
setenv TOKEN_PORT 5555
setenv CMLOG_PORT 8102
> coda_roc -i -s ashutosh -o "roc1 ROC"
> coda_eb -i -s ashutosh -t CDEB -n eb0
> rcServer -m phobosx -d test1 -s ashutosh &
> runcontrol &
Misc. Usage Hints
hostAdd "phobos3","198.125.138.182"
dtterm -e coda_eb -i -s ashutosh -t CDEB -n eb0 &
dtterm -e rcServer -m phobosx -d test1 -s ashutosh &
Contacts:
Graham Heyes (757) 269-7030 heyes@cebaf.gov