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  <20152016  2017  2018  2019  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: To read single element from waveform record
From: ishita bhatia <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Mon, 10 Aug 2015 15:42:57 +0530
Hello,
I have a waveform record with 4 elements with  ftvl=USHORT. How to read a single element from waveform using subArray or acalcout record or any other record.  I have tried using subarray as

record(waveform, optoRead) {
  field(SCAN, "Passive")
  field(NELM, "4")
  field(FTVL, "USHORT")
  field(DTYP, "wafoptosupport")
  field(FLNK, "optolinks")
}

record(subArray, opto1) {
  field(SCAN, "Passive")
  field(DTYP, "Soft Channel")
  field(FTVL, "USHORT")
  field(INP, "optoRead")
  field(INDX, "0")
  field(FLNK, "opto1Binary")
  field(MALM, "2")
  field(NELM, "1")
}

record(subArray, opto2) {
  field(SCAN, "Passive")
  field(DTYP, "Soft Channel")
  field(INP, "optoRead")
  field(MALM, "4")
  field(INDX, "1")
  field(FLNK, "opto2Binary")
  field(FTVL, "USHORT")
  field(NELM, "1")
}

record(subArray, opto3) {
  field(SCAN, "Passive")
  field(DTYP, "Soft Channel")
  field(INP, "optoRead")
  field(MALM, "4")
  field(INDX, "2")
  field(FLNK, "opto2Binary")
  field(FTVL, "USHORT")
  field(NELM, "1")
}

record(subArray, opto4) {
  field(SCAN, "Passive")
  field(DTYP, "Soft Channel")
  field(INP, "optoRead")
  field(MALM, "4")
  field(INDX, "3")
  field(FLNK, "opto2Binary")
  field(FTVL, "USHORT")
  field(NELM, "1")
}


but it doesn't works. Everytime on doing caget it prints just the first element of waveform.

Replies:
RE: To read single element from waveform record Mooney, Tim M.

Navigate by Date:
Prev: Re: Data Archiver Jeong Han Lee
Next: RE: To read single element from waveform record Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: To write data to VDCT from device support Mooney, Tim M.
Next: RE: To read single element from waveform record Mooney, Tim M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·