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: Pavel Maslov <[email protected]>
To: "Hu, Yong" <[email protected]>
Cc: EPICS Tech Talk <[email protected]>
Date: Thu, 10 Jan 2013 20:02:11 +0400
Hi Yong,

You are right! $(P)$(R)WF1 does get processed. And I do see the waveform on the chart (.AVAL field), it is not updated on the chart . Rather, I have to manually update the OPI hitting F5. The wf1 record is a waveform record and strangely enough it gets updated on the XY plot. I just thought it's the AVAL field of the aCalcOut record that has no monitors.

>> 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?
Yes.




On Thu, Jan 10, 2013 at 7:02 PM, Hu, Yong <[email protected]> wrote:

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




--
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 Tim Mooney
References:
acalcOut Pavel Maslov
RE: acalcOut Hu, Yong

Navigate by Date:
Prev: RE: acalcOut Hu, Yong
Next: Re: medm build Andrew Johnson
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: RE: acalcOut Hu, Yong
Next: Re: acalcOut Tim Mooney
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 ·