LabVIEW Web Development Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Sensor values from myRIO to HTML Web Service.

Solved!
Go to solution

Background:

I am doing a school project which requires sensor values to be displayed on web browser and able to access by multiple devices.

 

I'm new to Java coding and was given 2 months deadline to complete. Any reference or idea on how can I write my javascript? 

0 Kudos
Message 1 of 8
(5,302 Views)

Have you considered using WebVIs (with the LabVIEW NXG Web Module) instead of writing your web app with Javascript?


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 2 of 8
(5,280 Views)

My given resources are limited. I'm not sure if I have access to labview NXG. Does myRIO work with labview NXG?

0 Kudos
Message 3 of 8
(5,277 Views)

You'd use LabVIEW to publish values from your myRIO (with a web service), and LabVIEW NXG to write the web app that reads values from the web service and displays them. If this is a possibility for you, I can help you find shipping examples in both products that show how it's done.

 

You might be able to use LabVIEW NXG and the Web Module with the free LabVIEW Community Edition. You can check out its restrictions here.


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 4 of 8
(5,269 Views)

Hi, I have downloaded the LabVIEW NXG and the Web Module community edition. It is a possibility for me. Could you show me examples on how it's done, thank you so much.

0 Kudos
Message 5 of 8
(5,247 Views)
Solution
Accepted by topic author Jason_Y

Sorry for the delayed response!

 

The example that shows how to create a web service in LabVIEW 2020 is <LabVIEW>\examples\Connectivity\Web Services\Weather Monitor\Web Services - Weather Monitor.lvproj

 

And the example that shows how to read data from a web service in a WebVI is here: https://github.com/ni/webvi-examples/tree/master/Call3rdPartyWebService

 

I apologize that these two examples don't talk to each other out-of-the-box. We intend to provide a pair of examples that do so, but haven't finished them yet.

 


Christina Rogers
Principal Product Owner, LabVIEW R&D
0 Kudos
Message 6 of 8
(5,212 Views)

I'll look into it. Thank you for the resources provided.

0 Kudos
Message 7 of 8
(5,196 Views)

Jason_Y_0-1592544857950.png

May I know how do I solve this error. Thanks.

0 Kudos
Message 8 of 8
(5,183 Views)