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 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
<== Date ==> <== Thread ==>

Subject: 答复: Problem still exist - Question about the speed of synchronization of CaChannel (python file in the attachment) ?
From: lzf neu <lzfneu@live.com>
To: "Wang Xiaoqiang (PSI)" <xiaoqiang.wang@psi.ch>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 16 Oct 2017 03:45:04 +0000


I have added the "self.updatePVs()" at the end of myDriver.value_callback. However, the data loss phenomenon is still exist.


The data are from beamloss monitoring by high speed digitalizer collector (NI), the sample time is about 480M samples per second (i.e., 0.48GS/s).


In my fresh uploaded python file, pv name "caLab:okok" is the data from beamloss monitoring, then i did some treatments in python file and send the data to "MTEST:d10".

In order to contrast the display speed, I set a print "recent",a.d0[a.j] command  and compared with "caLab:okok" and "MTEST:d10".

I have upload the results in "beamloss.csv". it can be seen that total 65 data from  beamloss monitoring, MTEST:d10 is only receive 55 data.

I have no idea whether the data loss problems are related to "self.setParam('d10', a.d0[a.j])" combined with "self.updatePVs()" or "server.process(0.1)".


Any help will be appreciated, and thanks in advance.


Zhefu



发件人: Wang Xiaoqiang (PSI) <xiaoqiang.wang@psi.ch>
发送时间: 2017年10月13日 9:00
收件人: lzf neu
抄送: tech-talk@aps.anl.gov
主题: Re: Question about the speed of synchronization of CaChannel (python file in the attachment) ?
 
Hi,


At the end of myDriver.value_callback, could you add “self.updaePVs()”?
Until that method is called, the change events are not seen to clients.

Best
Xiaoqiang

> On 13 Oct 2017, at 10:41, lzf neu <lzfneu@live.com> wrote:
>
> Hi,
>
> I use CaChannel python package to monitor a PV 'caLab:okok' and do some simple treatments of the PV value, then synchronise the treated PV value to 'MTEST:d00' and 'MTEST:d01' , and it works.
>
> However, the problem is that when monitoring the PVs ('MTEST:d00' and 'MTEST:d01'), the  speed ofsynchronization of "camonitor MTEST:d00", "camonitor MTEST:d01" are quite slower than "camonitor caLab:okok", and  MTEST:d00 and MTEST:d01 lost many data from caLab:okok.
>
> I have no idea how to solve the problem, I try to modify the command "server.process(0.1)" to "server.process(0)" of the main function, but  I failed, the speed of synchronizaiton is still very very slow, and it seems the more PVs synchronization the slower the speed is.
>
> I have attatched the python file in the attachment.
>
> Any help will be appreicated and thanks in advance !
>
> Zhefu
>
>
>
>
>
>
> <1.py>


Replies:
Problem still exist - Question about the speed of synchronization of CaChannel (python file in the attachment) ? lzf neu
References:
Question about the speed of synchronization of CaChannel ? lzf neu
答复: Question about the speed of synchronization of CaChannel (python file in the attachment) ? lzf neu
Re: Question about the speed of synchronization of CaChannel (python file in the attachment) ? Wang Xiaoqiang (PSI)

Navigate by Date:
Prev: Re: A Problem while Installing calc in synApps_5_5 Daniel Schick
Next: Problem still exist - Question about the speed of synchronization of CaChannel (python file in the attachment) ? lzf neu
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
Navigate by Thread:
Prev: Re: Question about the speed of synchronization of CaChannel (python file in the attachment) ? Wang Xiaoqiang (PSI)
Next: Problem still exist - Question about the speed of synchronization of CaChannel (python file in the attachment) ? lzf neu
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
ANJ, 15 Oct 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·