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: Mark Rivers <[email protected]>
To: JaeRyong Seo <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 11 Feb 2015 12:48:01 +0000
How difficult this is depends on where you want your channel access clients to run.

If your channel access clients are all on the same subnet as the Linux machine with the IOCs then it is easy.  The default setting for EPICS Channel Access will work:

EPICS_CA_AUTO_ADDR_LIST=YES

Don't define EPICS_CA_ADDR_LIST

You can then run all 4 of your packages in different soft IOCs on Linux.  Your clients will then broadcast a request to find a PV and it will work.

The problem becomes more complex if you need to access these PVs from machines that are not on the local subnet, so that the default broadcast addresses used by Channel Access won't work (see Ralph's earlier reply).

Mark

________________________________
From: [email protected] [[email protected]] on behalf of JaeRyong Seo [[email protected]]
Sent: Wednesday, February 11, 2015 3:35 AM
To: [email protected]
Subject: can run multiple IOCs on single host?

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


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

Navigate by Date:
Prev: RE: multiple overlays with NDPluginOverlay Mark Rivers
Next: Re: can run multiple IOCs on single host? Dirk Zimoch
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? Ralph Lange
Next: Re: can run multiple IOCs on single host? Dirk Zimoch
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 ·