Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Re: Sequencer embedded C code question
From: Maren Purves <m.purves@jach.hawaii.edu>
To: Jiro Fujita <jiro.fujita@gmail.com>
Cc: tech-talk@aps.anl.gov
Date: Thu, 29 Jun 2006 09:59:14 -1000 (HST)
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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
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  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·