areaDetector / ADGenICam

areaDetector base class for GenICam cameras.
https://areadetector.github.io/areaDetector/ADGenICam/ADGenICam.html
8 stars 17 forks source link

BlackflyS USB3 51S5M_C camera: BFS_U3_51S5M with S/N 1828499 #8

Closed kgofron closed 4 years ago

kgofron commented 4 years ago

BlackflyS USB3 camera from NSLS2

MarkRivers commented 4 years ago

@kgofron it looks like the xml file you used is not actually a GenICam camera xml file, but perhaps an xml for a display system or something. It does not parse correctly, is 10 times smaller than other BlackFlyS xml files, and looks completely different from other GenICam XML files. This is the start of the file you committed:

<PGRControls PollingEnable="False" PollingFrequency="2000" DecimalPlaces="2" Debug="False">
   <Maps>
      <RepresentationTypeMap>
         <Rules>
            <Rule NodeName="GevCurrentIPAddress" Representation="IPV4Address"/>
            <Rule NodeName="GevCurrentDefaultGateway" Representation="IPV4Address"/>
            <Rule NodeName="GevPrimaryApplicationIPAddress" Representation="IPV4Address"/>
            <Rule NodeName="GevCurrentSubnetMask" Representation="IPV4Address"/>
            <Rule NodeName="GevPersistentIPAddress" Representation="IPV4Address"/>
            <Rule NodeName="GevPersistentSubnetMask" Representation="IPV4Address"/>
            <Rule NodeName="GevPersistentDefaultGateway" Representation="IPV4Address"/>
            <Rule NodeName="GevMACAddress" Representation="MACAddress"/>
                        <Rule NodeName="GevDeviceIPAddress" Representation="IPV4Address"/>
                        <Rule NodeName="GevDeviceSubnetMask" Representation="IPV4Address"/>
                        <Rule NodeName="GevDeviceMACAddress" Representation="MACAddress"/>
                        <Rule NodeName="GevInterfaceIPAddress" Representation="IPV4Address"/>
                        <Rule NodeName="GevInterfaceSubnetMask" Representation="IPV4Address"/>
                        <Rule NodeName="GevInterfaceMACAddress" Representation="MACAddress"/>
         </Rules>
      </RepresentationTypeMap>
      <ControlTypeMap>
         <Rules>
            <Rule NodeType="Float" Representation="Linear" ControlType="Slider"/>
            <Rule NodeType="Float" Representation="HexNumber" ControlType="Label"/>
            <Rule NodeType="Float" Representation="PureNumber" ControlType="Slider"/>
            <Rule NodeType="Integer" Representation="Linear" ControlType="Slider"/>
            <Rule NodeType="Integer" Representation="HexNumber" ControlType="EditBox"/>
            <Rule NodeType="Integer" Representation="PureNumber" ControlType="EditBox"/>
            <Rule NodeType="Integer" Representation="IPV4Address" ControlType="Label"/>
            <Rule NodeType="Integer" Representation="MACAddress" ControlType="Label"/>
            <Rule NodeType="Integer" Representation="Binary" ControlType="Label"/>
         </Rules>
      </ControlTypeMap>
   </Maps>

This is the start of the PGR_BlackflyS_13Y3M.xml file:

corvette:areaDetector/ADGenICam/xml>more PGR_BlackflyS_13Y3M.xml
<?xml version="1.0" encoding="UTF-8"?>
<RegisterDescription xmlns:xi="http://www.w3.org/2003/XInclude" ModelName="BFS_PGE_13Y3" MajorVersion="1" MinorVersion="0" SubMinorVers
ion="0" SchemaMajorVersion="1" SchemaMinorVersion="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.genicam.o
rg/GenApi/Version_1_0" VendorName="PointGreyResearch" StandardNameSpace="None" SchemaSubMinorVersion="1" ToolTip="Point Grey Research C
amera" ProductGuid="EE4B7E09-DA29-4956-A1EC-56226E31CF9C" VersionGuid="85400240-452F-43af-8CDD-4B721C1D261A" xsi:schemaLocation="http:/
/www.genicam.org/GenApi/Version_1_0 http://www.genicam.org/GenApi/GenApiSchema_Version_1_0.xsd"><Integer Name="SensorWidth" NameSpace="
Standard"><ToolTip>Effective width of the sensor in pixels.</ToolTip><Description>Effective width of the sensor in pixels.</Description
><DisplayName>Sensor Width</DisplayName><Visibility>Expert</Visibility><ImposedAccessMode>RO</ImposedAccessMode><Value>1280</Value>

Note that they look completely different. Please check your file and update your pull request.

kgofron commented 4 years ago

You are correct. It is a wrong file. I updated the file, but will double check tomorrow.