Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.
srgblnch edited this page Nov 26, 2015 · 1 revision

Using python-pylon

Once the module has been Build and the PYTHONPATH has the directory where the pylon.so is, it can be imported from a python console or a python script.

>>> import pylon
>>> factory = pylon.Factory()
>>> factory.nCameras
    3
>>> factory.cameraList
    [2NNNNNN0 (scA1000-30gm), 2NNNNNN1 (acA1300-30gc), 2NNNNNN3 (acA1300-30gc)]
>>> factory.cameraModels
    ['scA1000-30gm', 'acA1300-30gc']
>>> camera = factory.getCameraBySerialNumber(2NNNNNN1)
>>> camera.ipAddress
    'NNN.NNN.NNN.NNN'
>>> camera.isOpen
    False
>>> camera.Open()
>>> camera.isOpen
    True

Clone this wiki locally