EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: newbie question : one shot measurement
From: Jérôme Poincheval via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at -aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 24 Mar 2022 16:54:28 +0100


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 ?


##### 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 Poincheval     poincheval at lpccaen.in2p3.fr     tel:02.31.45.29.87
LPC Caen                                    http://www.lpc-caen.in2p3.fr

Replies:
Re: newbie question : one shot measurement Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] ScrollBar in Phoebus - cannot set $(pv_value) in script Kasemir, Kay via Tech-talk
Next: Re: newbie question : one shot measurement Michael Davidsaver 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  <20222023  2024 
Navigate by Thread:
Prev: Re: motorRecord with phytron support: record send goto 0 command before reference is done Kevin Peterson via Tech-talk
Next: Re: newbie question : one shot measurement Michael Davidsaver 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·