09-07-2017 02:31 PM
I have a dll file and .so file but don't know how to import it to NI myRIO.
09-07-2017 05:32 PM - edited 09-07-2017 05:34 PM
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!
09-07-2017 05:37 PM
So what to do if I want to use labpython on myRIO. As my VI runs labpython in it.
09-08-2017 02:16 AM - edited 09-08-2017 02:23 AM
@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. ![]()
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.
09-08-2017 01:23 PM
Is there any other way I can use/run python script on myRIO?