Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Problem connecting to pylon(basler) camera
Qt 6.11 is out! See what's new in the release blog

Problem connecting to pylon(basler) camera

Scheduled Pinned Locked Moved Unsolved 3rd Party Software
10 Posts 5 Posters 6.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pal_ani
    wrote on last edited by
    #1

    Hi there. I am trying to access Basler Pylon camera through an application using Qt. But i am having problem in connecting the camera.
    Presently my .pro file looks like:

    0_1551976898340_pro_file.PNG
    The logs in the application output says:
    =>LOG : : SetGenICamLogConfig(path) not called, and environment variable GENICAM_LOG_CONFIG_V3_0 not found. Using default logging configuration.
    =>LOG : : Cannot open logger parameter file 'C:/Program Files/Basler/pylon 5/log/config/DefaultLogging.properties'
    =>LOG : : Default logger parameter file '$(GENICAM_ROOT)/log/config/DefaultLogging.properties' not found

    0_1551977091344_code_with_debug_log.PNG

    I am using MSVC2017_64bit compiler.

    Any help regarding the issue is welcome.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Do you have the same trouble if you run the pylon application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Do you have the same trouble if you run the pylon application ?

        P Offline
        P Offline
        Pal_ani
        wrote on last edited by
        #3

        @SGaist No, it works fine with Pylon Viewer. I can capture images and videos. The problem is when I want to access the camera using Qt.

        1 Reply Last reply
        0
        • mranger90M Offline
          mranger90M Offline
          mranger90
          wrote on last edited by
          #4

          Have you tried setting the GENICAM_LOG_CONFIG_V3_0 environment variable to (I assume) a path for the log file?

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Pal_ani
            wrote on last edited by
            #5

            @mranger90 No I haven't. Can you please tell me how to do it?

            1 Reply Last reply
            0
            • mranger90M Offline
              mranger90M Offline
              mranger90
              wrote on last edited by
              #6

              It depends on your OS. Since you use the MSVC compiler I guess I can assume its windows.
              In that case you can add an environment variable from the System/Advanced System Settings/Environment Variables.
              I'd check the docs for the camera's SDK. There may be other things that need to be set.
              Does the Windows camera app connect to it ?

              P 1 Reply Last reply
              0
              • mranger90M mranger90

                It depends on your OS. Since you use the MSVC compiler I guess I can assume its windows.
                In that case you can add an environment variable from the System/Advanced System Settings/Environment Variables.
                I'd check the docs for the camera's SDK. There may be other things that need to be set.
                Does the Windows camera app connect to it ?

                P Offline
                P Offline
                Pal_ani
                wrote on last edited by
                #7

                @mranger90 Hi, I haven't been able to solve the problem yet. Can you help? I know how to add environment variable in my OS (Windows 10), but how do I find the path of the GENICAM_LOG_CONFIG_V3_0 environment variable .

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You can set the value yourself so you know where the file is.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  2
                  • W Offline
                    W Offline
                    wenjie_Cao
                    wrote on last edited by
                    #9

                    Have you solved this problem yet?
                    I had the same problem.
                    9bc0c843-4ea8-446a-9460-5bcf0999fb8e-image.png
                    I'm trying to add environment variables,but have no use.
                    1b2bec19-db46-4e44-bbbc-df3f55c9123e-image.png
                    C:\ProgramData\GenICam\xml\cache is path.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Sma2020
                      wrote on last edited by
                      #10

                      While using pylon 6.2 you can also set an empty environment variable.

                      export GENICAM_LOG_CONFIG_V3_1 = ""

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved