Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

LV Community 2022 Q3 with Raspberry Pi 3B - Can I build an application for my project?

Solved!
Go to solution

Hi!

 

I have a working setup where I control a potentiometer (I2C), on my RPi, from my PC with LV Community 2022 Q3 installed.

 

Question: Is it possible to build an .exe so I don't have to open the project each time? To run from my PC I mean?

 

When I tries, the "executable" want to be a .rtexe. Does this mean I have to install LV RunTime aswell? Or am I missing something?

 

Best Regards, Viktor

 

ctm5556_0-1726486916801.pngctm5556_1-1726486973632.pngctm5556_2-1726487003573.png

 

0 Kudos
Message 1 of 3
(1,785 Views)
Solution
Accepted by topic author ctm5556

The RPi is its own computer and the VIs that you have placed under the "raspberrypi" target effectively run on the RPi itself. What you probably did so far is to directly deploy the VIs from your LabVIEW project. That will compile the VIs to run on the ARM CPU achitecture on the RPi and then deploy them directly into RAM and execute if from there. The neat thing is that they UI (frontpanels) are still shown on your PC and LabVIEW communicates with the application on the RPi to update these front panels.

 

Now when you build an executable from your RPi application you do indeed create a rtexe file and then deploy that to the RPi. Build Specifications->TemperatureControl->Deploy. This will copy the rtexe to the RPi and if you then select Build Specifications->TemperatureControl->Run as Startup entry LabVIEW will configure the LabVIEW runtime envrionment on the RPi to now startup your application everytime your RPi boots up.

But!!!! Your LabVIEW executable on the RPi does not have any access to the display that you may have attached to your RPi.There is also no LabVIEW IDE anymore in whose context the VIs are downloaded and executed so there is no possibility to directly watch your front panel on your PC. Basically your LabVIEW application on the RPi runs in the dark (LVDark was also the original LabVIEW internal code name for the first version of LabVIEW realtime).

 

You will have to add some means to your application do report your data in some meaningful way.

Possible solutions:

- It could post it to some HTTP server that you are running

- It could post the data to a MQTT or similar IoT server application

- You could integrate your own HTTP server in your application that provides a minimal HTTP page with all the data

- You could implement your own TCP/IP server and according protocol in your LabVIEW app to have a second application on your PC interface with. This second application can be LabVIEW based, or Python, or C(++), or C# or whatever you feel most comfortable with.

 

Rolf Kalbermatter
My Blog
Message 2 of 3
(1,727 Views)

Thank you for the very enlightning reply! 🙂

 

I understand whats going on now and will look into one of your proposed solutions.

 

Best Regards, Viktor

0 Kudos
Message 3 of 3
(1,702 Views)