Experimental Physics and Industrial Control System
|
Hi Pierrick,
I don't see a problem with your conditional expression. Note that in
the second example, your desired output will appear in the record's ".SVAL'
field.
Kurt
Pierrick Hanlet wrote:
Hello,
I don't understand the online documentation regarding the string output of sCalcout. I want to write
a string based on the results of a calculation. Ex:
record(scalcout,"myrecord")
field(INPA,"xxx")
field(INPB,"yyy")
field(CALC,"(A=1&&B=0?1:A=0&&B=1?0:-1")
What I would really like is
field(INPA,"xxx")
field(INPB,"yyy")
field(INAA,"Good")
field(INBB,"Bad")
field(INCC,"Ugly")
field(CALC,"(A=1&&B=0?AA:A=0&&B=1?BB:CC")
What is the correct syntax for affecting this?
Thanks in advance,
Pierrick
-----------------------------------------------------------------------------------------
Pierrick Hanlet
Fermilab, P.O. Box 500, M.S. 122
Batavia, IL 60510
[email protected]
(630)840-5555/8871/6039 office/lab/fax
http://www-d0.fnal.gov/~hanlet
"Whether you think you can or think you can't, either way, you are correct" -- Henry Ford
- Replies:
- Re: sCalcout emmanuel_mayssat
- Re: sCalcout - again Pierrick Hanlet
- References:
- sCalcout Pierrick Hanlet
- Navigate by Date:
- Prev:
Re: Runtime Input Question Ned Arnold
- Next:
Re: sCalcout Tim Mooney
- 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
- Navigate by Thread:
- Prev:
sCalcout Pierrick Hanlet
- Next:
Re: sCalcout emmanuel_mayssat
- 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
|
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|