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  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
<== Date ==> <== Thread ==>

Subject: Re:Re: Re: Re: Xspress3 INP error
From: lynn via Tech-talk <tech-talk at aps.anl.gov>
To: "Matt Newville" <newville at cars.uchicago.edu>, tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 20 Jul 2023 00:32:33 +0800 (CST)
Hi matt,
      Could I ask some more question.
Quetion 1:
when i use the edm opi, i got the array error, but i do set  EPICS_CA_MAX_ARRAY_BYTES =6000000, why?

type:  edm -x -m "P=XSP3_1Chan,CHAN=1,CHM=0,R=Proc1" /home/xspress3/epics/xspress3/xspress3App/opi/edl/xspress3_mcarois.edl
got :CA add event error('XSP3_1Chan:MCASUM1:ArrayData'): The requested data transfer is greater than available memory or EPICS_CA_MAX_ARRAY_BYTES
CA add event error('XSP3_1Chan:MCA1:ArrayData'): The requested data transfer is greater than available memory or EPICS_CA_MAX_ARRAY_BYTES

Quetion 2:
the xspress3_1Chan opi worked well both edm anc css. But when clicked "MCA1",  CSS blinking(conncet to disconnect, continue) and show the error:

2023-07-19 15:22:54.037 INFO [Thread 39] com.cosylab.epics.caj.CAJContext (searchResponse) - More than one PVs with name 'XSP3_1Chan:MCA1:ArrayData' detected, additional response from: /192.168.10.22:5064
2023-07-19 15:22:54.038 INFO [Thread 39] com.cosylab.epics.caj.CAJContext (searchResponse) - More than one PVs with name 'XSP3_1Chan:MCA1:ArrayData' detected, additional response from: /192.168.0.1:5064
2023-07-19 15:22:54.038 INFO [Thread 39] com.cosylab.epics.caj.CAJContext (searchResponse) - More than one PVs with name 'XSP3_1Chan:MCA1:ArrayData' detected, additional response from: /192.168.1.30:5064

Thethree ip was the pc. I think EPICS_CA_ADDR_LIST could resolve it. Then I modify EPICS_CA_ADDR_LIST, but still have the error.
I try several situation. and if EPICS_CA_ADDR_LIST = 192.168.0.1, CSS said: ......virtual circuit disconnect.

I think i was right (i means change EPICS_CA_ADDR_LIST ), but if i was right, i should get the right answer already.
Could you give me some advice.


My environment:
epics> epicsPrtEnvParams
EPICS_CA_ADDR_LIST: 192.168.0.1
EPICS_CA_CONN_TMO: 30.0
EPICS_CA_AUTO_ADDR_LIST: NO
EPICS_CA_REPEATER_PORT: 5065
EPICS_CA_SERVER_PORT: 5064
EPICS_CA_MAX_ARRAY_BYTES: 6000000
EPICS_CA_AUTO_ARRAY_BYTES: YES
EPICS_CA_MAX_SEARCH_PERIOD: 300.0
EPICS_CA_NAME_SERVERS is undefined
EPICS_CA_MCAST_TTL: 1
EPICS_CAS_INTF_ADDR_LIST is undefined
EPICS_CAS_IGNORE_ADDR_LIST is undefined
EPICS_CAS_AUTO_BEACON_ADDR_LIST is undefined
EPICS_CAS_BEACON_ADDR_LIST is undefined
EPICS_CAS_SERVER_PORT is undefined
EPICS_CA_BEACON_PERIOD: 15.0
EPICS_CAS_BEACON_PERIOD is undefined
EPICS_CAS_BEACON_PORT is undefined
EPICS_BUILD_COMPILER_CLASS: gcc
EPICS_BUILD_OS_CLASS: Linux
EPICS_BUILD_TARGET_ARCH: linux-x86_64
EPICS_TZ: CST6CDT,M3.2.0/2,M11.1.0/2
EPICS_TS_NTP_INET is undefined
EPICS_IOC_IGNORE_SERVERS is undefined
EPICS_IOC_LOG_PORT: 7004
EPICS_IOC_LOG_INET is undefined
EPICS_IOC_LOG_FILE_LIMIT: 1000000
EPICS_IOC_LOG_FILE_NAME is undefined
EPICS_IOC_LOG_FILE_COMMAND is undefined
EPICS_CMD_PROTO_PORT is undefined
EPICS_AR_PORT: 7002
IOCSH_PS1: epics>
IOCSH_HISTSIZE: 50
IOCSH_HISTEDIT_DISABLE is undefined

My ip :
[xspress3@xspress3 linux-x86_64]$ ifconfig
enp1s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.30  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::41bd:a76f:550:abd7  prefixlen 64  scopeid 0x20<link>
        ether 00:01:2e:a3:11:35  txqueuelen 1000  (Ethernet)
        RX packets 115912  bytes 8667209 (8.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 501375  bytes 548050487 (522.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.192  broadcast 192.168.0.63
        inet6 fe80::201:2eff:fea3:1136  prefixlen 64  scopeid 0x20<link>
        ether 00:01:2e:a3:11:36  txqueuelen 1000  (Ethernet)
        RX packets 30599755  bytes 4161275624 (3.8 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 30619513  bytes 3127762622 (2.9 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2196841  bytes 901037835 (859.2 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2196841  bytes 901037835 (859.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:be:d5:e0  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.22  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 fe80::cb64:243d:d1a1:6f32  prefixlen 64  scopeid 0x20<link>
        ether 68:54:5a:8a:b1:1e  txqueuelen 1000  (Ethernet)
        RX packets 486088  bytes 73110674 (69.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 792387  bytes 624402824 (595.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0







在 2023-07-17 03:47:35,"Matt Newville" <newville at cars.uchicago.edu> 写道:

Hi Lynn, 



On Sun, Jul 16, 2023 at 7:31 AM lynn <lynn0703 at yeah.net> wrote:
Hi Matt,
     Thank you.
     Two little question, could you help me with it.
     1) What the macro "IOC_Prefix" should be?

It does not need to be related to the same PREFIX for the IOC, but that is a pretty common choice.
So, maybe have

epicsEnvSet("PREFIX", "XSP3_1Chan:")
epicsEnvSet("IOC_PREFIX", "XSP3_1Chan:")

     2) Whichi is the acquire time pv? I browse pv list twice, didn't find the xspress3_1chan.opi did not have it.

I think I may not be sure what the OPI screens have, and don't have a working detector at the moment (APS shutdown).  

But, the "det1" areaDetector should have an AcquireTime and Acquire PVs, and also NumImages, 

    XSP3_1Chan:det1:Acquire         # start acquiring
    XSP3_1Chan:det1:AcquireTime # time for each "frame" / "images"
    XSP3_1Chan:det1:NumImages  # number of "frames" / "images"

That is, if you want a 10-second exposure, you can collect either 1 "image" for 10 seconds or 10 images for 1 second (or 1000 images for 0.01 seconds!).
XSP3_1Chan:MCA1:ArrayData will have the most recent "image", updating during collection of multiple "images", and 
XSP3_1Chan:MCASUM1:ArrayData ill have the sum of frames in the NumImages in the "run". 

Does that make sense?

--Matt 


Replies:
RE: Re:Re: Re: Re: Xspress3 INP error Mark Rivers via Tech-talk
References:
Xspress3 INP error lynn via Tech-talk
Re: Xspress3 INP error Matt Newville via Tech-talk

Navigate by Date:
Prev: Re: Difference in PV Structures Made Via QSRV and PVXS Michael Davidsaver via Tech-talk
Next: RE: Re:Re: Re: Re: Xspress3 INP error Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
Navigate by Thread:
Prev: Re: Xspress3 INP error Matt Newville via Tech-talk
Next: RE: Re:Re: Re: Re: Xspress3 INP error Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024 
ANJ, 19 Jul 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·