LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry Pi/Arduino Standalone with LabVIEW

Hello Guys, 

 

my task ist to get a LabVIEW application to run (upload) on a Raspberry Pi/Arduino, which acts as a standalone, i.e. it executes the created code and shows me the results (e.g. temperatur) on its connected display. The application should work similar to an .exe file like on Windows. I have only read on the Internet that the Raspberry Pi works "headless" and cannot show me a GUI, except for the expensive NI cRIO RT controllers.

 

My question to you is what possibilities are there for the above mentioned case.

 

Thanks in advance and have a nice weekend.

 

Best regards

 

Kevin

0 Kudos
Message 1 of 3
(415 Views)

Hi Kevin,

 

Firstly, I would recommend readding through this thread, which discusses possible solutions for running LabView executables on a Raspberry Pi as a GUI.

 

For a quick overview, there are three possible solutions:

  1. You can include a web service in your LabView code which will allow you to run a GUI through any web browser on you're display. This could be built using the G Development Software. Here you can find a useful presentation on how to build web browser based UI's in LabView.
  2. You can write your own GUI in another language and have it communicate with LabView code using TCP/IP. Here is documentation on using TCP/IP communication protocols in LabView. I assume this will be the hardest solution, but will provide seamless results :).
  3. A tool called LINX is available via the NI Hobbyist Toolkit, that is built specifically to allow communication to Arduino/Raspberry Pi (allows the LabView code to execute on start-up and therefore run LabView code "headless"). However, my understanding is that you will need to have LabView installed on your display that you wish to show the GUI on. This solution will be the easiest to set up if you can get it working to display the GUI on your display.

Good Luck, let me know if you have any more questions or if you solve your issue. 

0 Kudos
Message 2 of 3
(26 Views)

Some extra details. LabVIEW can NOT run on an Arduino! That includes a compiled LabVIEW executable! There used to be a LabVIEW to Arduino compiler, but that product is abandoned after the initial release and was rather limited in what LabVIEW nodes it could cross compile.

 

The LabVIEW executable that you can create and install on a Raspberry Pi through the LabVIEW Hobbyist Toolkit is running in its own Linux Debian derived virtual machine and does indeed execute headless. You will have to create a UI of some sorts that communicates with your LabVIEW executable through some sort of network communication. If you want to run it on the Raspberry Pi, this UI can not be a LabVIEW executable as it has to run in the native Rasberry Pi OS, in whatever flavor and version you choose. On a Windows PC you could of course write a LabVIEW UI that communicates with your Raspberry Pi LabVIEW application.

Rolf Kalbermatter
My Blog
Message 3 of 3
(15 Views)