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  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Get timestamp from another IOC
From: "Hu, Yong via Tech-talk" <tech-talk at aps.anl.gov>
To: Adrian Martinez <adrian.martinez at sevensols.com>, Zhang Yuliang <zhangyl at ihep.ac.cn>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 16 Jun 2021 14:26:19 +0000

Hi Adrián,

 

I tried your example DB record as below and it works for me (of course, you do not need CP. And you do not need MS if you do not care about alarm severity):

record(stringin, "yhuHost:TimeStr") {

    field(DTYP, "Soft Timestamp")

    field(TSEL, "BR-BI{DCCT:1}I:Total-I.TIME CP MS")

    field(INP, "@%s")

    field(SCAN, ".2 second")

}

 

My PV "*TimeStr" is updating at 1Hz (its value is seconds since Epoch) because my IOC1’s PV “BR-BI{DCCT:1}I:Total-I” is only updating every second (not 0.2 second):

$ camonitor yhuHost:TimeStr

yhuHost:TimeStr                2021-06-16 10:25:48.053234 1623853548 

yhuHost:TimeStr                2021-06-16 10:25:49.072902 1623853549 

yhuHost:TimeStr                2021-06-16 10:25:50.091462 1623853550 

yhuHost:TimeStr                2021-06-16 10:25:51.110639 1623853551 

yhuHost:TimeStr                2021-06-16 10:25:52.128821 1623853552 

yhuHost:TimeStr                2021-06-16 10:25:53.148402 1623853553

 

Are you sure your “$(Y):Timestamp_from_IOC1” is updating? Any typo?

 

HTH,

Yong

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Adrian Martinez via Tech-talk <tech-talk at aps.anl.gov>
Date: Wednesday, June 16, 2021 at 6:44 AM
To: Zhang Yuliang <zhangyl at ihep.ac.cn>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Re: Get timestamp from another IOC

Hello Yuliang,

 

I have deleted CP but It does not work. The PV "TimeStr" is still not updated.

 

Thanks, Adrián.

 

El mié, 16 jun 2021 a las 12:09, Zhang Yuliang (<zhangyl at ihep.ac.cn>) escribió:

Hello Adrian,

 

Try to delete CP in line "field(TSEL, "$(Y):Timestamp_from_IOC1.TIME CP MS")".

 

Regards,

Yuliang




-----原始邮件-----
发件人:"Adrian Martinez via Tech-talk" <tech-talk at aps.anl.gov>
发送时间:2021-06-16 18:03:22 (星期三)
收件人: tech-talk at aps.anl.gov
抄送:
主题: Get timestamp from another IOC

Hello,

 

I'm trying to get the timestamp from another IOC (we will call it "IOC1") using the following DB records:

 

record(stringin, "$(user):TimeStr") {

    field(DTYP, "Soft Timestamp")
    field(TSEL, "$(Y):Timestamp_from_IOC1.TIME CP MS")
    field(INP, "@%s")
    field(SCAN, ".2 second")
}

record(ao, "$(user):Time"){
     field(DTYP, "asynInt32")
     field(OUT,  "@asyn($(PORT),$(ADDR),$(TIMEOUT))my_time")
}

record(calcout, "$(user):TimeCalc"){
     field(OUT, "$(user):Time PP")
     field(CALC, "A")
     field(INPA, "$(user):TimeStr.VAL CP MS")
     field(PINI, "YES")
}

 

At the startup of IOC2 I am able to get the timestamp from IOC1 but only once. The PV "TimeStr" doesn't update.

Can someone help me with this task?

 

Thanks in advance, Adrián.


 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.


 

--

Adrián Martínez Múnera

Embedded Software Engineer



This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please immediately notify us via e-mail and delete it.


 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.


References:
Get timestamp from another IOC Adrian Martinez via Tech-talk
Re: Get timestamp from another IOC Zhang Yuliang via Tech-talk
Re: Get timestamp from another IOC Adrian Martinez via Tech-talk

Navigate by Date:
Prev: Re: Re: Get timestamp from another IOC Zhang Yuliang via Tech-talk
Next: Re: Re: Get timestamp from another IOC Adrian Martinez 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Get timestamp from another IOC Michael Davidsaver via Tech-talk
Next: FLIR camera bit depth configuration with ADSpinnaker Florian Benedetti 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  <20212022  2023  2024 
ANJ, 16 Jun 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·