LINX

cancel
Showing results for 
Search instead for 
Did you mean: 

Raspberry PI Web Services

Solved!
Go to solution
Highlighted

I have a raspberry pi 4 with labview 2020 community edition and I am having problems trying to get web services running on the pi.

 

I am running the latest version of the 32bit raspberry pi OS (2020-05-27 with desktop) and using the LINX target configuration wizard I was able to install version 20.0.0-4

 

I am able to get labview code running on the pi with no issues and using the LINX toolkit I am able to read and write IO pins. In the project I am able to add a web service and then method vis to the web resources. When I right click on the web service and then on Start (Debug Server) the deployment progress completes with no errors, however when I right click on a method and select Show Method URL…. I get a popup that should show the url but it has warning with Unable to detect a running Web Server.

 

I tried accessing the configuration using 127.0.0.1:3580 on the pi desktop using the web browser but that returns a 404 error. Is there something I am missing?

0 Kudos
Message 1 of 7
(284 Views)
Highlighted

@Mike1979 wrote:

I have a raspberry pi 4 with labview 2020 community edition and I am having problems trying to get web services running on the pi.

 

I am running the latest version of the 32bit raspberry pi OS (2020-05-27 with desktop) and using the LINX target configuration wizard I was able to install version 20.0.0-4

 

I am able to get labview code running on the pi with no issues and using the LINX toolkit I am able to read and write IO pins. In the project I am able to add a web service and then method vis to the web resources. When I right click on the web service and then on Start (Debug Server) the deployment progress completes with no errors, however when I right click on a method and select Show Method URL…. I get a popup that should show the url but it has warning with Unable to detect a running Web Server.

 

I tried accessing the configuration using 127.0.0.1:3580 on the pi desktop using the web browser but that returns a 404 error. Is there something I am missing?


after start web service, try this 127.0.0.1:3580/[your web service name]/index.html

0 Kudos
Message 2 of 7
(202 Views)
Highlighted

When I try "127.0.0.1:3580/[your web service name]/index.html" on the pi I get a 404 error

 

I found though that if I compile and deploy the application with the web service built in I am able to access the web functions ok. This suggests to me that the pi works fine with web services that are baked into an application but there is no way to individually deploy the web service without the application which makes debug a little bit of a pain but at least it works

0 Kudos
Message 3 of 7
(197 Views)
Highlighted

@Mike1979 wrote:

When I try "127.0.0.1:3580/[your web service name]/index.html" on the pi I get a 404 error

 

I found though that if I compile and deploy the application with the web service built in I am able to access the web functions ok. This suggests to me that the pi works fine with web services that are baked into an application but there is no way to individually deploy the web service without the application which makes debug a little bit of a pain but at least it works


web service on pi only working in debug mode(the right click start/stop) and build real-time application(your case), not working on "application web server > publish".

 

debug mode, access via 127.0.0.1:8001/[your web service name]/

real-time application, access via 127.0.0.1:3580/[your web service name]/

just different between the IP Port.

 

the IP Port for debug mode, please refer to Tools > options.. > web server.

0 Kudos
Message 4 of 7
(194 Views)
Highlighted
Solution
Accepted by Mike1979

In a related thread about this topic someone from NI agreed that there is a bug in the current LabVIEW Debian image that gets installed on these devices (Raspberry Pi and Beaglebone Black) that prevents standalone web services to work. Probably something with the NI web server not getting installed correctly. It’s on their radar and should get fixed with the next update for that Debian based image . As it is not tied to a specific LabVIEW version release it is not expected to have to wait until the next LabVIEW update (2021) but it is also not scheduled yet for a specific time.

Rolf Kalbermatter
Averna BV
0 Kudos
Message 5 of 7
(184 Views)
Highlighted

Thanks Rolf. Good to know that NI are aware and I am not going crazy!

0 Kudos
Message 6 of 7
(178 Views)
Highlighted

Hi, Can you please help how to connect Raspberry pi 4 with LabVIEW 2020 community edition, i tried many times with linx but invain.

I got strucked in middle of my work to proceed with these steps, Your help means a lot to me

 

Thanks,

Nagendra

0 Kudos
Message 7 of 7
(134 Views)