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  2010  2011  2012  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: how to put value to other record in subroutine record
From: "Steiner, Mathias" <[email protected]>
To: marco_hair <[email protected]>, tech-talk <[email protected]>
Date: Wed, 16 Oct 2013 13:04:43 +0000
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  <20132014  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·