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  <20152016  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  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: mbbi as the result of calc
From: Benoit <[email protected]>
To: "Mooney, Tim M." <[email protected]>
Cc: EPICS mailing list <[email protected]>
Date: Tue, 5 May 2015 11:57:00 +0200
Thanks this is working!

I did try this yesterday but I was trying to write in $(user):TunFreqModeRdbk.RVAL and this did not work.

BTW: I do not have option 2 so I have created:

field(THST, "Auto")
field(THVL, "3")


Regards,


--
Benoit RAT
www.neub.co.nr

On Mon, May 4, 2015 at 7:22 PM, Mooney, Tim M. <[email protected]> wrote:
Hi Benoit,

Yes, it's possible, and you almost have it.  I think this should work:

record(mbbi, "$(user):TunMechModeRdbk")
{
field(DESC ,"Cavity Phase increase")
field(ZRST, "Disable")
field(ZRVL, "0")
field(ONST, "Manual")
field(ONVL, "1")
field(TWST, "Auto")
field(TWVL, "2")
}
record(calcout, "$(user):TunMechModeCalc")
{
field(CALC, "A | ( B << 1 )")
field(INPA, "$(user):DOutTunmcEnStat.VAL CP MS")
field(INPB, "$(user):DOutTunmcAutoStat.VAL CP MS")
field(OUT,
"$(user):TunMechModeRdbk PP")
}

Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] [[email protected]] on behalf of Benoit [[email protected]]
Sent: Monday, May 04, 2015 10:00 AM
To: EPICS mailing list
Subject: mbbi as the result of calc

Hi,

After finding out that CSS/BOY is very CPU consuming I am trying to put more effort on the IOC side and I was wondering if it is possible
to have the result of $(user):TunMechModeCalc in a mbbi to display it directly as a combo box without using script:


record(mbbi, "$(user):TunMechModeRdbk")
{
field(DESC ,"Cavity Phase increase")
field(FLNK,"$(user):TunMechModeCalc")
field(ZRST, "Disable")
field(ZRVL, "0")
field(ONST, "Manual")
field(ONVL, "1")
field(TWST, "Auto")
field(TWVL, "2")
}
record(calc, "$(user):TunMechModeCalc")
{
field(CALC, "A | ( B << 1 )")
field(INPA, "$(user):DOutTunmcEnStat.VAL CP MS")
field(INPB, "$(user):DOutTunmcAutoStat.VAL CP MS")
}

Regards,

--
Benoit


 

Benoit RAT LAMY


References:
mbbi as the result of calc Benoit
RE: mbbi as the result of calc Mooney, Tim M.

Navigate by Date:
Prev: APS Network Maintenance tonight Andrew Johnson
Next: DLS ethercat release 4-3 available ronaldo.mercado
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: mbbi as the result of calc Mooney, Tim M.
Next: APS Network Maintenance tonight Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·