EPICS Home

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

Subject: Re: stream device driver parse question
From: Rod Nussbaumer <[email protected]>
To: [email protected], [email protected]
Cc: [email protected]
Date: Thu, 17 May 2012 21:11:00 -0600
Note that this method will write to the .VAL field of the target record, but that record but it will not process. FLNK from the steam record to get the target record to process. Older versions of steamDevice require you to explicitly specify the field name, even if it is the .VAL field.


Sent from Samsung Mobile


-------- Original message --------
Subject: Re: stream device driver parse question
From: Florian Feldbauer <[email protected]>
To: [email protected]
CC: tech-talk <[email protected]>


Hi,

you can use the redirection mechanism of streamdevice.
Just configure your ai1 record to use stream as DTYP and the protocol as
input:

record (ai "ai1") {
     field (DTYP, "stream")
     field (INP,  "@myDev.proto getMsg dev1")
     field (SCAN, "I/O Intr")
  }


Your protocol would look like this:
getMsg {
   in "*05CC%d#*05DD%(ai2.VAL)d#*05EE%(ai3.VAL)#"
}

I'm not sure though if one should define the length for the format
converters here?

Best regards,
Florian

Am 17.05.2012 07:15, schrieb Silver:
> hi, all:
>
>    If the device send a string to IOC automaticlly, the data is like "*05CC1234#*05DD5678#*05EE1345#". I have three ai records as ai1,ai2,ai3.
> I want to get "1234" of "*05CC1234#" to ai1, "5678" of "*05DD5678#" to ai2, "1345" of "*05EE1345#" to ai3, how can I implement it?
>    thanks a lot in advance.
>
>
> Best regards
> Geyang  2012-05-17
>


Navigate by Date:
Prev: [EDM] on windows? Pavel Masloff
Next: CSS build with Eclipse RCP-3.7 and -pluginCustomization Xinyu.Wu
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  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: stream device driver parse question Dirk Zimoch
Next: LivEPICS 2012 released Jack
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  2021  2022  2023  2024