Silver wrote:
>> if I want to change another record's value in a subroutine record's process function, can I call dbPutField() or other functions? can anyone show me some examples?
I have moved all of my SUB records to ASUB, so I don't have anything I use at the moment.
But here's an old snippet where I had to send a value to the .PROC field of an output waveform record so it would display properly in EDM.
This is just a starting point for you to do some testing... it's been so long I might be missing something here...
Cheers -m
static long copyopt(psub)
struct subRecord *psub;
{
[..]
/* code that creates a long string and shoves it into a waveform record .. */
kk = 1;
dbPutLink(&psub->inpd,DBR_SHORT,&kk,1);
} /* end of copyopt(psub) */
where psub-> inpd refers to
[..]
field(INPD, "some_WF_record.PROC")
[..]
- Replies:
- Re: how to put value to other record in subroutine record Andrew Johnson
- Navigate by Date:
- Prev:
RE: asynError IOC message Mark Rivers
- Next:
Connecting EDM screens to multiple soft IOCs on the same machine on a separate subnet. Alan Greer
- 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 put value to other record in subroutine record Martin L. Smith
- Next:
Re: how to put value to other record in subroutine record Andrew Johnson
- 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
|