EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: can run multiple IOCs on single host?
From: Ralph Lange <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Wed, 11 Feb 2015 12:27:33 +0100
On 11/02/2015 11:20, Pierrick Hanlet wrote:
Hi JaeRyong,
There are a couple of options:
1) in your st.cmd, you might put all of your databases in and run this as a single IOC.
If that's not possible:
2) you can run multiple IOCs on a single PC, but they need to be run on different ports.
However if you do this, you need to be certain that your environment EPICS_CA_ADDR_LIST
specifies the ports: e.g. 111.222.33.444:1234 (the "1234" is the port) and set
EPICS_CA_AUTO_ADDR_LIST=NO.

3) Since you are on Linux, you can use the iptables configurations described in
https://wiki-ext.aps.anl.gov/epics/index.php/How_to_Make_Channel_Access_Reach_Multiple_Soft_IOCs_on_a_Linux_Host
and run multiple IOCs without having to do client configuration.

Hope this helps,
~Ralph


On 02/11/2015 09:35 AM, JaeRyong Seo wrote:
Hi all,

I studied last several months about epics and made several epics packages.
but, because i am new to epics,I am worried about my question is silly thing.

my problem is : How to run several packages on a single host without integrate them or How to integrate them? (my system is fedora ver20 64bit)

Here is four packages.
A : Control DC PowerSupply (A Company), use template streamSCPI 
B : Control DC PowerSupply (B Company), use template streamSCPI 
C : Control Oscilloscope, use template devGPIB (because when i make package, i consulted TDS3000, for using convert function)
D : AreaDetector-1-9-1, (type is ASYN?)

when i run each of them one by one, there is no problem, everything is ok.
but when i run them together, i found problem is exist.

I tried these cases..

Case1. run A, B on different terminal ( run st.cmd files)
when A is running, if i run B on different terminal,
result : failed to PVs via caget cmd.
(I think, when call iocinit() in st.cmd file, first ioc channel is initialized)
[sjr@localhost ~]$ caget CIS:PS2:IDN  (after run A)
CIS:PS2:IDN DAUNANO,DADP-22050,0,2.0-2.0
[sjr@localhost ~]$ caget CIS:PS2:IDN (after run B)
Channel connect timed out: 'CIS:PS2:IDN' not found.

Case2. run A,C / A, D / B,C... on different terminal with using same method Case1
-> result is same with Case1.

Case3. after put files (that is in db, dbd, bin.. directories of A,B Packages) in same directory and edit st.cmd file,
run A with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/A st_mixed.cmd)
-> result is OK (no problem)

Case4. run A,B,C together using same method with Case3,
run A with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/A st_mixed.cmd)
-> result : A,B OK , but C Failed
(log : Missing device support routine PV: scopeTest:IDN read_stringin )

if i run C with one mixed st.cmd files (e.g. #!./bin/linux-x86_64/C st_mixed.cmd)
-> result : A,B Failed , but C OK
(log : Missing device support routine PV: powerA:IDN read_stringin )

Case5. run A,B,D together using same method with Case4,
-> result was same with Case4

my quest is..
Q1. there is no way to run packages together on different terminal?
(i think, integrate several packages into one package is not good method)
Q2. for running packages together, if i need to integrate them into one package without converting template type. is it possible?
Q3. for running packages together, if i need to convert Packages template type to one same type, what is type that i need to select?

my epics param is..
EPICS_AR_PORT: 7002
EPICS_CAS_AUTO_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_PERIOD is undefined
EPICS_CAS_BEACON_PORT is undefined
EPICS_CAS_IGNORE_ADDR_LIST is undefined
EPICS_CAS_INTF_ADDR_LIST is undefined
EPICS_CAS_SERVER_PORT is undefined
EPICS_CA_ADDR_LIST: 100.100.10.255 localhost
EPICS_CA_AUTO_ADDR_LIST: NO
EPICS_CA_BEACON_PERIOD: 15.0
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_MAX_ARRAY_BYTES: 1000000000
EPICS_CA_MAX_SEARCH_PERIOD: 300.0
EPICS_CA_NAME_SERVERS is undefined
EPICS_CA_REPEATER_PORT: 5065
EPICS_CA_SERVER_PORT: 5064
EPICS_CMD_PROTO_PORT is undefined
EPICS_IOC_LOG_FILE_COMMAND is undefined
EPICS_IOC_LOG_FILE_LIMIT: 1000000
EPICS_IOC_LOG_FILE_NAME is undefined
EPICS_IOC_LOG_INET is undefined
EPICS_IOC_LOG_PORT: 7004
EPICS_TIMEZONE: CUS::360:031302:110602
EPICS_TS_NTP_INET is undefined
IOCSH_HISTSIZE: 50
IOCSH_PS1: epics> 

Best regards
JaeRyong

--
"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford
_______________________________________________________________
Pierrick Hanlet
IIT/Fermilab
+44-(0)1235-44-5550 (RAL)
+1-630-840-5555 (FNAL)
+1-312-567-5745 (IIT)
+1-630-697-8758/+44-(0)79-48-860-197 (US/UK mobile)


References:
can run multiple IOCs on single host? JaeRyong Seo
Re: can run multiple IOCs on single host? Pierrick Hanlet

Navigate by Date:
Prev: Re: can run multiple IOCs on single host? Pierrick Hanlet
Next: epics on ios Mezger Anton Christian (PSI)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: can run multiple IOCs on single host? Pierrick Hanlet
Next: RE: can run multiple IOCs on single host? Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·