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

Subject: StreamDevice "in" command disturbed by out command
From: haquin <haquin@ganil.fr>
To: tech-talk <tech-talk@aps.anl.gov>
Date: Thu, 16 Oct 2014 10:07:47 +0200
Hi All,

I am using StreamDevice with Asyn TCP connection to control a power supply.
I have some periodic read (power ON/OFF or Ready/Fault or Local/distant)
 and commands (switch power ON/OFF or reset) can be send asynchronously.

My problem is that periodic reads are disturbed because they also receives the strings of the asynchronous commands.
In such case the record goes temporarily into CALC INVALID state.

Following is the message I can have when I issue Power ON command (the record reading the local/distant status is disturbed)
TCP_BPI TST-BPI:Ctrl: Input "DCP=1" mismatch after 0 bytes
TCP_BPI TST-BPI:Ctrl: got "DCP=1" where "REM/" was expected

How could I have the periodic read not being disturbed by asynchronous commands ?

thanx in advance for your help.

here is an example of my records/protocol:

#####################################################
record(bi, "$(EQPT):Ctrl") {
  field(SCAN, "1 second")
  field(DTYP, "stream")
  field(INP, "@alimISrc_SerialProtocol.db getRem TCP_BPI")
  field(ZNAM, "LOCAL")
  field(ONAM, "DISTANT")
}

getRem{
  out "REM/";
  in "REM/%u";
}
#####################################################
record(bo, "$(EQPT):PwrCmdOut") {
  field(SCAN, "Passive")
  field(DTYP, "stream")
  field(OUT, "@alimISrc_SerialProtocol.db setPwr TCP_BPI")
  field(ZNAM, "OFF")
  field(ONAM, "ON")
}

setPwr{
        out "%{DCP=0|DCP=1}";
    }
#####################################################

--
Christophe Haquin
Control and Real Time systems Engineer

+33 231454661 office
+33 231454728 fax
SdA/GIM
GANIL
Bd Henri Becquerel BP 55027
14076 CAEN CEDEX5

begin:vcard
fn:Christophe Haquin
n:Haquin;Christophe
email;internet:haquin@ganil.fr
tel;work:02 31 45 46 61
x-mozilla-html:FALSE
version:2.1
end:vcard


Replies:
Re: StreamDevice "in" command disturbed by out command Dirk Zimoch

Navigate by Date:
Prev: Usage of the dbNameToAddr funciton ZHANG Zhaohong
Next: Re: areadetector, iocSimDetector can not be started on OS X due to dyld: Symbol not found: _xmlFree [Solved] Heinz Junkes
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: Usage of the dbNameToAddr funciton ZHANG Zhaohong
Next: Re: StreamDevice "in" command disturbed by out command Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·