The Basler acA640-100gm is a power over ethernet camera. It uses a power injector to supply power over an ethernet cable to the camera. Once I got past some initial IP difficulties, the camera worked fine out of the box.
You need to set some environment variables first, so the code knows where its libraries are located.
setenv PYLON_ROOT /opt/pylon
setenv GENICAM_ROOT_V1_1 /opt/pylon
setenv GENICAM_CACHE /cvs/cds/caltech/users/josephb/xml_cache
setenv LD_LIBRARY_PATH /opt/pylon/lib64:$LD_LIBRARY_PATH
I then run the /opt/pylon/bin/PylonViewerApp
Notes on IP:
Initially, you need to set the computer connecting to the camera to an ip in the 169.254.0.XXX range. I used 169.254.0.1 on megatron's eth1 ethernet connection. I also set mtu to 9000.
You can then run the IpConfigurator in /opt/pylon/bin/ to change the camera IP as needed. |