10-18-2018 04:14 AM
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
10-20-2018 05:30 PM
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:
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.