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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: genSub output alignment |
From: | Maren Purves <[email protected]> |
To: | Dirk Zimoch <[email protected]> |
Cc: | [email protected] |
Date: | Fri, 24 Oct 2008 11:41:12 -1000 |
Thanks to both you and Burkhard for replying. One of the problems turned out with the field types, in that I had mistyped DOUBLE as DUOBLE, and the rest was solved following a suggestion from Russell Kackley across the hall from me, to de-reference the other end of the assignment.
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