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  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ACalcOUT question
From: Ralph Lange <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Thu, 1 Feb 2018 10:30:38 +0100
Two different definitions of the INPA field? Looks wrong.

~Ralph

On Thu, Feb 1, 2018 at 9:23 AM, Amien Crombie <[email protected]> wrote:

Hi

I have the following record:

record(acalcout,        "$(dev):$(axis)_calc_offset")  {
        field(PINI,        "YES")
        field(DTYP,        "Soft Channel")

        field(NELM,        "48")
        field(INPA,        "$(dev):$(axis)range")
        field(INAA,        "$(dev):$(axis)_raw_cur.AVAL")
        field(INBB,        "$(dev):$(axis)_offset1.AVAL")
        field(INCC,        "$(dev):$(axis)_offset2.AVAL")
        field(INDD,        "$(dev):$(axis)_offset3.AVAL")
        field(INEE,        "$(dev):$(axis)_offset4.AVAL")
        field(INFF,        "$(dev):$(axis)_offset5.AVAL")
        field(INGG,        "$(dev):$(axis)_offset6.AVAL")
        field(INPA,        "$(dev):$(axis)_store_offset1")  # this is boolean 0 / 1
        field(OOPT,        "Every Time")
        field(DOPT,        "Use CALC")
        field(CALC,        "@@(@0)=AA")        # here Range is index to offset-Array of that range
    }

record(waveform,    "$(dev):$(axis)_offset1")  {
        field(DTYP,    "Soft Channel")
        field(NELM,    "48")
        field(FTVL,    "FLOAT")             
}

record(waveform,    "$(dev):$(axis)_offset2")  {
        field(DTYP,    "Soft Channel")
        field(NELM,    "48")
        field(FTVL,    "FLOAT")             
}

record(waveform,    "$(dev):$(axis)_offset3")  {
        field(DTYP,    "Soft Channel")
        field(NELM,    "48")
        field(FTVL,    "FLOAT")             
}

.......etc...


As you can see I have 6 Array link inputs (holding my 6 range noise/background/offsets)

What I would like to do is :

Take the 'range' as my index (so range 1=BB, 2=CC etc) and set it to my AA array.

When I run this I get nothing  in my waveform..

Amien



References:
ACalcOUT question Amien Crombie

Navigate by Date:
Prev: ACalcOUT question Amien Crombie
Next: RE: FLIR 10Gbit Ethernet camera question tom.cobb
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: ACalcOUT question Amien Crombie
Next: Re: ACalcOUT question Amien Crombie
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 01 Feb 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·