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: RE: waveform record
From: <[email protected]>
To: <[email protected]>
Date: Wed, 8 Jul 2015 08:39:52 +0000

Hi,

 

you need to use the  –a  option of caput to write to arrays, in this case you would type:

 

    caput –a twf 5 1 2 3 4 5

 

(the first “5” is the number of following array elements to write)

 

Regards,

 

Freddie

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of Silver
Sent: 08 July 2015 09:17
To: tech-talk
Subject: waveform record

 

hi, 

 

when I creat a testApp and a soft waveform record as following:


record(waveform, "twf")
{
    field(SCAN, "Passive")
    field(NELM, "40")
    field(FTVL, "SHORT")
}

if I use caput to write the value to the PV like this:

caput twf 1 2 3 4 5

Old : twf 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

New : twf 40 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 

seems the array wasn't written to the PV, why?

 

Thanks a lot in advance. 

 


Best wishes

Geyang 2015-07-08

 

 


References:
waveform record Silver

Navigate by Date:
Prev: waveform record Silver
Next: how NOT to update the record Tasaddaq Khan
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: waveform record Silver
Next: how NOT to update the record Tasaddaq Khan
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 ·