EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: genSub output alignment
From: Dirk Zimoch <[email protected]>
To: Maren Purves <[email protected]>
Cc: [email protected]
Date: Fri, 24 Oct 2008 11:15:39 +0200
Have you checked all field types and array sizes? The record allocates memory for the fields. If the record and the C-code disagree on the types you might write to wrong memory locations. The C-code should always check the types (at least in the init routine).

Dirk

Maren Purves wrote:
Hi all,

I have a rather funny (funky) problem with a genSub record.
It outputs several values, one definitely a string, some
integers and some floats. After trying to get the integer
(long) values out yesterday (got the first one out, but not
the rest) and resorting to strings (it's channel access,
after all) I tried to add some floating point (double)
values to that today. Again, I got the first one out,
but not the rest, and lost the last character of the
last string. Converting all to strings didn't help
this time. However, I got the last character of the
string in VALF back by putting it into VALJ (after
the doubles).
This is a rather complex mechanical system (for those
who know a bit about our instruments: the mechanisms
in the CGS4 cryostat) where things have to be calculated
depending on one another, and so I'd prefer to keep
all of this together.
There are a few things I can try yet, but if anybody
can tell me an easy solution I'd very much appreciate it.

Thanks in advance,
Maren


-- Dr. Dirk Zimoch Paul Scherrer Institut, WBGB/006 5232 Villigen PSI, Switzerland Phone +41 56 310 5182

Replies:
Re: genSub output alignment Maren Purves
References:
genSub output alignment Maren Purves

Navigate by Date:
Prev: Re: genSub output alignment Burkhard Kolb
Next: recordGenerator record Kalantari Babak
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: genSub output alignment Burkhard Kolb
Next: Re: genSub output alignment Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·