06-11-2020 12:27 AM
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?
Solved! Go to Solution.
06-11-2020 09:20 AM
Have you considered using WebVIs (with the LabVIEW NXG Web Module) instead of writing your web app with Javascript?
06-11-2020 09:23 AM
My given resources are limited. I'm not sure if I have access to labview NXG. Does myRIO work with labview NXG?
06-11-2020 10:44 AM
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.
06-11-2020 08:44 PM
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.
06-16-2020 02:07 PM
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.
06-17-2020 08:35 PM
I'll look into it. Thank you for the resources provided.
06-19-2020 12:35 AM
May I know how do I solve this error. Thanks.