Experimental Physics and Industrial Control System
Sorry Ralph for my bad explanation.
Can you give an example of a string, and what records (of which record
types) should have what values after the operation?
That would probably make it clearer.
I have the bar code scanner, so, the string input is the arbitrary
ascii and numbers from bar codes, generated by myself, whenever I scan it.
For example,
case 1 : user,123456789,U002C007
case 2 : ABCDEFGHIZ0123456789
case 3 : office,248795493,M01B21
case 4 : ....
case N : SUBMIT
Note that case 1..N-1 can be done without order.
The scanner has a typical RS232 connection. I wrote the very simple
IOC with asyn and Stream. It has only one record and one function in db
and proto file as follows:
--- snip snip ---
record(stringin, "$(SYSDEV)RawScanData")
{
field(DESC, "RAW Scanned data")
field(DTYP, "stream")
field( INP, "@scanner.proto read_raw $(PORT)")
field(SCAN, "I/O Intr")
field(PINI, "YES")
}
read_raw
{
in "%s";
}
--- snip snip ----------
Is this enough?
Thanks,
Han
Thanks,
~Ralph
On Thu, May 18, 2017 at 8:53 PM, Jeong Han Lee <[email protected]
<mailto:[email protected]>> wrote:
Hi,
I would like to develop the EPICS database in the following situation:
* Only one stringin input from device,
* the string as an input has N different types "prefix" in random
order,
* The string input should be transferred to relevant PV after
conditional check.
I would like to do this with only the existent EPICS DB records if
it is possible.
Thanks,
Han
- Replies:
- Re: string fanout or stringout after conditional check? Eric Norum
- References:
- string fanout or stringout after conditional check? Jeong Han Lee
- Re: string fanout or stringout after conditional check? Ralph Lange
- Navigate by Date:
- Prev:
Re: string fanout or stringout after conditional check? Ralph Lange
- Next:
EDM questions lzf neu
- 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
- Navigate by Thread:
- Prev:
Re: string fanout or stringout after conditional check? Ralph Lange
- Next:
Re: string fanout or stringout after conditional check? Eric Norum
- 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