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