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  <20142015  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  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Does the record type lsi support a long string longer than 40 bytes?
From: "Mooney, Tim M." <[email protected]>
To: Yun Sangwon <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Mon, 15 Sep 2014 14:30:53 +0000
You have to append '$' to the PV name of a long string, so everybody knows to treat it as an array of characters.

Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


From: [email protected] [[email protected]] on behalf of Yun Sangwon [[email protected]]
Sent: Monday, September 15, 2014 8:55 AM
To: [email protected]; [email protected]
Subject: RE: Does the record type lsi support a long string longer than 40 bytes?

Dear Nick,

 

Thanks for your kind reply.

For your information, in my case the result of caput with –S option for a lso record is same as below:

$ caput -S my:lso 12345

Old : myt:lso                 

New : my:lso

 

$ caget -S my:lso

my:lso                 

 

Regards,

Sangwon

 

From: [email protected] [mailto:[email protected]]
Sent: 15 September 2014 14:52
To: Yun Sangwon; [email protected]
Subject: RE: Does the record type lsi support a long string longer than 40 bytes?

 

Hi Sangwon,

 

I think you need the –S option, not the –a option to caput. caput –h describes the –S option as:

 

  -S: Put string as an array of char (long string)

 

Cheers,

 

Nick Rees

Principal Software Engineer           Phone: +44 (0)1235-778430

Diamond Light Source                  Fax:   +44 (0)1235-446713

 

From: Yun Sangwon [mailto:[email protected]]
Sent: 15 September 2014 12:59
To: [email protected]
Subject: Does the record type lsi support a long string longer than 40 bytes?

 

Dear All,

 

I understand new record types such as printf, lsi and lso are added in EPICS v3.15.

So, I’m considering to use the record type lsi (long string input) to store a string value longer than 40 bytes.

But in my test case, it seems that maximum length supported by lsi is 40 bytes including ‘\0’ as the string record type.

 

$ caput my:lsiout 12345678901234567890123456789012345678901234567890

Old : my:lsiout              

New : my:lsiout               123456789012345678901234567890123456789

 

$ caput -a my:lsiout 3 1 2 3

Old : my:lsiout               

New : my:lsiout              

 

Does the record type lsi support a long string longer than 40 bytes?

If so, how can I read and write a long string value to a lsi record?

If not, could anyone let me know the difference between lsi and stringin and any suggestion for my purpose?

 

Thanks in advance.

Sangwon

 

 

-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 

 


Replies:
RE: Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon
References:
Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon
RE: Does the record type lsi support a long string longer than 40 bytes? nick.rees
RE: Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon

Navigate by Date:
Prev: RE: Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon
Next: Re: Sequencer 2.2.0 Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon
Next: RE: Does the record type lsi support a long string longer than 40 bytes? Yun Sangwon
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·