Skip to content

Commit

Permalink
Update CXP-12 sample code and pypylon readme. Fixed missing vTools on…
Browse files Browse the repository at this point in the history
… windows wheels.
  • Loading branch information
bjoernrennfanz committed Jul 2, 2024
1 parent 5bb5c39 commit 804ca0e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
run: |
cd pylon-installer
ren Basler-pylon-*.exe Basler-pylon.exe
$process = Start-Process Basler-pylon.exe -Wait -ArgumentList '/quiet /install=GigE_Runtime;USB_Runtime;Camera_Link_Runtime;CoaXPress_Runtime;GenTL_Consumer_Support;CamEmu_Support;SDKs;DataProcessing_SDK' -PassThru
$process = Start-Process Basler-pylon.exe -Wait -ArgumentList '/quiet /install=GigE_Runtime;USB_Runtime;Camera_Link_Runtime;GenTL_Consumer_Support;CamEmu_Support;SDKs;DataProcessing_SDK;DataProcessing_vTools' -PassThru
Write-Host "Process finished with return code:" $process.ExitCode
- name: Build wheels
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ For instance:
* pylon vTools are supported on pylon 7.0.0 and newer.
* pylon vTools are supported on pypylon 3.0 and newer only on Windows 10/11 64 bit, Linux x86_64 and Linux aarch64.
* For pylon vTools that require a license refer to: https://www.baslerweb.com/en/software/pylon-vtools/
* CXP-12: To use CXP with pypylon >= 4.0.0 you need to install the CXP GenTL producer and drivers using the pylon Camera Software Suite setup.


## Binary Installation
The easiest way to get pypylon is to install a prebuild wheel.
Expand Down
6 changes: 6 additions & 0 deletions samples/ifacenodemap_pocxp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
# Here we are going to use the interface node map of a Basler CXP interface
# card to toggle 'Power Over CoaXPress' (PoCXP) between 'Auto' and 'Off'.

from os import environ
from pypylon import pylon

# First check if GENICAM_GENTL64_PATH environment variable is set.
# This is set automatically by the Basler setup when installing pylon CXP
if environ.get('GENICAM_GENTL64_PATH') is None:
raise RuntimeError("GENICAM_GENTL64_PATH not set! Please install the CXP GenTL producer and drivers using the pylon Camera Software Suite setup.")

# We need access to the interface node map. This can only be obtained from
# a transport layer. Therefore we have to create the TL first.
tl = pylon.TlFactory.GetInstance().CreateTl('BaslerGTC/Basler/CXP')
Expand Down

0 comments on commit 804ca0e

Please sign in to comment.