Hi Ralph,
Thanks for the prompt reply. However, just let me add, that appending $ at the end, represents the string in the form of an array containing ASCII values of the original characters in the string. I had to add the -S modifier to get what I desired.
caget mybigstring.VAL$ --> array of char (max EPICS_CA_MAX_ARRAY_BYTES - 1) caget -S mybigstring.VAL$ --> the full length string
Thanks and Regards,
Deeptarka
From: "Ralph Lange" < [email protected]> To: "EPICS Tech-Talk" < [email protected]> Sent: Thursday, January 15, 2015 7:03:35 PM Subject: Re: How to access bigstring using channel access Hi Deeptarka, Try appending a dollar sign to the PV name when connecting through Channel Access. The IOC takes that as a hint to represent a string field as an array of char, so that CA can transfer more chars than the fixed-size string would allow. caget mybigstring.VAL --> string (fix 39 chars) caget mybigstring.VAL$ --> array of char (max EPICS_CA_MAX_ARRAY_BYTES - 1)
HTH, ~Ralph
On 15/01/2015 07:56, Deeptarka Das/TVM/TCS wrote:
Hi all,
I would like to know if there is some way by which channel access can be used to put and get strings of size larger than 40. I do not wish to use waveform record nor do i wish to use pvaSrv to access PVs using pvAccess. Rather I would like to use the bigstring recordtype of EPICS V4 with channel access. Is there any way it is possible by maybe changing something in epics base?
-- Thanks and Regards, Deeptarka Das Mailto: [email protected]
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
- Replies:
- Re: How to access bigstring using channel access Ralph Lange
- References:
- Re: How to access bigstring using channel access Ralph Lange
- Navigate by Date:
- Prev:
Support for Mercury iTC Emma Shepherd
- Next:
RE: Alarm annunciation with ALH and other PC based systems ronaldo.mercado
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: How to access bigstring using channel access Ralph Lange
- Next:
Re: How to access bigstring using channel access Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|