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  <20122013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: [StreamDevice] need advice
From: Pavel Masloff <pavel.masloff@gmail.com>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Thu, 26 Apr 2012 19:26:14 +0400
Dear all,


I have a Tektronix scope (TPS2024). I am using StreamDevice. I know how to set the scope's parameters. These are simple commands with the SCAN field = PASSIVE.
One record (the Trigger Single Sequence button) is causing me some pain. When the scope is triggered (end of measurement), I need a readback signal to change its state (=0).
So far my commands were only one way (except for the initializaion). I send, nothing comes. Here is what I use:

record(bo, "$(P)$(R)TrigArm") {
  field(DESC, "Arm the trigger")
  field(SCAN, "Passive")
  field(DTYP, "stream")
  field(OUT, "@devTPS20xx.proto TrigArm $(PORT) $(A)")
  field(ZNAM, "STOP")
  field(ONAM, "ARMED")
  field(PINI, "")
}

TrigArm {
    ReplyTimeout = 2000;
    out "ACQ:STOPA SEQ";
    out "ACQ:STATE %{OFF|ON}";   
    @init {
        out "ACQ:STATE?";
        in "%i";
    }
}

So I need the same @init code in the TrigArm protocol (out "ACQ:STATE?";in "%i";). How can I do that?
The "ACQ:STATE?" command will have an answer ("1"=Trigger Armed, "0"=Trigger Not Armed).
I have tried using another record (with forward link), but to no avail.


--
Best regards,


Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia

Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01


Navigate by Date:
Prev: Re: Autosave and RTEMS-4.10 Kate Feng
Next: Re: Autosave and RTEMS-4.10 Kate Feng
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: EPICS3.14.12 RTEMS patch for nfsMount() ( was Re: Autosave and RTEMS-4.10) Andrew Johnson
Next: Re: [StreamDevice] need advice Pavel Masloff
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·