LabVIEW Libraries for RevPi

Topics about the Software of Revolution Pi
Post Reply
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

LabVIEW Libraries for RevPi

Post by camow7 »

National Instruments recently announced that they will be officially supporting the programming of Raspberry Pi via LabVIEW for commercial use going forward. I have beta access and can confirm that you can program the RevPi using LabVIEW and the LINX libraries that are now built in.

The next step is to be able to control the IO. I'm going to write a LabVIEW library to control the RevPi. However, cross compiling C into shared libraries is not something I have done and this is what is necessary to make this work.

Would it be possible to get the libraries associated with piTest built into a shared object library (.so) for an arm7va-vfp architecture?
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: LabVIEW Libraries for RevPi

Post by dirk »

Dear camow7, this is awesome news. Have a look at the sample codes in the Downloads section. There is also Tutorial 13 – PiTest source code.
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

Re: LabVIEW Libraries for RevPi

Post by camow7 »

Hey dirk,

Yes I have followed that and built a .so but it doesn’t work With LabVIEW as the Raspberry is arm7va-neon architecture . The LabVIEW LINX runtime is running in a chroot Which is based on the arm7va-vfp.

Therefore I need some one with experience cross compiling to help build the .so for that specific architecture.
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: LabVIEW Libraries for RevPi

Post by dirk »

Hi camow7, we provide the GitHub repository where you may build your own image or do such tricky stuff like cross compiling that on your hand and expertise. Maybe this discussion helps you moving forward.
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

Re: LabVIEW Libraries for RevPi

Post by camow7 »

I get you. It’s a “teach a man to fish...” response. I’ll see how I go.
camow7
Posts: 12
Joined: 09 Jul 2019, 01:07

Re: LabVIEW Libraries for RevPi

Post by camow7 »

I was able to successfully compile the piTest libraries into a Shard library that is accessible through LabVIEW. I can read and write variables from LabVIEW as well as query their index by name. Have had some issues with the functions that require complex struct pointers but I don't need those yet so am not exploring this currently. I'll write a library and example on how to program your RevPi with LabVIEW. Just need to test deploying the application and having it run on boot first.

Preliminary results for this are encouraging though!
Post Reply