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: | 答复: Question about string operation in epics db ? |
From: | lzf neu <[email protected]> |
To: | Iain Marcuson <[email protected]>, "[email protected]" <[email protected]> |
Date: | Mon, 17 Apr 2017 13:44:28 +0000 |
Thanks, it's a good idea. howeve, I want to change the PV value in db record, then display the PV in CSS rather than make the operation in CSS. Any other idea? Thanks.
发件人: Iain Marcuson <[email protected]>
发送时间: 2017年4月17日 13:20 收件人: lzf neu; [email protected] 主题: RE: Question about string operation in epics db ? Have you tried using a Rule to change the foreground color? I can change the foreground to something other than its default using a rule, but I cannot figure out the semantics of specifying a specific value to change on.
Iain.
From: [email protected] [mailto:[email protected]]
On Behalf Of lzf neu
Hi,
I have a question to consult you.
PV name: "Global-second2_dword" is used to display 60 seconds countdown from PLC.
If the seconds countdown is less than 10, it displays a single digital in terminal. Now I want to add zero in the left of the single digital. eg.09,08,07,06,05,04,03,02,01,00.
Maybe string operation may solve the problem. I have tried "scalcout" record, but epics displays the error message: Record XXX is of unknown type "scalcout" and I have no idea how to write the db.
I have post the record in the following lines:
#################################### record(ai, "Global-Second") #################################### Any help will be apprecieated and thanks in advance!
Zhefu |