Installing pylon and the Framegrabber SDK in Parallel#
This topic describes how pylon and the Framegrabber SDK are linked and can be used in parallel in different scenarios.
Runtime Rules#
pylon, the full Framegrabber SDK, and GenTL consumers such as HALCON can share one computer. Two behaviors of the Framegrabber SDK runtime determine whether that setup works:
- Each frame grabber can be used by only one process at a time. It doesn't matter whether a process reaches the frame grabber through ProducerCL.cti, ProducerCXP.cti, or the Camera Link Serial route. A second process that opens the
Interfaceof a frame grabber that is already in use fails with an error. - Within one process, all Framegrabber SDK components must come from the same installation. During initialization, the producer checks whether internal modules such as fglib5.dll, siso_hal.dll, or haprt.dll are already loaded from a different directory. If they are, the producer reports an error and doesn't run with mixed versions. For this reason, copying individual .cti or .dll files from one installation to another doesn't work.
For a reliable setup, each process loads its producer and runtime from a single installation, and each frame grabber has one intended user.
Support for CoaXPress and VisualApplets in pylon#
When you install support for CoaXPress in pylon, the pylon installer copies a small subset of the Framegrabber SDK to the <pylon-dir>/Runtime/x64/producerCXP subfolder (and the 32-bit counterpart). This subset contains only the files necessary to use the GenTL producer of the Framegrabber SDK and to support the frame grabbers of the CXP-12 acquisition cards (CXP-12 Interface Card, imaWorx CXP-12 Quad, imaFlex CXP-12 Quad and Penta). Many of the libraries in the bin folder of a full Framegrabber SDK installation are used by the pylon installation.
For pylon to find and use the GenTL producer, the environment variable GENICAM_GENTL64_PATH (or GENICAM_GENTL32_PATH for 32-bit applications) must be set. When you install pylon with support for CoaXPress, pylon adds <pylon-dir>/Runtime/x64/producerCXP/bin to GENICAM_GENTL64_PATH. Existing entries are kept. On a computer that also has a full Framegrabber SDK installation, the variable then lists two Basler producer directories. The BASLER_FG_SDK_DIR environment variable identifies the full installation.
Consumers then find the CXP transport twice, because they enumerate every directory on the path. One copy comes from pylon, and the other comes from the full installation. The same frame grabber can appear through both producers, and it is unclear which runtime a process uses. A process that loads components from both installations fails the version check in Runtime Rules. Keep only the path entry of the installation that serves GenTL consumers. For more information, see Recommended Configurations.
The support for the Basler frame grabbers in pylon is limited and provides only the features provided by the acquisition applets.
If you want to use custom applets designed with Visual Applets in pylon, the recommended way is to install pylon without support for CoaXPress and additionally install the version of the Framegrabber SDK that supports the frame grabber you are using. The installer for the Framegrabber SDK will modify the variable GENICAM_GENTL64_PATH and set it to <Framegrabber SDK installation directory>/bin. If pylon is already installed with support for CoaXPress, make sure that GENICAM_GENTL64_PATH is set to <Framegrabber SDK installation directory>/bin, and not to <pylon-dir>/Runtime/x64/producerCXP/bin. This way, pylon finds and uses the GenTL producer that is delivered with the Framegrabber SDK to support CoaXPress.
See Using the GenTL Interface for general information about the GenTL Interface. The sections Design Considerations and Runtime Configuration under Using VisualApplets Applets with GenTL contain important information for VisualApplets users.
Support for Basler Camera Link Cameras#
When you use both Basler Camera Link cameras and frame grabbers, pylon works as a configuration tool for the camera, and the Framegrabber SDK is used for image acquisition. The link between pylon and the Framegrabber SDK is the Camera Link Serial Interface Library clsersis.
pylon doesn't use GenTL for Camera Link. When clsersis.dll is present in the CLSERIALPATH directory, pylon loads that library and acts as a standalone CLProtocol client. It loads BaslerClProtocol.dll and obtains the serial connection through CLAllSerial. There is no explicit setting for this behavior. For more information about the serial connection, see How the Serial Connection Is Made. A frame grabber that pylon initialized in this way can't be opened through ProducerCL at the same time. To prevent this access, move clsersis.dll out of the CLSERIALPATH directory. For more information, see Recommended Configurations.
Known issues in both products can complicate this setup. Basler recommends that you install pylon version 7.5 and Framegrabber SDK version 5.11.2 or newer. This combination of versions has been tested and verified.
Recommended Configurations#
| Goal | Configuration |
|---|---|
| GenTL consumer with the full Framegrabber SDK | Set GENICAM_GENTL64_PATH to CLSERIALPATH directory. No other application can then initialize the frame grabbers. You can reverse this change. Keep BaslerClProtocol.dll. ProducerCL uses that library with its internal serial interface. |
| pylon CXP, no full Framegrabber SDK | Use the pylon package as installed. Set GENICAM_GENTL64_PATH to |
| pylon CXP, full Framegrabber SDK installed | Point GENICAM_GENTL64_PATH to the bin directory of the full Framegrabber SDK installation, not to the reduced package. The producer, the runtime, and the applets then come from one installation. |
| pylon with Camera Link cameras | Keep clsersis.dll in the CLSERIALPATH directory. Don't open a frame grabber through ProducerCL while pylon is using that frame grabber. |
A process reads environment variables when it starts. After you change the variables, and after every installation of pylon or the Framegrabber SDK, close all frame grabber applications. Verify GENICAM_GENTL64_PATH. Then start the intended consumer again.