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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Replacement for dbGetPdbAddrFromLink ? |
From: | "Stubbs, Scott A." <[email protected]> |
To: | "Dunning, Michael" <[email protected]> |
Cc: | "Condamoor, Shantha" <[email protected]>, EPICS Tech-Talk <[email protected]> |
Date: | Tue, 8 Aug 2017 20:25:48 +0000 |
Hi, I would be interested in this as well. We have an IOC talking to an MKS RGA which also uses this macro:
/* Get the pointer to the record in INPB.
* Is this a valid pv? If so, then verify that data type is double, and check that it's a waveform.
*/
pAddr = dbGetPdbAddrFromLink(&psub->inpc);
if (!pAddr
|| (pAddr->field_type != DBF_DOUBLE) || (pAddr->no_elements
== 1))
return(ERROR);
/* Create an array of 2 pointers */
pdev = (intArrayOut_ts *)calloc(sizeof(intArrayOut_ts),1);
if (!pdev)
{
recGblRecordError(S_rec_outMem,(void
*)psub,"sub: init_record");
return(ERROR);
}
/* Set the private data information */
pwf = (waveformRecord *)pAddr->precord;
pdev->preadings = (double
*)pAddr->pfield;
/* ptr to data <DEVICE>:IVB */
pdev->pnord = &pwf->nord;
/* ptr to # of wf items */
pdev->nelem =
pAddr->no_elements;
/* max number of data elements in record */
Scott
|