Hi Hinko,
On 2012-09-17 Hinko Kocevar wrote:
>
> If I understand the use of aSub correctly, it does not need allow DTYP
> being set. Since I can't bind any device to it, I was hoping that INPx
> field(s) might be set to point to INST_IO based link type, something like :
Sorry, I didn't realize you were using the waveform for I/O as well; in that
case you probably still need the waveform record.
> @param(PARAM1=abc PARAM2=123)
>
> but that does not seem to work as expected. The problem I see when
> trying to get link value (this is from init() at IOC startup):
>
> rec->inpa.value.instio.string ==>> '@param(PARAM1=abc'
>
> ONLY half of string.. where is the other half?
You can't do that. The code must look at the inpa.type field before examining
any of the union members such as inpa.value.instio; the parser does *not* look
at the syntax of the string to work out what link type to store. In this case
you'll find that the link has been made a CA link (CA_LINK from link.h) which
is why the string stops at the first space.
You'll have to read in the array from the waveform using an INP link, process
it, then output it again using an OUT link.
Sorry for the misdirection, hope this helps.
- Andrew
--
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte
- Replies:
- Re: waveform changes using subArray Hinko Kocevar
- References:
- Re: waveform changes using subArray Tim Mooney
- Re: waveform changes using subArray Andrew Johnson
- Re: waveform changes using subArray Hinko Kocevar
- Navigate by Date:
- Prev:
Re: waveform changes using subArray Hinko Kocevar
- Next:
Re: waveform changes using subArray Rod Nussbaumer
- 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: waveform changes using subArray Hinko Kocevar
- Next:
Re: waveform changes using subArray Hinko Kocevar
- 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
|