Hi Jiro,
I think I'd use a genSub record rather than the sequencer,
at least to split the channel off, and then maybe a fanout
and use the channel number to determine where the value
goes (but you can probably get away with just a genSub).
Aloha,
Maren
On Thu, 29 Jun 2006, Jiro Fujita wrote:
Hello,
This is probably really an elementary question, but we have been
trying to interface an RS-232 device to EPICS soft IOC on Linux. We
are using EPICS 3.14.8.2 with Asyn 4.6 (devGpib) via serial port. The
response from the device looks like this:
1+32.23
2-50.01
3+23.98
...
...
It has five channels, reads one value a second, contiunally sending
the message through the serial port (that seems to be a typical thing
here at STAR/BNL).
We need to have the data sorted into five different PVs, based upon
the channel names. In the end, the example above should look like
this:
channel 1: 32.23
channel 2: -50.01
channel 3: 23.98
Because we need the channel number and the + or - sign in the raw
data, I am taking the data into the IOC as string, having the
sequencer split the channel number, based upon that, we are trying to
put the value into the database.
- References:
- Sequencer embedded C code question Jiro Fujita
- Navigate by Date:
- Prev:
RE: Sequencer embedded C code question Laznovsky, Michael
- Next:
RE: Sequencer embedded C code question Steven Hartman
- 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: Sequencer embedded C code question Laznovsky, Michael
- Next:
Re: Sequencer embedded C code question Tim Mooney
- 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
|