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