Experimental Physics and Industrial Control System
|
Hi Emmanuel,
On 27.09.2010 15:17, [email protected] wrote:
Pete,
That doesn't seem to work either (at least with a stringout record)
epics2@cr1com1 $ caput DMC2183:4:SO.VAL$ "111345678901234567890123456789012345678901234567890"
Old : DMC2183:4:SO.VAL$ 40 84 80 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 : DMC2183:4:SO.VAL$ 40 -1 80 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
[...]
I am not sure how to read this, but the number 40 probably means that the stringout is limited to 40 chars.
As Nick already pointed out in his mail,
On 27.09.2010 04:43, [email protected] wrote:
* You need to be putting the data into a record field that is large
enough to take the data. Hence, the stringOut record is still limited by
the 40 character hard size of the field definition. If you are using
stream device you can use a waveform record with a FTVL of CHAR or
UCHAR. You can also use the asynRecord.
Let me rephrase that:
Even with the '$' long string modifier that the database understands in
3.14.11, you will not be able to write more that 40 characters into a
field that is only 40 characters long.
If your record has a string field that holds more than 40 characters or
is an array of type CHAR with more than 40 elements (like the NAME field
of all records, or the data fields of a properly configured waveform or
asynRecord), you can use the '$' notation to read and write long
strings. (Andrews remarks apply.)
Cheers,
Ralph
- References:
- Long string ... emmanuel_mayssat
- Re: Long string ... Pete R. Jemian
- Re: Long string ... emmanuel_mayssat
- Navigate by Date:
- Prev:
Re: Long string ... Andrew Johnson
- Next:
RE: Soft IOCs and Port Numbers Jeff Hill
- 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
2025
- Navigate by Thread:
- Prev:
Re: Long string ... Andrew Johnson
- Next:
always more inputs in gensub/asub emmanuel_mayssat
- 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
2025
|
ANJ, 27 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
·
Download
·
Search
·
IRMIS
·
Talk
·
Documents
·
Links
·
Licensing
·
|