G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Run github.com/ni/webvi-examples/tree/main/CallLabVIEWWebService on compactRIO?

Solved!
Go to solution

Hello,

 

I am exploring using the new G Web software (a very powerful tool!) to help develop a replacement for the archaic Internet Explorer Remote Front Panels that I have been using to remotely control my 9065 compactRIO.  There seems to be very scant information online or in the Help for how to actually do this, however, I found a GitHub project which seems like it is in the right direction.


I downloaded the zipped NI example projects from here: https://github.com/ni/webvi-examples and I was able to get the CallLabVIEWWebService project working on My Computer's Application Web Server (Debug server).  I then recreated the project for a 9065 compactRIO (static IP address 192.6.94.20), published the web service on the cRIO's Application Web Server, and was able to connect to the index.html webpage remotely via the Edge browser, however, the WebVIs were not actually running or something, and the error message generated is: 

 

HttpClientGet in NI::HTTP::httpWebServerClient.sli::httpWebServer_Get->NI::HTTP::GET.gvi->WebApp::support::Observed Data and Fitted Curve.gviweb->WebApp::index.gviweb<APPEND>
A network error has occurred. Possible reasons for this error include Cross-Origin Resource Sharing (CORS) configuration issues between the client and the target server or that the client cannot reach the target server. Due to browser security restrictions, detailed information about the cause of the network error cannot be provided. You may find specific details about the cause of the network error in the browser development tools console or in the LabVIEW output window.

 

Looking in the browser's console output showed a 404 error (see attached image).

 

A zip file including both the LabVIEW 2020 project and the G Web project is also attached. Any assistance would be most appreciated!

Download All
0 Kudos
Message 1 of 3
(1,429 Views)
Solution
Accepted by topic author jvon20

Hi jvon20,

 

From the screenshot provided it looks like the Web Service and files are served from /v4_RT_WebService (you can see the warning about the page trying to access resources from the v4 url) but the diagram appears to still target /v3_RT_WebService.


Milan
Message 2 of 3
(1,393 Views)

Thank you, @MilanR!  All that work, and the fix to get it working was simple. Much appreciated.

0 Kudos
Message 3 of 3
(1,387 Views)