Hi Bob,
I've modified the Prosilica driver to add the ability to open a camera by its IP addresss or IP DNS name, in addition to by its UniqueId.
I've tested this with cameras on the local subnet, and it works. It should also work for cameras on other subnets, but I'll let you test that.
I've committed my changes to the SVN repository:
https://subversion.xor.aps.anl.gov/synApps/areaDetector/trunk/
I've updated the release notes and the Prosilica driver documentation, both in the repository and on our Web site here:
http://cars9.uchicago.edu/software/epics/areaDetectorReleaseNotes.html
http://cars9.uchicago.edu/software/epics/prosilicaDoc.html
Cheers,
Mark
________________________________
From: Bob Gunion [mailto:[email protected]]
Sent: Thu 6/16/2011 7:13 PM
To: Mark Rivers
Cc: Robert Petkus; [email protected]
Subject: Re: AreaDetector: Prosilica camera on different subnet?
Mark,
Thanks for the pointer. I got it to work, but I had to download the latest version of the PvApi library. Version 1.18 of PvApi is included in areaDetector 1.6, but PvCameraOpenByAddr didn't work. When I tried version 1.24 it worked just fine. Still testing - I haven't tried retrieving an image yet - so I'll wait until I have a little more confidence before sending you my (fairly minimal) changes.
Thanks again,
Bob
On Jun 15, 2011, at 6:09 PM, Mark Rivers wrote:
> Bob,
>
> If you change the configuration routine and constructor from
>
> int prosilicaConfig(char *portName,
> int uniqueId,
> int maxBuffers, size_t maxMemory,
> int priority, int stackSize)
>
> to
>
> int prosilicaConfig(char *portName,
> const char* address,
> int maxBuffers, size_t maxMemory,
> int priority, int stackSize)
>
> Then you can test "address" to see if it is an integer. If so, it is a UniqueID, if not it is an IP address or IP name. Then call the appropriate PvCameraOpen function. The nice thing about making this change is that it is backwards compatible with existing startup scripts, since the iocsh can pass a unique ID as an integer or a string without requiring quotes.
>
> I'm on travel or I would try it myself.
>
> Mark
- Replies:
- Re: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- References:
- AreaDetector: Prosilica camera on different subnet? Bob Gunion
- Re: AreaDetector: Prosilica camera on different subnet? Robert Petkus
- RE: AreaDetector: Prosilica camera on different subnet? Mark Rivers
- Re: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- RE: AreaDetector: Prosilica camera on different subnet? Mark Rivers
- Re: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- Navigate by Date:
- Prev:
Re: SOAP device communication. Peter Milne
- Next:
Re: SOAP device communication. Dirk Zimoch
- 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: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- Next:
Re: AreaDetector: Prosilica camera on different subnet? Bob Gunion
- 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
|