According to the medm Reference Manual it uses the same expression syntax (and probably the same parser) as the calc record. The calc record is limited to numeric (double) inputs, not strings. So I don't think medm can handle strings in the calculation you are using.
Mark
________________________________
From: [email protected] on behalf of Jay Steele
Sent: Wed 2/2/2011 5:21 PM
To: [email protected]
Subject: calc doesn't appear to be working with MEDM for string expressions(Win32 Extension Version 1.40)
Hi all,
I'm trying to get the attached logic working with MEDM and string-valued record fields and it isn't working. For the expression "A = B", the text always appears, regardless if string A is different or the same as string B. Do I need to do something special to make strings work with the MEDM calc functionality? Note that I'm using MEDM from EPICS WIN32 Extension Version 1.40.
The A and B string sizes are 18 characters.
Here is the text from the adl file.
text {
object {
x=320
y=205
width=180
height=14
}
"basic attribute" {
clr=20
}
"dynamic attribute" {
vis="calc"
calc="A = B"
chan="$(P)scan1.P1PV"
chanB="$(P)scan2.P1PV"
}
textix="ERROR: SAME MOTORS"
align="horiz. centered"
}
Thanks,
Jay Steele
________________________________
The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed. Any use of this email for any other purpose is prohibited. If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.
- References:
- calc doesn't appear to be working with MEDM for string expressions (Win32 Extension Version 1.40) Jay Steele
- Navigate by Date:
- Prev:
MVME3100 second Ethernet with RTEMS Eric Norum
- Next:
Re: time discontinuity detected Michael Abbott
- 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:
calc doesn't appear to be working with MEDM for string expressions (Win32 Extension Version 1.40) Jay Steele
- Next:
Re: calc doesn't appear to be working with MEDM for string expressions (Win32 Extension Version 1.40) 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
|