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 2020 2021 2022 2023 2024 2025 | 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 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: stream device driver parse question |
From: | "Florian Feldbauer" <[email protected]> |
To: | [email protected] |
Cc: | tech-talk <[email protected]> |
Date: | 17 May 2012 10:14:43 +0200 |
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