From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed setting up WebUI for Wireless Gateway

Solved!
Go to solution

I have a problem setting up a webUI for my demo project.

 

I am just doing a simple WSN application measuring temperature on a WSN-3121 thermocouple node, and logging it on a wireless RT gateway NI 9792.

 

Then I wanted to create a web UI for it, and display whats in the gateway's UI - see project.

 

SO I'm coming up stuck with the web UI.  I've tried reading as much as I can but I still dont know what I'm doing wrong.

 

As far as I can see, I need to create a web service in the build specs for my gateway, and place the gateway_main.vi as the vi to use.  Then build it, and deploy it.  Once that has happened and I run the vi on the gateway, I created a webUI as shown in the pic, where it imports the web service from the gateway using 192.168.0.16:8080 - that works fine.

 

When I run the webUI, it just sits there and times out.

 

I am using LAbview 2010.  Please help.

Download All
0 Kudos
Message 1 of 3
(6,604 Views)
Solution
Accepted by topic author markza

Hello markza,

 

Your approach to using Web UI Builder and understanding its use case is exactly right, the issue lies in the web service you have deployed. The VI you are building as a web service, i.e. gateway_main.vi, has while loops in it and hence cannot be used as a web service. The reason for the timeout is that your UI Builder app is calling the LV2010 web service and is getting stuck there waiting for the while loops to complete. Also, the cluster datatype is not supported in Web UI Builder so you would have to break up the Wireless Node Sampling Time input into two separate numeric inputs.

 

I would recommend creating a subVI out of your code inside the inner while loop in gateway_main.vi. This subVI should have two numeric inputs to replace the cluster (as mentioned above) and not have either of the Start or Stop boolean inputs. Outputs would stay the same i.e. two doubles and a boolean.

 

Let me know if that helps you and if you have any further questions.

 

Thanks!

Diya Jakkidi

LabVIEW Web UI Builder R&D

Message 2 of 3
(6,586 Views)

Thanks Diya M,  worked after this!!

 

The cluster was actually a mistake...so that ended up not being a problem regardless.

 

0 Kudos
Message 3 of 3
(6,572 Views)