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  <20132014  2015  2016  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: acalcOut
From: "Hu, Yong" <[email protected]>
To: "'Pavel Maslov'" <[email protected]>, EPICS Tech Talk <[email protected]>
Date: Thu, 10 Jan 2013 15:02:34 +0000

Hi Pavel,

 

Firstly, we can’t see how the record "$(P)$(R)WF1 gets processed. Is there any forward link to this record? for instance,  

 

record(… ,  "$(P)$(R)wf1") {

field(FLNK, "$(P)$(R)WF1")

}

 

If no, you may add CP or CPP in INPA, INPB, INCC,  such as field(INCC, "$(P)$(R)wf1 CP").

 

Secondly, you may set "$(P)$(R)WF1.MDEL to -1, which means the monitor is triggered whenever the record is scanned. Then, camonitor “"$(P)$(R)WF1”. But I’m not sure if this works for the acalcout record.

 

Lastly, I’m not quite sure if you used the "Store" operator correctly for "AA:=CC*5/128*A-B;AA". Does it mean: evaluate the _expression_ CC*5/128*A-B, store the result in the input array AA, and set the AVAL field to AA?

 

Yong

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Pavel Maslov
Sent: Thursday, January 10, 2013 2:05 AM
To: EPICS Tech Talk
Subject: acalcOut

 

Hello,

 

I am experiencing some difficulties with this record type. 

 

record(acalcout, "$(P)$(R)WF1") {

  field(NELM, "2500")

  field(INPA, "$(P)$(R)setY1:RBV")

  field(INPB, "$(P)$(R)ch1pos:RBV")

  field(INCC, "$(P)$(R)wf1")

  field(CALC, "AA:=CC*5/128*A-B;AA")

}

 

I would like to plot an array in CSS 3.1.4. So I'm using an XY graph widget with the Y PV parameter pointed to $(P)$(R)WF1.AVAL.

However it does not put a monitor on the AVAL field. So the plot is not being updated every time the calculation is made.

 

Any suggestions will be much appreciated.

 

--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01


Replies:
Re: acalcOut Pavel Maslov
References:
acalcOut Pavel Maslov

Navigate by Date:
Prev: Re: dbScan.c: periodicTask( ), initOnce( ), ... Eric Norum
Next: Re: acalcOut Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: acalcOut Pavel Maslov
Next: Re: acalcOut Pavel Maslov
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·