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  <20202021  2022  2023  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Asyn/StreamDevice for HP3458A through Agilent E5810 LAN/GPIB Gateway
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Hu, Yong" <yhu at bnl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 9 Jul 2020 15:41:28 -0700
I've recalled some more details from my encounter with this device.

On 7/8/20 6:38 AM, Hu, Yong via Tech-talk wrote:
> ReadData {
>          out "DCV  10, 1E-6";
>          in "%f";
> }

The "DCV" command is the measurement range setup command.
By itself, this command does not a measurement will be
made.  It also may have side effects.

In particular, this device has a peculiar idea of "AUTO"
trigger mode (which is the default).  In this mode,
a GPIB read when the device input buffer is empty will
return the most recent measurement.

I found that this hard to follow (at least mentally,
if not with stream device) as command which are documented
as having no reply on success actually seem to.

The commands I used, both for the IOC I linked yesterday are:

> setup {
>     out "TARM HOLD;TRIG SYN;NRDGS 1,AUTO";
> }
> 
> # restore auto trigger
> detach {
>     out "TARM AUTO;TRIG AUTO;NRDGS 1,AUTO";
> }
> 
> sample {
>     out "TARM SGL";
>     in "%f";
> }

The associated database has the idea of attached (IOC control)
and detached (front panel control).  My application was
supporting a benchtop setup, and those involved were
comfortable with setting up modes and ranges in this way.

"TARM HOLD" is disabling triggering.  "TRIG SYN" is setting up
for single trigger.  "NRDGS 1,AUTO" is number of readings to
average (something like sampling period).

When in attached mode, the "sample" exchange is performed
periodically.  "TARM SGL" triggers a single acquisition,
and waits for a single result.

The detach action is putting things back to free running
trigger for front panel operation.

References:
Asyn/StreamDevice for HP3458A through Agilent E5810 LAN/GPIB Gateway Hu, Yong via Tech-talk

Navigate by Date:
Prev: dbdExpand.pl: Duplicate definition of record type 'asyn' Hu, Yong via Tech-talk
Next: Re: dbdExpand.pl: Duplicate definition of record type 'asyn' Mark Rivers 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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Asyn/StreamDevice for HP3458A through Agilent E5810 LAN/GPIB Gateway Hu, Yong via Tech-talk
Next: Modbus alarms question John Dobbins 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  <20202021  2022  2023  2024 
ANJ, 09 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·