On 3/24/22 08:54, Jérôme Poincheval via Tech-talk wrote:
Hi tech-talk,
I am new to epics, and using it to read data from a keithley scpi multimeter.
I want to get one shot readings, not periodic ones. So, to trigger an 'on-demand' measurement, I write a value to the .PROC field of my passive record to trigger processing, then read the value.
This works well, but I wonder if there is a 'read-data-now' function in epics which I have overlooked ?
Not really. Though I like to hide ".PROC" using a boRecord
so that OPI widgets can automatically show "Measure" as a label.
eg.
record(bo, "$(PORT):measure_v_dc") {
field(ZNAM, "Measure")
field(ONAM, "Measure")
field(FLNK, "$(PORT):measure_v_dc_")
}
record(ai, "$(PORT):measure_v_dc_") {
... as below
}
##### excerpt from .proto file :
# one shot measurement
measure {
ExtraInput = Ignore;
out ":measure:\$1?";
in "%f";
}
##### excerpt from .db file :
# read dc voltage, triggered by putting a value to measure_v_dc.PROC
record (ai, "$(PORT):measure_v_dc") {
field (DESC, "voltage/dc one shot measurement")
field (DTYP, "stream")
field (INP, "@scpi_keithley_2000.proto measure(voltage:dc) $(PORT)")
field (SCAN, "Passive")
}
--
Jérôme Poinchevalpoincheval at lpccaen.in2p3.fr tel:02.31.45.29.87
LPC Caenhttp://www.lpc-caen.in2p3.fr
- Replies:
- RE: newbie question : one shot measurement Manoussakis, Adamandios via Tech-talk
- References:
- newbie question : one shot measurement Jérôme Poincheval via Tech-talk
- Navigate by Date:
- Prev:
newbie question : one shot measurement Jérôme Poincheval via Tech-talk
- Next:
cross-compiling Base 7.0.6 for win32 Daykin, Evan 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:
newbie question : one shot measurement Jérôme Poincheval via Tech-talk
- Next:
RE: newbie question : one shot measurement Manoussakis, Adamandios 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
|