LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Customize the URL of the web vi of LV NXG

Hi,

      I recently learned the web module in LV NXG, and I have implemented the function that the browser automatically pops up the VI interface after running. However, one of the things I am puzzled about is how to determine the URL of the currently released VI (the mobile terminal can be accessed using an external network), and how to customize the URL of the VI to make it easier to visit.

 

       I would be very grateful if this problem that has been bothering me for a long time can be solved.

 

Best Regars,

Sha

0 Kudos
Message 1 of 2
(2,142 Views)

Hi Sha,

 

In the following line:

 


@ZoeWang

 


I have implemented the function that the browser automatically pops up the VI interface after running.

Does that refer to opening System Designer, right-clicking on the Web Application component, and choosing run to launch a Web VI? For example as shown in the following gif:

 

RunFromSystemDesigner.gif

 

 

 

If that is the approach you are using then unfortunately the URL is not predictable. The Run action is intended for debugging and testing purposes and uses the first port made available by the operating system. Because of this, choosing Run from System Designer will use a changing port.

 

Instead if you want a consistent URL you should deploy the finished WebVI to a web server. The topic Hosting a Web Application on a Server describes how to deploy your WebVI to different web servers.


Milan
0 Kudos
Message 2 of 2
(2,095 Views)