EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  <19961997  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  Index 1994  1995  <19961997  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 
<== Date ==> <== Thread ==>

Subject: Unions of ASSIGNed arrays in state notation?
From: Ron Chestnut <[email protected]>
To: [email protected]
Date: Wed, 28 Aug 1996 17:40:06 -0700 (PDT)
I'm using lots of waveforms to map to arrays for a PEP-II application 
here at SLAC. There are two basic modes I have to deal with, each 
using different size arrays and waveforms. To simplify code in 
subroutines called by the state program, I'd like to do the 
following:

Union
{
  long Array_1[100];
  Struct
  {
    long Array_2[77]; long Pad [23]
  } _S
} _U;

Then

Assign _U.Array_1 to "wf1";

Assign _U._S.Array_2 to "wf2";

Were this possible, I could have all the mode dependent stuff around 
the PVPUTs, instead of scattered about.

Before I begin experimenting, can a state notation guru please give 
his nickel's worth?

/Ron Chestnut


Navigate by Date:
Prev: preliminary information for accomodation @ CERN Matthias Clausen DESY -MKV2/KRYK-
Next: IDL Widget builder S. Joshua Stein
Index: 1994  1995  <19961997  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: preliminary information for accomodation @ CERN Matthias Clausen DESY -MKV2/KRYK-
Next: IDL Widget builder S. Joshua Stein
Index: 1994  1995  <19961997  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·