<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.iac.isu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tsaikevi</id>
	<title>New IAC Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.iac.isu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Tsaikevi"/>
	<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=Special:Contributions/Tsaikevi"/>
	<updated>2026-05-09T08:01:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.iac.isu.edu/index.php?title=Running_CODA&amp;diff=93980</id>
		<title>Running CODA</title>
		<link rel="alternate" type="text/html" href="https://wiki.iac.isu.edu/index.php?title=Running_CODA&amp;diff=93980"/>
		<updated>2014-08-27T17:49:14Z</updated>

		<summary type="html">&lt;p&gt;Tsaikevi: /* 2.6.2 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Startup CODA's processes=&lt;br /&gt;
==2.6.2==&lt;br /&gt;
&lt;br /&gt;
Startup CODA programs in separate xterminal sessions&lt;br /&gt;
&lt;br /&gt;
type the following to setup the CODA environmental variables&lt;br /&gt;
&lt;br /&gt;
source CODA/2.6.2/setup&lt;br /&gt;
&lt;br /&gt;
start up msqld, et_start, rcplatform&lt;br /&gt;
&lt;br /&gt;
 coda_eb_rc3 -i -s DAQ -n eb1 -t CDEB&lt;br /&gt;
&lt;br /&gt;
 coda_er_rc3 -i -s DAQ -n LDS_ER -t ER&lt;br /&gt;
&lt;br /&gt;
login to the ROC (rocdaq1) and start the process&lt;br /&gt;
&lt;br /&gt;
 ssh root@rocdaq1&lt;br /&gt;
&lt;br /&gt;
 csh&lt;br /&gt;
&lt;br /&gt;
 source CODA/2.6.2/setup&lt;br /&gt;
&lt;br /&gt;
 coda_roc_rc3 -t ROC -n rocdaq1&lt;br /&gt;
&lt;br /&gt;
now startup the runcontrol GUI&lt;br /&gt;
&lt;br /&gt;
 rcgui&lt;br /&gt;
&lt;br /&gt;
do the following menu calls in rcgui&lt;br /&gt;
&lt;br /&gt;
Configuration-&amp;gt;Cool&lt;br /&gt;
&lt;br /&gt;
select &amp;quot;r1dc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
click the Configure button (wrench &amp;amp; screwdriver icon on upper left)&lt;br /&gt;
&lt;br /&gt;
click the download button (floppy disk icon)&lt;br /&gt;
&lt;br /&gt;
click &amp;quot;Prestart&amp;quot; and then &amp;quot;Go&amp;quot; buttons&lt;br /&gt;
&lt;br /&gt;
===error FAQ===&lt;br /&gt;
&lt;br /&gt;
====CODA2 dp communication error====&lt;br /&gt;
&lt;br /&gt;
Restart the process &amp;quot;et_start&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 rm /tmp/et_sys_DAQ&lt;br /&gt;
 et_start&lt;br /&gt;
&lt;br /&gt;
====ERROR: Data not ready in event 12164121  evStored = 0 ====&lt;br /&gt;
&lt;br /&gt;
The above error started happening.&lt;br /&gt;
&lt;br /&gt;
Its not a multiple TDC hit just before a DAQ trigger&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The problem was the the TDC sopt pulse was too close to the 25 ns width limit.  I increased it to 40 ns and the problem went away.&lt;br /&gt;
&lt;br /&gt;
====Lost connection to the platform====&lt;br /&gt;
&lt;br /&gt;
rcgui killed EB and ER because it &amp;quot;lost connection to the platform&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The above error happens intermittently.&lt;br /&gt;
&lt;br /&gt;
I think this is because the host computers hard disk is failing.  Ben has made an image of the current disk which we will transfer, OS and all, to a new disk to see if this error stops.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====Can not find container_admin====&lt;br /&gt;
&lt;br /&gt;
2013/06/12 10:03:01 Component = eb1 Host = daq2.physics.isu.edu registered with the platform.&lt;br /&gt;
&lt;br /&gt;
ControlDesigner ERROR :Can not find container_admin on the node daq2.physics.isu.edu&lt;br /&gt;
&lt;br /&gt;
==2.6.1==&lt;br /&gt;
Start the following programs in the order below  and in different xterm windows&lt;br /&gt;
&lt;br /&gt;
(need to do: source CODA/setup)&lt;br /&gt;
&lt;br /&gt;
1.)msqld&amp;lt;br&amp;gt;&lt;br /&gt;
2.)minicom (telnet roc1)&amp;lt;br&amp;gt;&lt;br /&gt;
:cntrl-A P E to setup communication speeds&lt;br /&gt;
:reboot to be sure ROC is alive&lt;br /&gt;
3.)et_start -v -s 70000  -n 200&lt;br /&gt;
: you may need to delete the old memory file /tmp/et_sys_DAQ&lt;br /&gt;
:&lt;br /&gt;
:error message&lt;br /&gt;
&lt;br /&gt;
 ~ &amp;gt;et_start&lt;br /&gt;
 et_netinfo: error in gethostbyaddr&lt;br /&gt;
 et_udpreceive: bind error&lt;br /&gt;
 et SEVERE: et_listen_thread: problem opening socket&lt;br /&gt;
&lt;br /&gt;
The above error message happened when I took the DAQ system to the IAC.&lt;br /&gt;
The solution is to add the new IP addresss for the DAQ machine to the /etc/hosts file &lt;br /&gt;
&lt;br /&gt;
For example&lt;br /&gt;
&lt;br /&gt;
 192.168.40.150  daq1.physics.isu.edu    daq1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following fixed the above message&lt;br /&gt;
&lt;br /&gt;
add the line&lt;br /&gt;
&lt;br /&gt;
 10.1.1.1        daq1.physics.isu.edu    daq1&lt;br /&gt;
&lt;br /&gt;
to /etc/hosts file&lt;br /&gt;
&lt;br /&gt;
According to Dave Abbott:&lt;br /&gt;
&lt;br /&gt;
In looking at the ET code it seems that the ET system is checking all active network ports on a particular host and it gets a list of valid IP addresses (in your case 10.1.1.1 and 130.50.3.210). However it then attempts to get a hostname associated for each IP address (using gethostbyaddr). In your case 130.50.3.210 returns &amp;quot;daq1&amp;quot; but 10.1.1.1 returns &amp;lt;null&amp;gt; hence the error. In principle the hostname is not required for anything in particular, but the ET system does not start up because of this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4.)rcServer&lt;br /&gt;
&lt;br /&gt;
5.) coda_eb -i -s DAQ -n eb1 -t CDEB&lt;br /&gt;
&lt;br /&gt;
6.)coda_er -i -s DAQ -n LDS_ER -t ROC&lt;br /&gt;
&lt;br /&gt;
7.) runcontrol&lt;br /&gt;
&lt;br /&gt;
= Select run configuration=&lt;br /&gt;
== Creating run Configurations==&lt;br /&gt;
The following describes how to make a run configuration file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
;use cedit to save a configuration to the data base (best to copy an old configuration)&lt;br /&gt;
&lt;br /&gt;
Then &lt;br /&gt;
&lt;br /&gt;
1.) lauch dbedit application&lt;br /&gt;
&lt;br /&gt;
&amp;gt;dbedit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.) select &amp;quot;localhost&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3.)click on &amp;quot;localhost&amp;quot; tab&lt;br /&gt;
&lt;br /&gt;
4.) select &amp;quot;LDS&amp;quot; data base&lt;br /&gt;
&lt;br /&gt;
5.) now start copying other tables into a new tabl&lt;br /&gt;
&lt;br /&gt;
a.) SIS3610  copy to table SIS3610gem&lt;br /&gt;
b.) SIS3610_option  copy to table SIS3610gem_option&lt;br /&gt;
c.) SIS3610_pos  copy to table SIS3610gem_pos&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6.) go to new copy and change location of executable code to a new directory (row 1 column &amp;quot;code&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The tables won't reload if you jsut stop runcontro.  restarting the msql server didn't work&lt;br /&gt;
&lt;br /&gt;
how to get the new runconfiguration to show up in runcontrol?&lt;br /&gt;
&lt;br /&gt;
Th library for the ADC needs to be downlaoded by hand into the ROC.  On the ROC terminal window type&lt;br /&gt;
&lt;br /&gt;
ld &amp;lt; v792Lib.o&lt;br /&gt;
&lt;br /&gt;
= Download configuration to ROC=&lt;br /&gt;
&lt;br /&gt;
#Click COnfigure in the Runcontrol GUI&lt;br /&gt;
#select V775_TDC from the pull down menu&lt;br /&gt;
#click the download button in the runcontrol GUI&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 You should see message appears on several of the open windows.  &lt;br /&gt;
You should see information in the ROC window.  If you see error &lt;br /&gt;
messages check that you loaded the libraries with the commands&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; ld &amp;lt;v792Lib.o&lt;br /&gt;
-&amp;gt; ld &amp;lt; v775Lib.o&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Prestart=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking the &amp;quot;Prestart&amp;quot; button in the GUI will begin initializing modules for the run&lt;br /&gt;
&lt;br /&gt;
You should not see any error messages in the terminal windows.&lt;br /&gt;
&lt;br /&gt;
=Run=&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Go&amp;quot; in the runcontrol GUI will start a data acquisition&lt;br /&gt;
&lt;br /&gt;
= debug FAQ=&lt;br /&gt;
&lt;br /&gt;
==Using local network card==&lt;br /&gt;
&lt;br /&gt;
I decided to connect the ROC directly to the second 1 Gigabit ethernet card on the host in order to avoid setting up a firewall which makes our sys admin guys happy and allows CODA to work.&lt;br /&gt;
&lt;br /&gt;
I had to tell the ROC to alias the new host names in the boot script&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
so in the file CODA/bootscripts/roc1.boot&lt;br /&gt;
&lt;br /&gt;
I added the line&lt;br /&gt;
&lt;br /&gt;
 hostAdd &amp;quot;daq1&amp;quot;,&amp;quot;10.1.1.1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
You can do this on the roc as well and then on the ROC you can check the lookup tables using the command&lt;br /&gt;
&lt;br /&gt;
 -&amp;gt; hostShow                                                                     &lt;br /&gt;
 hostname         inet address       aliases                                     &lt;br /&gt;
 --------         ------------       -------                                     &lt;br /&gt;
 localhost        127.0.0.1                                                      &lt;br /&gt;
 roc1             10.1.1.2                                                       &lt;br /&gt;
 localdaq         10.1.1.1          daq1                                         &lt;br /&gt;
 value = 0 = 0x0                                                                 &lt;br /&gt;
&lt;br /&gt;
==   Incorrect number Argument when downloading ==&lt;br /&gt;
&lt;br /&gt;
 daLogMsg: Downloading configuration &amp;quot;SIS3610&amp;quot;&lt;br /&gt;
 Incorrect number of Arguments passed for ROL = 1&lt;br /&gt;
 daLogMsg:  Incorrect number of Arguments passed for ROL = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I had incorrectly connected my EB to my ER system&lt;br /&gt;
&lt;br /&gt;
== ROC won't load VxWorks Kernel ==&lt;br /&gt;
&lt;br /&gt;
If you have anout output to stdout from a .cshrc or .tcshrc login script then the ROC will have trouble loading the kernel.&lt;br /&gt;
&lt;br /&gt;
I ran into this one when I deciced to &amp;quot;source CODA/setup&amp;quot; in order to define my CODA environmental variables when I log in.  The setup script did a &amp;quot;echo&amp;quot; and this caused the ROC to stop loading the kernel.   When I was watching via minicom all I saw was the word &amp;quot;Loading...&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== coda_eb constructor faile ==&lt;br /&gt;
&lt;br /&gt;
~ &amp;gt;coda_eb -i -s DAQ -n eb1 -t CDEB&lt;br /&gt;
constructor failed : Couldn't setup listening socket on any port: Cannot assign requested addressNS_ServerInit (dp_MakeRPCServererror : Couldn't setup listening socket on any port: Cannot assign requested address )&lt;br /&gt;
Segmentation fault&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
coda_eb  couldn't resolve the name server address&lt;br /&gt;
&lt;br /&gt;
change /etc/hosts file so it has the right IP number for daq1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== et_start Segmentation fault==&lt;br /&gt;
&lt;br /&gt;
Solution:  Try removing the file /tmp/et_sys_DAQ.&lt;br /&gt;
&lt;br /&gt;
==et_start: problem opening socket==&lt;br /&gt;
~ &amp;gt;et_start -v -s 70000 -n 200&lt;br /&gt;
et_start: asking for 70000 byte events.&lt;br /&gt;
et_start: asking for 200 events.&lt;br /&gt;
et_netinfo: error in gethostbyaddr&lt;br /&gt;
et_start: starting ET system /tmp/et_sys_DAQ&lt;br /&gt;
et_udpreceive: bind error&lt;br /&gt;
et SEVERE: et_listen_thread: problem opening socket&lt;br /&gt;
&lt;br /&gt;
==Cannot open broadcast Handle==&lt;br /&gt;
&lt;br /&gt;
==Download run failed (UDP?) ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Attached TCP/IP interface to geisc0.                                            &lt;br /&gt;
Warning: no netmask specified.                                                  &lt;br /&gt;
Attaching network interface lo0... done.                                        &lt;br /&gt;
Loading...                                                                      &lt;br /&gt;
Error loading file: errno = 0x3c.                                               &lt;br /&gt;
Can't load boot file!!                                                          &lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above was because the computer name was not correct&lt;br /&gt;
&lt;br /&gt;
changed &lt;br /&gt;
&lt;br /&gt;
 host name            : localdaq&lt;br /&gt;
&lt;br /&gt;
to &lt;br /&gt;
&lt;br /&gt;
 host name            : daq1 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
now &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-&amp;gt; hostShow                                 &lt;br /&gt;
hostname         inet address       aliases                                     &lt;br /&gt;
--------         ------------       -------                                     &lt;br /&gt;
localhost        127.0.0.1                                                      &lt;br /&gt;
roc1             10.1.1.2                                                       &lt;br /&gt;
daq1             10.1.1.1          daq1.physics.isu.edu                         &lt;br /&gt;
value = 0 = 0x0          &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
-&amp;gt; roc1 create UDP socket                                                       &lt;br /&gt;
rc UDP host is daq1.physics.isu.edu port is 2052                                &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Turn off Firewall==&lt;br /&gt;
&lt;br /&gt;
As super users execute:&lt;br /&gt;
&lt;br /&gt;
/sbin/service iptables stop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setting up IAC network==&lt;br /&gt;
&lt;br /&gt;
as root run the script&lt;br /&gt;
&lt;br /&gt;
/root/IAC_network.sh &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Connecting to ROC failed===&lt;br /&gt;
&lt;br /&gt;
I moved DAQ1 to the IAC.  I had to run DHCP for now.  I think this changed the /etc/hosts file.&lt;br /&gt;
&lt;br /&gt;
I edited the /etc/hosts file to be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Do not remove the following line, or various programs&lt;br /&gt;
# that require network functionality will fail.&lt;br /&gt;
127.0.0.1               daq1.physics.isu.edu daq1 localhost.localdomain localhos&lt;br /&gt;
t&lt;br /&gt;
10.1.1.1 daq1.physics.isu.edu   daq1&lt;br /&gt;
10.1.1.2 roc1.physics.isu.edu  roc1&lt;br /&gt;
::1             localhost6.localdomain6 localhost6&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I can telnet to roc1 by name from daq1.&lt;br /&gt;
&lt;br /&gt;
Runcontrol fails to find the ROC when downloadins SIS3610&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Connecting to roc1 on host roc1&lt;br /&gt;
daLogMsg: Connecting to roc1 on host roc1&lt;br /&gt;
boot failed !!!&lt;br /&gt;
daLogMsg: boot failed !!!&lt;br /&gt;
ROC subsystem Boot failed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://wiki.iac.isu.edu/index.php/Data_Acquisition Back to DAQ] [[Data_Acquisition]]&lt;br /&gt;
&lt;br /&gt;
== ET bind error==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
et_udpreceive: bind error &lt;br /&gt;
et SEVERE: et_listen_thread: problem opening socket&lt;br /&gt;
&lt;br /&gt;
==Undefined symbol: GEN_ACK (binding 1 type 0)==&lt;/div&gt;</summary>
		<author><name>Tsaikevi</name></author>
	</entry>
</feed>