LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to import dll or .so file to NI myRIO? and where to import it

I have a dll file and .so file but don't know how to import it to NI myRIO.

0 Kudos
Message 1 of 5
(3,352 Views)

And where did you get the so file from? The LabPython package was never released for other platforms than Windows so unless you compiled the .so file for the LabPython shared library yourself using the NI Eclipse toolchain for the cRIO  systems, I don't think you have that at all. I definitely don't have it and I was the main developer of that package!

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 5
(3,330 Views)

So what to do if I want to use labpython on myRIO. As my VI runs labpython in it.

0 Kudos
Message 3 of 5
(3,326 Views)

@ravi64688 wrote:

So what to do if I want to use labpython on myRIO. As my VI runs labpython in it.


Basically install the NI Eclipse toolchain from here, then grab the C source code from here and start setting up an Eclipse project to compile the C code into a shared library. Checkout this NI community if you run into basic problems but don't expect them to solve your library specific problems.

 

But be warned, this code, while being written with a view to being portable to other LabVIEW targets, was written almost 20 years ago for Python 2.4. At that time LabVIEW for Linux had been just released and I never looked at it specifically. LabVIEW for Mac was still a classic Mac application, that I wanted to support but never got around to do it. NI Realtime Linux was a pipe dream that not even unreasonably visionary people even dared to dream up. Smiley Very Happy

 

Expect a pretty bumpy road ahead and if you don't have solid C programming knowledge or know someone with that knowledge I doubt it will be successful. Alternatively if this is a commercially important project for you we can talk about making this porting of LabPython to NI Realtime Linux a paid work.

 

 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 5
(3,306 Views)

Is there any other way I can use/run python script on myRIO?

0 Kudos
Message 5 of 5
(3,286 Views)