Stephanie,
Thanks for the reply!
My origional attempt at getting strings to work were with aitEnumFixedString.
My memory is foggy as to why I wasn't able to get it to work then--but I didn't
get Fixed Strings to work either. I remember finally settling on aitEnumString
because I was able to Put into the PV and get the put value into my code. Also,
once Put, other clients could Get without problem.
What I need to do now is have my server change what a client Gets based on what
the server application is doing. I can see the appropriate string in the scan
method for the PV, but I can't copy it into the smartGDDPointer so clients can
see it properly. I really don't care if the PV is a aitEnumString or a
aitEnumFixedString--I just want it to be a string. If you, or anyone else, has
a small snippet of code from the scan method which shows how to put a string
into a smartGDDPointer, I'd be a very happy man!
Thanks again!
Brian Tieman
APS
[email protected]
[email protected] wrote:
> Hi Brian -
>
> >I can declare a PV as type aitEnumString of length 1 and my defined
> >callback routine will get the proper "Put" string, however, I can not
> >get the "Scan" method to take a string from my process and display it in
> >the served PV. This would be handy for reporting error strings, for
> >instance.
>
> In my PCAS, I use only aitEnumFixedString (and make sure I allocate enough
> room even if I don't need it) which works fine. Luckily, most strings in
> my application are 40 chars or less - the few oddball strings that are more,
> I convert to unsigned byte arrays and let clients deal with them special
> if they care (nobody's tried to connect to these few channels so nobody's
> complained).
>
> I'll be interested to know if you get aitEnumString to work. Thanks,
>
> Stephanie Allison
- References:
- Re: String PVs and the Portable CA Server. saa
- Navigate by Date:
- Prev:
RE: channel access time response Frank Lenkszus
- Next:
Re: String PVs and the Portable CA Server. saa
- 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: String PVs and the Portable CA Server. saa
- Next:
RE: String PVs and the Portable CA Server. Peregrine McGehee
- 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
|