コンテンツにスキップ

Copy DeploymentによるFramegrabber SDKのインストール#

コピーデプロイメントでは、Framegrabber SDKのインストールから個々のコンポーネントを任意のディレクトリにコピーします。これにより、ユーザーアプリケーションとともに配布するパッケージを制御または削減できます。

コピーを介して Framegrabber SDK をデプロイする場合、Framegrabber SDKのすべての機能とツールを使用できるわけではないことに注意してください。

前提条件#

  1. Framegrabber SDKをインストールするには、管理者権限を持つPCが必要です。このPCは、以下の手順ではソースPCと呼ばれます。
  2. BaslerウェブサイトからBasler Framegrabber SDKをダウンロードし、ソースPCにインストールします。
  3. ソースPC上で Framegrabber SDK ベースのアプリケーションを実行しない場合は、インストール時にすべてのオプションの選択を解除できます。これにより、ドライバーのインストールや、環境変数またはレジストリの変更を回避できます。
  4. コピーデプロイメント用のファイルを準備しているだけなので、Framegrabber SDKのインストール後にソースPCの再起動を求めるプロンプトは無視してかまいません。
  5. The installation folder into which you have installed the Framegrabber SDK, is called <SDKRoot> in the following instructions.
  6. MicrosoftからVisual Studio 2015、2017、2019、または2022用のMSVC再頒布可能パッケージをダウンロードし、ソースPCにインストールします。
  7. コピーデプロイメント用のファイルを準備しているだけなので、Visual Code のインストール後にソースPCの再起動を求めるプロンプトは無視してかまいません。
  8. コピーデプロイメント用の以下のフォルダー階層をソースPC上に作成します。

    FramegrabberSDK
    ├───bin
    ├───dll
    ├───drivers
    └───lib
    

This folder structure is called SDK package in the following instructions. Its root folder FramegrabberSDK is called <packageRoot>.

パッケージの作成#

パッケージの主要部分の作成#

このセクションでは、Framegrabber SDKの主要な部分、つまり使用するフレームグラバーに関係なく常時必要となる部分をコピーする手順について説明します。

  1. Copy the following files from <SDKRoot> into the corresponding folder inside <packageRoot>:

    <SDKRoot>
    └───bin
        ├───fglib5.dll
        ├───siso_hal.dll
        ├───siso_hw.dll
        ├───haprt.dll
        ├───iolibrt.dll
        └───logging-context.dll
    
  2. 次の場所からファイルをコピーします: C:\Windows\system32 を \bin:

    Windows
    └───system32
        ├───vcruntime140.dll
        ├───vcruntime140_1.dll
        └───msvcp140.dll
    

フレームグラバーのサポートの追加#

mE5 marathon#

  1. Copy the following folders and files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    ├───bin
    |   └───GrabberFirmwareFlasher.exe
    ├───drivers
    |   └───me5
    │       ├───me5.cat
    │       ├───me5.inf
    │       ├───me5.sys
    │       └───WdfCoInstaller01009.dll
    └───lib
        └───siso_hw_me5.dll
    
  2. Copy the applet folders and files for your application from <SDKRoot>\dll\<board-type> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───dll
        ├───mE5-MA-ACL
        ├───mE5-MA-ACX-DP
        ├───mE5-MA-ACX-QP
        ├───mE5-MA-ACX-SP
        ├───mE5-MA-VCL
        ├───mE5-MA-VCLx
        └───mE5-MA-VCX-QP
    
  3. Optionally: Copy your applets designed with VisualApplets to <packageRoot>\Hardware Applets<board-type>.

imaFlex / imaWorx / インターフェースカード#

  1. Copy the following folders and files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    ├───bin
    |   └───GrabberFirmwareUpdater.exe
    ├───drivers
    |   └───me6
    │       ├───basler_ic.cat
    │       ├───basler_ic.inf
    │       ├───basler_ic.sys
    │       └───WdfCoInstaller01009.dll
    └───lib
        └───siso_hw_me6.dll
    
  2. アプリケーションのアプレットフォルダとファイルを次の場所からコピーします: \dll<board-type> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───dll
        ├───CXP12-IC-1C
        │   ├───S1.1
        │   └───S1.2
        ├───CXP12-IC-2C
        │   └───S1.0
        ├───CXP12-IC-4C
        │   └───S1.0
        ├───iF-CXP12-P
        │   └───S1.1
        ├───iF-CXP12-Q
        │   └───S2.0
        └───iW-CXP12-Q
            └───S1.0
    
  3. Optionally: Copy your applets designed with VisualApplets to <packageRoot>\Hardware Applets<board-type>

カメラプロトコルのサポートの追加#

CoaXPress#

If you use a CoaXPress frame grabber in your project, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───GCBase_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───GenApi_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───Log_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───MathParser_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───NodeMapData_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───siso_genicam.dll
        └───XmlParser_MD_VC142_v3_5_Basler_pylon_v1.dll

If you use a Camera Link frame grabber in your project, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───clsersis.dll
        └───clshell.exe

GenTL#

  1. To use the GenTL producer, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───GCBase_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───GenApi_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───Log_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───MathParser_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───NodeMapData_MD_VC142_v3_5_Basler_pylon_v1.dll
        └───XmlParser_MD_VC142_v3_5_Basler_pylon_v1.dll
    
  2. To use the CXP GenTL producer, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───ProducerCXP.cti
        └───siso_genicam.dll
    
  3. To use the Camera Link GenTL producer, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───BaslerCLProtocol.dll
        ├───CLAllSerial_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───CLProtocol_MD_VC142_v3_5_Basler_pylon_v1.dll
        ├───clsercom.dll
        ├───clsersis.dll
        ├───GenCP_MD_VC142_v3_5_Basler_pylon_v1.dll
        └───ProducerCL.cti
    

ツールの追加#

gpioTool#

If you want to use the gpioTool in your project, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

    <SDKRoot>
    └───bin
        ├───siso_auxport.dll
        └───gpioTool.exe

ロギング#

To get logging output from a running Framegrabber SDK application, e.g. in log files or by attaching the pylon Event Logger, copy the following files from <SDKRoot> to the corresponding folders in <packageRoot>:

<SDKRoot>
└───bin
    ├───common-logging-dispatcher.dll
    ├───common-logging-log4cpp.dll
    ├───BaslerFgSdkLogging.properties
    ├───GCBase_MD_VC142_v3_5_Basler_pylon_v1.dll
    ├───Log_MD_VC142_v3_5_Basler_pylon_v1.dll
    └───log4cpp_MD_VC142_v3_5_Basler_pylon_v1.dll

最後の2つのライブラリについては、デプロイするFramegrabber SDKのバージョンによって、バージョンサフィックス(ここでは_v1)が異なる場合や省略されている場合があることに注意してください。

ロギングの設定方法の詳細については、Log Message Systemを参照してください。

Cognex VisionPro#

BaslerフレームグラバーでCognex VisionProを使用するには、次の手順に従います。

  1. Framegrabber Runtime 5.7をダウンロードし、ソースPCにインストールします。
  2. インストーラーを実行するときは、必ず次のオプションを選択またはクリアしてください。
    • コンポーネントの選択(Select Components)ダイアログで、Cognex Adapterを選択します。
    • ペインの Select Additional Tasks ダイアログ:
      • デバイスドライバの更新(Update Device Drivers)および環境変数の更新(Update Environment Variables)の選択を解除します。
    • レジストリが変更されないことを確認します:
      • [Select Start Menu Folder]ダイアログで、[Don't create a start menu folder]を選択します。
      • [Select Additional Tasks]ダイアログで、[Desktop icon]、[Activate Virtual COM Port]、および[Always Run COMWrapper Autorun at System Start]のチェックを外します。
  3. Copy the file SisoCognexAdapter.dll from the bin folder of the Runtime 5.7 installation to <packageRoot>\bin.

パッケージのデプロイ#

必須コンポーネントのデプロイ#

コピーしたバージョンのFramegrabber SDKをターゲットPCに配備するには:

  1. SDKパッケージをターゲットPCにコピーします。
  2. Framegrabber SDKのドライバーをインストールします。
  3. 環境変数を設定します。 BASLER_FG_SDK_DIR to the full path of the <packageRoot> folder.
  4. SDKパッケージの bin フォルダーを PATH 環境変数。

Cognex VisionPro Adapterのデプロイ#

ターゲットPCでCognex VisionPro Adapterを使用するには、Cognex VisionPro Adapterのマニュアルの「Installing the Adapter Manually」の章に従ってください。