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: epics4 |
From: | <[email protected]> |
To: | <[email protected]>, <[email protected]>, <[email protected]> |
Date: | Thu, 29 Sep 2016 12:59:33 +0000 |
Hi Anton, You must be using a very old version of EPICS V4. I think 4.3 was the last release to have that API, so if that’s the case you may have to look out for a few other changes (pva network protocol changed between
4.3. and 4.4). To create a pvRequest you just supply the request string – there’s no need to supply a requester. createRequest() simply takes the string and returns the corresponding PVStructure. Note since 4.3 CreateRequest has moved from pvAccess to pvData and the singleton instance getCreateRequest() has been replace by a static create(). So pvRequestP = getCreateRequest()->createRequest(request, requesterP); becomes pvRequestP = CreateRequest::create()->createRequest(request); If the createRequest was the only reason for creating the requesters then you won’t need them anymore. Note that createRequest throws std::logic_exceptions with helpful messages if something goes wrong. Hope that helps, Dave From: [email protected] [mailto:[email protected]]
On Behalf Of Mezger Anton Christian (PSI) Hi, In a previous version of EPICS4 I had to use the following code at initialization Requester::shared_pointer requesterP(new RequesterImpl("pvput")); Requester::shared_pointer requesterG(new RequesterImpl("pvget")); pvRequestG = getCreateRequest()->createRequest(request, requesterG); if(pvRequestG.get()==NULL) printf("failed to parse request string\n"); pvRequestP = getCreateRequest()->createRequest(request, requesterP); if(pvRequestP.get()==NULL) printf("failed to parse request string\n"); However in the latest version createRequest only takes one argument. How to do it now? Best regards Anton
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. |