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  <20112012  2013  2014  2015  2016  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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: how to write string to waveform record using a scalcout record?
From: Jay Steele <[email protected]>
To: "[email protected]" <[email protected]>
Date: Thu, 14 Apr 2011 11:16:37 -0700
Hi EPICS community,
    Does anybody have an example of how to write a character string to a waveform record using a scalcout record? The scalcout documentation has some references to array operators, but it isn't clear how to use these to create a character string for a waveform record.
 
    I'm trying to do this for the following reason.
 
The netCDF1 plugin for the DXP-XMAP uses a waveform record to store the filename (to go beyond the 40 char limit I presume), and I want to automatically set this filename based on the file name for the MDA file so that the user can link the netCDF1 files with the MDA file. My first guess was to try to just set the VAL field from a scalcout record using its OUT field, but this doesn't work. It just clears the waveform record VAL. Here is the scalcout record I have so far. I can make this work to set the DESC field of the netCDF1:FileName record, but not the VAL field. I don't mind limiting the VAL array to 40 characters.
 
record(scalcout, "$(P)PreFlyScan2Calc3") {
  field(DESC, "PreFlyScan2Calc 3")
  field(DISV, "0")
  field(SDIS, "$(P)userStringCalcEnable.VAL NPP MS")
  field(INAA,"$(P)saveData_baseName.VAL")
  field(INBB,"$(P)saveData_scanNumber.VAL")
  field(CALC, "AA + '_' + BB")
  field(OUT,"$(X)netCDF1:FileName CA")
}
 
Thanks,
Jay Steele
Xradia Corporation


The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed. Any use of this email for any other purpose is prohibited. If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.

Replies:
RE: how to write string to waveform record using a scalcout record? Steiner, Mathias

Navigate by Date:
Prev: Re: ca.py - Throws error - workaround Tim Mooney
Next: RE: how to write string to waveform record using a scalcout record? Steiner, Mathias
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: ca.py - Throws error - workaround Luca Luisa
Next: RE: how to write string to waveform record using a scalcout record? Steiner, Mathias
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·