Jump to content

Yaw Mensah

Members
  • Posts

    30
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Yaw Mensah

  1. thank you very much. I will go to the thread.
  2. Hi everyone, is there a way to implement a Callbackfunction using the Call Library Function. I am using a function openCamera that takes a functionpointer as a parameter. I tried loading the library and retrieving the adress of the function to be passed. But the Programm crashes. Can I use the Call Library Function Callbacks option to implement the callback? Thanks in advance.
  3. Hi everyone, i would like to know if there is a library for Profinet IO for LabVIEW2020-linux. I want to simulate a Profinet IO master. thanks in advance.
  4. Thank you for your replies. https://github.com/ni/niveristand-scan-engine-ethercat-custom-device/ seem like it's not supported for LabView on Linux. The goal is to use any random linux computer as an ethercat-master.
  5. The NI Industrial Communication for EtherCAT driver is only supported for windows. I will look for other possibilities. Maybe somebody have already tried to interface a Ethercat dll before and i can get some good suggestions.
  6. When I try writing to a named pipe i get error 1. But reading from the pipe works fine. I have already set the pipe to allow read/write acess with "chmod 666". Is there something else i can do.
  7. 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.
  8. There is an example application that acquires an image and streams it to the display. With minor changes i could send those images to the pipe.
  9. I want to write a c application the acquire images send it to the pipe. On the orther side of the pipe, i would than use the read.vi to read the images in labview.
  10. I am trying to read images from my Gige camera, but on LabView Linux Imaqdx is not available. So i tried wrapping the vendors Gige implementation. But i had some problems regarding passing handles and the callback function to receive the images. If someone have experience regarding image- aquisition without imaqdx or know a different way, i would be grateful for your suggestions.
  11. Is it possible to call a static library in Labview, without calling it through a shared library? Thank you in advance for your replies.
  12. Thanks for all your suggestion and the recommended references. Due to your help i was able to make a wrapper for some function in opencv 3.2. It is possible to use both c and c++ elements. Just needed to handle the name mangling and compile with a c++ compiler. Thank you all very much.
  13. Thank you very much. Do you know a reference targeting Labview on linux for this matter. Wouldn´t i avoid this whole mess by only using an Opencv version with a c api?
  14. Does anyone know the exact version when opencv droped the c api.
  15. Calling a function or use of a datatype from <opencv2/opencv.hpp> result in a name mangling or undefined variable issues.
  16. 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){ } }
  17. 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.
  18. Thank you very much. Call Library Function Node doesn't change the name and calls the fuctions as desired.
  19. 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.
  20. It works now. In Addition to installing everything i needed libxinerama1:i386 und libgl1:i386. Those two can be installed with apt-get install. Thank you for your suggestions.
  21. Is there a way to convert the 32-Bit rpm to deb so they can installed?
  22. 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.
  23. 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.
×
×
  • Create New...

Important Information

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