Balser Camera Init by Qt on Win10 Platform
-
Re: Problem connecting to pylon(basler) camera
Problem solved by visit Balser offical guide:
https://www.baslerweb.com/en/sales-support/knowledge-base/frequently-asked-questions/how-to-enable-pylon-logging/29829/I met the very same problem on my Qt application :
=>LOG : : SetGenICamLogConfig(path) not called, and environment variable GENICAM_LOG_CONFIG_V3_1 not found. Using default logging configuration. =>LOG : : Cannot open logger parameter file 'C:/Program Files/Basler/pylon 6/log/config/DefaultLogging.properties' =>LOG : : Default logger parameter file '$(GENICAM_ROOT)/log/config/DefaultLogging.properties' not found
this exception came from GenI protocol which this camera relies on. I found this API function GetGenICamLogConfig(path) and SetGenICamLogConfig(path) at http://softwareservices.flir.com/Spinnaker/latest/group___g_c_utilities__h.html
but solving this problem doesn't require unsterstanding this protcol. Here's the stpes I took (Basic following the link above)
- download both file in the link above : Dbgview.exe and DebugLogging.txt
- add a value to your system virable like the link above (thanks mihoyo I don't need to learn Germany to solv this problem)
- restart computer since we changed the system viarble
- visit your Pylon exectuble problem dicitonary and run StartPylonViewerWithLogging.cmd
(C:\Program Files\Basler\pylon 6\Applications\x64\bin\StartPylonViewerWithLogging.cmd) - open Pylon application, take a shot
- close Pylon application, there should be a window come up which is the log file dictionary. This means you have activated the old version Log program which is required.
- Now create the dictionary (C:/Program Files/Basler/pylon 6/log/config/) from the second line of your program output information, and put the .txt file from step1 here. change the file name from "DefaultLogging.txt" to "DefaultLogging.properties". Now you have the LOG file which is missing before.
- don't forget running Dbgview.exe
- now build your code and run init program. You should be see a lot of information output from the program :
>>> [pylon.base] NOTICE: Initializing Pylon version 6.2.0.18677 (64 bit) on Windows 10 Pro, 64-Bit (10.0.19041). processID = 6876; threadID = 1360 >>> [pylon.base] NOTICE: >>> Dumping current environment: >>> [pylon.base] NOTICE: ALLUSERSPROFILE=C:\ProgramData ... .... ....(about 100+ lines LOG) >>> [pylon.base.InstantCamera] NOTICE: Camera 0000006222D68C30: Device removal forwarding thread started >>> [pylon.base.InstantCamera] NOTICE: Camera 0000006222D68C30: OnOpened
Now init processe should be completed. I'm going to face following bugs that are about to come.
Happy photoing. Dont forget your masks XD -