-

hey viewer, we're moving!

We are currently transitioning to a new web system, so we are not updating this wikisite anymore.

The public part of the new web system is available at http://www.ira.disco.unimib.it


Pylon: installation and usage

From Irawiki

Jump to: navigation, search

In this page is described how to install and use pylon software to acquire images from basler scout cameras

Contents

Download

First of all you have to download pylon files. From http://www.baslerweb.com/MV_Customer_Service_Downloads_pylon-15606.html choose the software version you need. We assume that you will be using a linux distribution so you will choose "pylon for Linux" 32 or 64 bit.

Anyway here you can find a list of useful files (note that this is an old version (2.1) while following the above link you can get the v2.3) Choose the one you need

Install

Follow the installation instructions in the INSTALL file, provided in the package.

Here we show the installation steps for the 64bit architecture only:

  • unpack the file you download
  • unpack the file pylon-bininst-<zz>.tar.gz you will find in the previously unpacked dir to /opt/pylon

config env variables

  • export PYLON_ROOT=/opt/pylon
  • export GENICAM_ROOT_V2_1=${PYLON_ROOT}/genicam
  • export LD_LIBRARY_PATH=${PYLON_ROOT}/lib64:${GENICAM_ROOT_V2_1}/bin/Linux64_x64:$LD_LIBRARY_PATH

note that unless you put the export lines (or the automatic script) in your .bashrc file you have to export in every new shell...

Automatic env configuration script

Inside the sample folder (in the downloaded file) you can find the script setpylonbuildenv.sh

To make all the necessary env config simply launch

. setpylonbuildenv.sh /opt/pylon

Connecting to camera network

To acquire images you first need to connect to the camera network.

There are only two plugs in the lab that are linked to the camera network: number 19 and 24, which are also marked with an X. Of course you need to connect to one of those plugs. You also need to configure a new wired network with the following ip address: 10.114.153.20.

If you are using two different network adapters you should follow these useful hints:

  • in the camera connection settings set the mac address of the adapter connected to the plug so that the other adapter won't try to use the camera connection
  • set a route so that the camera connection is only used for cameras (otherwise the internet connection will be slow)

IpConfigurator

IpConfigurator is a tool that let you set the ip address and the name of every camera connected to your network. It also shows the serial number and mac address of each camera. It is located into /opt/pylon/bin

Actually it is not necessary to make any modifications.

PylonViewerApp

With PylonViewerApp you can access the configuration and data of each camera in the network. You can acquire single images and streams, but you can only save single images; you can change some camera settings such as exposure time and so on. It is located into /opt/pylon/bin

Note that executing /opt/pylon/bin/PylonViewerApp you can get an error. Check the Troubleshooting section for further info

Troubleshooting

When you launch PylonViewerApp you can get the following error due to conflicting qt library versions

PylonViewerApp: symbol lookup error: /usr/lib/libQtNetwork.so.4: undefined symbol: _ZN14QObjectPribate15checkWindowRoleEv

To solve this do the following

cd /opt/pylon/bin
rm libQt*

for further info look http://www.baslerweb.com/faq/search/results_2927.html?term=symbol+lookup&category=*#5222

Personal tools