Experimental Physics and
| |||||||||||||||||
|
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 >
| ||||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |