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

Subject: Re: Long string ...
From: [email protected]
To: [email protected]
Cc: [email protected]
Date: Mon, 27 Sep 2010 12:17:55 -0700
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

epics2@cr1com1 $ caput DMC2183:4:SO TP
Old : DMC2183:4:SO                   \377P
New : DMC2183:4:SO                   TP

epics2@cr1com1 $ caput DMC2183:4:SO.VAL$ TP 
Old : 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
CA.Client.Exception...............................................
    Warning: "Channel write request failed"
    Context: "op=1, channel=DMC2183:4:SO.VAL$, type=DBR_STRING, count=1, ctx="DMC2183:4:SO""
    Source File: ../oldChannelNotify.cpp line 159
    Current Time: Mon Sep 27 2010 11:30:26.479313091
..................................................................
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.

--
E


On 21:18 Fri 24 Sep     , Pete R. Jemian wrote:
> caput myStringout.VAL$
>
> Remember, .VAL is the default field if a field is not specified.
>
> On 9/24/2010 9:14 PM, [email protected] wrote:
>> I just read the following:
>> The IOC can now make long string fields accessible via CA
>>   â Enabled by appending â$â to the field part of the PV name
>>       â e.g. record.NAME$
>>   â The â$â is a Field Modifier which changes the reported type of the PV
>>     from DBR_STRING to an array of DBR_CHAR
>>   â The â$â suffix only works on string and link fields
>>
>> What does that mean?
>> I renamed my PV 'myStringout$':
>> caput myStringout$ "011234567890123456789012345678901234567890..."
>> caput myStringout$.NAME$ "..."
>>
>> doesn't work...
>>
>> Any idea?
>>

-- 
Emmanuel

Replies:
Re: Long string ... Andrew Johnson
Re: Long string ... Ralph Lange
References:
Long string ... emmanuel_mayssat
Re: Long string ... Pete R. Jemian

Navigate by Date:
Prev: Re: always more inputs in gensub/asub emmanuel_mayssat
Next: Re: Long string ... Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Long string ... Pete R. Jemian
Next: Re: Long string ... Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 27 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·