Experimental Physics and Industrial Control System
|
Ø
but when the user want send a value like 100 I want to send 10 to the device. How can I do this calculation before sending the value?
Ø
I tried SET VOLT (%.0f/10) but it doesn't work.
Look at the documentation here:
https://paulscherrerinstitute.github.io/StreamDevice/ao.html
For output formats using %f on the ao record you can use the ASLO and AOFF fields to scale the OVAL field.
Mark
From: Tech-talk <[email protected]>
On Behalf Of dmnr infn via Tech-talk
Sent: Monday, January 20, 2020 10:48 AM
To: [email protected]; [email protected]
Subject: Arithmetic calculations before sending a command
Hi everyone,
I have a DB with protocol in this manner:
record (ao, "RF:Setth_a0")
{
field (DESC, "Setting threshold accelerator")
field (DTYP, "stream")
field (OUT, "@MDO.proto setth_a0 $(PORT)")
field (DRVL, "0")
field (DRVH, "11230")
field (LOPR, "0")
field (HOPR, "11230")
field (PREC, "0")
}
setth_a0 {
out "SET VOLT %.0f";
}
With CS Studio I have a spinner associated to this PV, but when the user want send a value like 100 I want to send 10 to the device. How can I do this calculation before sending the value?
I tried SET VOLT (%.0f/10) but it doesn't work.
|
- References:
- Arithmetic calculations before sending a command dmnr infn via Tech-talk
- Navigate by Date:
- Prev:
Arithmetic calculations before sending a command dmnr infn via Tech-talk
- Next:
Re: StreamDevice not parsing STREAM_PROTOCOL_PATH Gerrit Kühn via Tech-talk
- 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:
Arithmetic calculations before sending a command dmnr infn via Tech-talk
- Next:
Spring Meeting? Patrick Oppermann via Tech-talk
- 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, 21 Jan 2020 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|