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.

G Web Development Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Can the pages created be hosted on a Linux system

Can the web pages developed using the Web Development module be deployed and hosted on a Linux web server? If so, what are the steps necessary?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 1 of 4
(1,305 Views)

The build output of web applications built using G Web Development Software is plain HTML and JS and as such wouldn't pose any problems being hosted in a Linux web server. After building the web application in GWeb you would need to copy the build output to the web server. You can locate the build output by clicking on the Output directory in the right rail for a web application component as shown in the image below. 

 

sbasavaraj_0-1642413202905.png

 

You can find details of the different options available to host web applications built using GWeb in the manual page here.

0 Kudos
Message 2 of 4
(1,264 Views)

I have a follow on question to this. As you replied the web pages could be hosted on a Linux Web Server, can you also host them on a cRIO Linux RT? 

 

TIA

 

 

Steven Howell
Controls and Instrumentation Engineer
Jacobs Technologies
NASA Johnson Space Center
0 Kudos
Message 3 of 4
(1,167 Views)

Yes - it is possible to host a G Web webpage on a (Linux) cRIO.  I will list some rough steps for how to do it because there is not a lot of info online on the steps required (at least not in one place):

 

G Web:

Create a webpage and build it. It will save the build to a child directory of the "Builds" directory. This will become the public content folder for the cRIO's web service.

 

LabVIEW:

Add new web service to the cRIO in the project tree. 

Rt. click web service and select, "Add public content folder"

Navigate to the output folder of the G Web application mentioned above and choose it.

Under Web Services>Web Resources in the project tree, you may want to add HTTP Method VIs which allow communication between a RT application and the new web page.  I think there is an example project in LabVIEW which goes through this.

 

To deploy, right click the Web Service>Application Web Server>Publish.

0 Kudos
Message 4 of 4
(995 Views)