安装Framegrabber SDK 通过复制部署#
请注意,如果通过复制部署 Framegrabber SDK,则无法使用 Framegrabber SDK 的所有功能和工具。
先决条件#
- 您需要一台拥有管理员权限的电脑才能安装该软件。 Framegrabber SDK在以下说明中,这台电脑被称为源电脑。
- 下载 Basler Framegrabber SDK 从Basler 网站下载并安装到源电脑上。
- 如果您不想在源 PC 上运行基于 Framegrabber SDK 的应用,则可以在安装过程中取消勾选所有选项。这样可以避免安装驱动程序,并防止修改环境变量或注册表。
- 由于您只是在准备用于复制部署的文件,因此您可以忽略安装 Framegrabber SDK 后重启源 PC 的提示。
- The installation folder into which you have installed the Framegrabber SDK, is called <SDKRoot> in the following instructions.
- 从微软下载适用于 Visual Studio 2015、2017、2019 或 2022 的 MSVC 可再发行组件包,并将其安装到源计算机上。
- 由于您只是在准备用于复制部署的文件,因此您可以忽略安装 Visual Code 后重启源 PC 的提示。
-
在源 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 核心部分(即无论使用哪款采集卡都始终需要的部分)的说明。
-
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 -
从以下位置复制以下文件 C:\ Windows \system32 设为
\bin :Windows └───system32 ├───vcruntime140.dll ├───vcruntime140_1.dll └───msvcp140.dll
增加对帧捕获器的支持#
mE5 马拉松#
-
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 -
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 -
Optionally: Copy your applets designed with VisualApplets to <packageRoot>\Hardware Applets<board-type>.
imaFlex / imaWorx / 接口卡#
-
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 -
从以下位置复制应用程序的小程序文件夹和文件:
\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 -
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
Camera Link#
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#
-
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 -
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 -
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
请注意,对于最后两个库,版本后缀(此处为: _v1 )可能会有所不同或缺失,具体取决于库的版本。 Framegrabber SDK 待部署。
有关如何配置日志记录的详细信息,请参阅“日志消息系统” 。
康耐视 VisionPro#
要在 Cognex VisionPro 中使用 Basler 采集卡,请遵循以下说明:
- 下载Framegrabber Runtime 5.7并将其安装到源 PC 上。
- 运行安装程序时,请确保选择或清除以下选项:
- 在“选择组件”对话框中,选择Cognex Adapter 。
- 在 Select Additional Tasks 对话:
- 清除更新设备驱动程序并更新环境变量。
- 确保注册表未被修改:
- 在“选择开始菜单文件夹”对话框中,选择“不创建开始菜单文件夹” 。
- 在“选择其他任务”对话框中,清除“桌面图标” 、 “激活虚拟 COM 端口”和“始终在系统启动时运行 COMWrapper Autorun” 。
- Copy the file SisoCognexAdapter.dll from the bin folder of the Runtime 5.7 installation to <packageRoot>\bin.
部署软件包#
部署基本要素#
要将 Framegrabber SDK 的复制版本部署到目标 PC:
- 将 SDK 软件包复制到目标 PC。
- 安装 Framegrabber SDK 的驱动程序。
- 设置环境变量
BASLER_FG_SDK_DIRto the full path of the <packageRoot> folder. - 添加 bin 将 SDK 包的文件夹复制到
PATH环境变量中。
部署Cognex VisionPro Adapter#
使用Cognex VisionPro Adapter 在目标电脑上,按照“手动安装适配器”章节进行操作。 Cognex VisionPro Adapter 文档。