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  2013  2014  <20152016  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  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: aravisGigE areaDetector with Basler camera
From: Pete Jemian <[email protected]>
To: <[email protected]>, <[email protected]>, <[email protected]>
Date: Thu, 4 Jun 2015 08:37:56 -0500
Basler should be informed that this file, with a .xml extension, is not "well-formed". The first line "Basler-21630837" certainly breaks the XML API.

On 06/04/2015 08:35 AM, [email protected] wrote:
It does indeed expect this. Aravis also started printing the camera name at the top of the genicam file which is not very helpful, so you should remove the line:

Basler-21630837

and replace it with:

<?xml version="1.0" encoding="utf-8"?>

I should really fix the script to be robust to this...

Thanks,
Tom Cobb


-----Original Message-----
From: [email protected] [mailto:tech-talk-
[email protected]] On Behalf Of Pete Jemian
Sent: 04 June 2015 14:30
To: [email protected]
Subject: Re: aravisGigE areaDetector with Basler camera

The minidom XML support in aravisGigEApp/src/makeDbAndEdl.py fails on
parsing the very first part of the XML file.

Can it be that the XML file does not start with a declaration line?
Does the support file expect this?  Such as:


<?xml version="1.0" encoding="UTF-8"?>



On 06/04/2015 08:25 AM, Specht, Eliot D. wrote:
I'm trying to use aravisGigE to drive a Basler acA1920 ethernet camera
with areaDetector. I'm following the instructions at
https://github.com/areaDetector/aravisGigE to add a new camera. As
detailed below, I can get an XML file from the camera, but
makeDbAndEdl.py is not parsing this file. The XML file is large, but the
failure seems to be right at the beginning. Am I doing something stupid,
or is the Basler camera incompatible with aravisGigE?

FIRST TWO LINES OF XML FILE:

Basler-21630837

<RegisterDescription
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://www.genicam.org/GenApi/Version_1_0";
xsi:schemaLocation="http://www.genicam.org/GenApi/Version_1_0
http://www.genicam.org/GenApi/GenApiSchema_Version_1_0.xsd";
MajorVersion="3" MinorVersion="7" ModelName="GigECamera"
ProductGuid="1F3C6A72-7842-4edd-9130-E2E90A2058BA"
SchemaMajorVersion="1" SchemaMinorVersion="0"
SchemaSubMinorVersion="1"
StandardNameSpace="GEV" SubMinorVersion="0" ToolTip="Basler generic
GigEVision camera interface" VendorName="Basler"
VersionGuid="6512A424-1B05-4C68-99D6-91F0E31857CD">

    <Category Name="Root" NameSpace="Standard">

ATTEMPT TO ADD NEW CAMERA:

[root@video aravisGigE]#
Basler_acA1920.xmltoolbin/linux-x86_64/arv-tool-0.4m

Basler-21630837

[root@video aravisGigE]# bin/linux-x86_64/arv-tool-0.4 -n
"Basler-21630837" genicam > Basler_acA1920.xml

[root@video aravisGigE]# aravisGigEApp/src/makeDbAndEdl.py
Basler_acA1920.xml Basler_acA

Traceback (most recent call last):

    File "aravisGigEApp/src/makeDbAndEdl.py", line 22, in <module>

      xml_root = parse(args[0])

    File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1921, in parse

      return expatbuilder.parse(file)

    File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 924, in parse

      result = builder.parseFile(fp)

    File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 207, in
parseFile

      parser.Parse(buffer, 0)

xml.parsers.expat.ExpatError: syntax error: line 1, column 0

[root@video aravisGigE]#

Eliot Specht                        Voice: (865)574-7682

Oak Ridge National Laboratory       FAX:   (865)574-4913

P.O. Box 2008, MS 6064

Oak Ridge, TN 37831-6064


--
----------------------------------------------------------
 Pete R. Jemian, Ph.D.                <[email protected]>
 Beam line Controls and Data Acquisition, Group Leader
 Advanced Photon Source,   Argonne National Laboratory
 Argonne, IL  60439                   630 - 252 - 3189
-----------------------------------------------------------
    Education is the one thing for which people
       are willing to pay yet not receive.
-----------------------------------------------------------


Replies:
RE: aravisGigE areaDetector with Basler camera tom.cobb
References:
aravisGigE areaDetector with Basler camera Specht, Eliot D.
Re: aravisGigE areaDetector with Basler camera Pete Jemian
RE: aravisGigE areaDetector with Basler camera tom.cobb

Navigate by Date:
Prev: RE: Draft requirements document for enhanced EPICS motor support Mooney, Tim M.
Next: RE: aravisGigE areaDetector with Basler camera tom.cobb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: aravisGigE areaDetector with Basler camera tom.cobb
Next: RE: aravisGigE areaDetector with Basler camera tom.cobb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·