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: SubArray to ai record
From: Amien Crombie <[email protected]>
To: EPICS tech-talk <[email protected]>
Date: Thu, 22 Mar 2018 13:19:20 +0200
Hi Andrew

Thanks for that info on new array filters in Base 3.15 and higher.

I just have to compile my Beaglebone with the new Base and it should work.

Regards

Amien

On 2018/03/16 17:31, Andrew Johnson wrote:
Hi Amien,

On 03/16/2018 09:19 AM, Amien Crombie wrote:
I have a subarray record that looks like this:

record(subArray,  "$(dev):$(channame)") {
      field(SCAN,  ".1 second")
      field(FTVL,  "FLOAT")
      field(DTYP,  "Soft Channel")
      field(INP,   "$(dev):xcur")  ## INP comes from a waveform of 8 floats
      field(NELM,  "1")
      field(MALM,  "8")
      field(INDX,  "$(chan)")   ## chan macro starts at 0
      field(FLNK,  "$(dev):mychan$(INDX)")
What are you trying to achieve with the above FLNK value? Did you mean
to use $(chan) instead of $(INDX)? Do you have 8 copies of this record,
one each for chan=1, chan=2 etc?

  }
record(ai,        "$(dev):mychann$(chan)")        {
      field(DTYP,   "Soft Channel")
}

This is possibly not the right way to do it. Is there a better way?
I suspect you may be trying to extract each of the individual values
from the waveform into their own ai record, is that correct?

Which version of EPICS Base are you using? There is an easier way than
creating 8 subArray records if you are using a 3.15 or later release of
Base.

- Andrew


References:
SubArray to ai record Amien Crombie
Re: SubArray to ai record Andrew Johnson

Navigate by Date:
Prev: How to start EPICS IOC via LabVIEW on cRIO 赵泽锋
Next: seq error 梁雅翔
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: Re: SubArray to ai record Andrew Johnson
Next: Asyn getting DTYP field in drvUserCreate() Konrad, Martin
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, 22 Mar 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·