10-24-2017 09:15 AM
Hi,
i would like to know, how i can attached my c# code to my vi. I am working with MyRIO-1900. since my vi needs too much time to overlay the defect regions, i decided to write a c# code to which i send an Array with the adresses of defected Pixels and the dimensions of my Image. this returns the Regions of the Image, which will be overlay.
My Problem is that i don't know if and how i should attach this c# code in my vi. does someone have any litterature, which describe how i should proceed? the c# code i wrote automatically generates a dll, but i readed somewhere that dlls don't work on myRIO.
I will be very happy if someone can help me. I test my c# code on visual Studio and it works, so if i can integrate it to my vi, it will be very helpful for me.
Idrissou.
10-24-2017
09:52 AM
- last edited on
01-06-2025
10:17 AM
by
Content Cleaner
So you have a MyRIO, that runs NI Linux RT.
You need to build our code into a .so library that can run on the Linux target.
If you are using any Windows function, you can't use them.
Look at
Integrating C Code with LabVIEW on NI Linux Real-Time Targets
Or do a google search for "LabVIEW external code Linux RT"
10-24-2017 01:07 PM
To get c# code to run on a LabVIEW RT Target, you need to have a LabVIEW-compatible compiler. As dkfire's reply points out, there are tools to include c and c++ routines, but c# does not appear to be supported at the present time. Can you use one of the supported Languages?
Bob Schor
10-25-2017 02:11 AM
Hi,
thanks for your replies. I will write my code in c or c++ and try to integrate it in labview. I will use this C & C++ developpement Tools for NI Linux RT, Eclipse Edition. I will then let you know if i have any Problem.