Jump to content

Yaw Mensah

Members
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Yaw Mensah

  1. Hi everyone,

    is there a way to implement a Callbackfunction using the Call Library Function.

    image.png.773055220ef301b439f568a34b2fabf6.png

    I am using a function openCamera that takes a functionpointer as a parameter.

    image.png.be213f4136cf7d289c32235d4ea92cfa.png

    I tried loading the library and retrieving the adress of the function to be passed.

    image.png.19e2041df75c23ce73129a383f4e775f.png

    But the Programm crashes. Can I use the Call Library Function Callbacks option to implement the callback?

    Thanks in advance.

     

     

  2. I need to develop a LabView Ethercat-Master to exchange data with a ethercat- slave. I have looked into the IgH Ethercat- Master and the Simple Open EtherCAT Master Library.

    The next step is to find out which Library is best suited to be used to developed the LabView functions. If there is a better library for this task or have you have already done something like this  free to reply:thumbup1:.

  3. I'm using labview on Linux, which does not support dotnet. So EmguCv is not an option. I thought about only using the C API in opencv to avoid 

    name mangling and undefined variables issues, but the later version of opencv doesn't support C API. i'm now stuck at figuring out how to call the c++ function in 

    a c calling conventtion.

    example code:

    #include <stdio.h>
    #include <opencv2/opencv.hpp>


    using namespace cv;
    using namespace std;

    extern "C"{

        int displayimage()
    {
        Mat image(400,400, CV_8UC3, Scalar(0,0,255));
        image = imread("/home/ll/Dokumente/cpptest/lena.jpg", 1 );
        if ( !image.data )
        {
            printf("No image data \n");
            return -1;
        }
        namedWindow("Display Image", WINDOW_AUTOSIZE );
        imshow("Display Image", imread("/home/ll/Dokumente/cpptest/lena.jpg", 1 ));
        waitKey(0);
        return 0;
        }

    int main(int argc, char** argv){
    }

    }

     

  4. I am trying to create to shared library with opencv to acess a picture. I have no experience on this topic.

    If anyone have a referece or example-code that can help me develope an understanding  i would be very thankful.

    Rigth now i have created a shared libray to display a picture. But i get the error that Mat variable is not defined when it is called in labview.

    I will be thankful for any suggestions.

  5. I have created a simple shared library with an add function. When I try to call it with the Call Library Function Node, it always change the name, e.g. add() to Z2addii(). 

    In the Error is always the same error. Call Library Function Node 'libtestshared.so.Z2addii: not found in library.

    When i change the functionname in the shared library to Z2addii the Call Library Function Node then calls the Z3Z2addiiii. 

    But when i compiler a c-programm which uses the shared library i get the desired output.

    I will be grateful for suggestions.

  6. file /usr/local/JKI/VIPM/vipm
    /usr/local/JKI/VIPM/vipm: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.33, BuildID[sha1]=ff35d7adc7d9ef4e1ee0b41f6d67085e2c22dbe7, stripped
    file /usr/local/JKI/VIPM/support/*.so
    /usr/local/JKI/VIPM/support/lvanlys.so: ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, stripped
    /usr/local/JKI/VIPM/support/lvzlib.so:  ELF 32-bit LSB pie executable, Intel 80386, version 1 (SYSV), dynamically linked, with debug_info, not stripped
     

    After that i tried executing vipm

    sudo ./vipm

    and i got command not found.

     

  7. In the folder there different files for different architecture.

    For example I would delete nicurli-15.1.0-f0.i386.rpm but install nicurli-15.1.0-f0.x86_64.rpm

    and nicurli-15.1.0-32-Bit-f0.x86_64.rpm. If i leave nicurli-15.1.0-f0.i386.rpm there alien report wrong architecture and doesn´t convert. 

    image.png

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.