Giter Club home page Giter Club logo

Comments (2)

HBadertscher avatar HBadertscher commented on August 16, 2024

Hi Denis,

I have an idea, what the problem could be. I have created the whole driver with Pylon 4 and it appears that Pylon 5 has some differences. As I don't have a Linux installation with Matlab and Pylon 5, I couldn't try it out, so can you please try the following:

In the file basler_set_get.cpp, in each function get_float, get_int, get_string, and get_bool, there are the following two lines:

std::string s_result = p_parameter->ToString();
printf("Read Parameter \"%s\": %s\n",s_param_name, s_result);

Please try replacing them in each of the mentioned functions by the following:

GenICam::gcstring s_result = p_parameter->ToString();
printf("Read Parameter \"%s\": %s\n",s_param_name, s_result.c_str());

I'm afraid that the same happens in line 128 of the same file, then we would need some workaround there too. But can you try what I posted above first, and see if that works?

Best,
Hannes

from matlab_baslercamdriver.

loicdenis avatar loicdenis commented on August 16, 2024

Thank you very much for your answer. I tried the fix you suggested + changed the type of the output of function get_string in both the .h and .cpp file. Now, the compilation is OK. There are still problems during linking, maybe due to changes from Pylon4 to Pylon5 library (e.g., "undefined reference to
`Pylon::CTlFactory::GetInstance()"). I am still trying to fix them and will let you know when I succeed.

from matlab_baslercamdriver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.