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 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 <2015> 2016 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 |
field(THST, "Auto")
field(THVL, "3")
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 possibleto 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