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  <20182019  2020  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  <20182019  2020 
<== Date ==> <== Thread ==>

Subject: streamdevice I/O Intr
From: William Kirstaedter via Tech-talk <tech-talk@aps.anl.gov>
To: tech-talk@aps.anl.gov
Date: Thu, 29 Nov 2018 11:34:00 +0100
Hi,

I have a small problem with a fast Device, maybe somebody already had this problem and can help out? :)

It runs via I/O Intr.
I am able to start the reporting, but I cant stop it. It seems that the stop command doesnt get through.... could it be that somehow the communication is blocked by the fast input? how could I fix that?

Its really simple to control:
You send "STM\r", it starts reporting every 18ms "tmp,<float>,<float>\r"
You send "ETM\r", it stops doing that, terminating communication with "txx\r".

all ASCII formatted.

my records:

tc.db file:

record(bo, "$(P):$(R):Toggle"){
   field(DESC, "Toggle Reading")
   field(DTYP, "stream")
   field(OUT, "@tc.proto toggle $(BUS)")
   field(ZNAM, "ETM")
   field(ONAM, "STM")
   field(VAL, "0")
}

record(ai, "$(P):$(R):Temperature") {
  field(DESC, "Temperature")
  field (DTYP, "stream")
  field (INP, "@tc.proto read_K $(BUS)")
  field (SCAN, "I/O Intr")
  field(EGU, "K")
}

record(ai, "$(P):$(R):ThermoVoltage"){
  field(DESC, "TC Thermovoltage")
  field(DTYP, "stream")
  field(INP, "@tc.proto read_nV $(BUS)")
  field(SCAN, "I/O Intr")
  field(EGU, "nV")
}

tc.proto file:

Terminator = CR;
ExtraInput = Ignore;


toggle {
        out "%{ETM|STM}";
        in "txx";
};

read_K {
        in "tmp,%f,%*f";
};

read_nV {
        in "tmp,%*f,%f";
};

--
William Kirstaedter (PP&B)
Fritz-Haber-Institut der MPG
Faradayweg 4-6
14195 Berlin
Tel: 030 8413 5405
Mail: kirstaedter@fhi-berlin.mpg.de


----------------------------------------------------------------------
Das FHI verarbeitet, speichert und loescht Daten im Rahmen seiner
Geschaeftstaetigkeit gemaess der Datenschutz-Grundverordnung (DSGVO)
[General Data Protection Regulation (GDPR)] der Europaeischen Union.


Navigate by Date:
Prev: lib/pkgconfig/epics-base-linux-x86_64.pc: are -lca -ldbCore -lCom ... missing from Libs ? Giacomo S. via Tech-talk
Next: Re: Question about this mailing list 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  <20182019  2020 
Navigate by Thread:
Prev: Re: lib/pkgconfig/epics-base-linux-x86_64.pc: are -lca -ldbCore -lCom ... missing from Libs ? Johnson, Andrew N. via Tech-talk
Next: Re: streamdevice I/O Intr William Kirstaedter 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  <20182019  2020 
ANJ, 29 Nov 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·