Page 1 of 1

LabVIEW Libraries for RevPi

Posted: 03 Dec 2019, 11:26
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?

Re: LabVIEW Libraries for RevPi

Posted: 03 Dec 2019, 13:40
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.

Re: LabVIEW Libraries for RevPi

Posted: 03 Dec 2019, 20:38
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.

Re: LabVIEW Libraries for RevPi

Posted: 04 Dec 2019, 07:46
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.

Re: LabVIEW Libraries for RevPi

Posted: 04 Dec 2019, 11:43
by camow7
I get you. It’s a “teach a man to fish...” response. I’ll see how I go.

Re: LabVIEW Libraries for RevPi

Posted: 11 Dec 2019, 05:20
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!