LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

online control

Solved!
Go to solution
Hi all. I am Tal from Malaysia, and very new with LabView. I want to control my program via internet. When I used the Web publishing tool (with accessing control request checked), it used my PC ip address. Then the webpage is saved in the www folder. How I can make it accessible through internet, because by this method i can only access through my PC. Thanks (sorry if duplicated other post)
0 Kudos
Message 1 of 15
(6,538 Views)

Dear Tal

 

              Here by i am sending the Procedure. let me know if u got any problem through mail to prabhakar.tj@gmail.com

 

LabVIEW Front Panel Web Publication

(Viewing an Application or Front Panel Remotely Using a Browser)

To view an application or front panel remotely using a Web browser, you must first configure the server. Complete the following steps to configure the server so a client computer can view an application front panel remotely using a browser

Note  For VIs that will be viewed or controlled remotely, create as small front panels as possible. The Web Server uses more system resources to load and display large front panel images than small front panel images, which can slow the execution of the VI itself.

Ø  Open the Project.

Ø  Open the VI.

Ø  Include the code that gets the local host IP address and will return the URL ID that you will get from web publishing tool and show in the front panel in your existing code.

Ø  Save the VI.

Enable the Web Server on the server computer where the application or VI you want to view is located.

Ø  Select Tools»Options to display the Options dialog box and select Web Server: Configuration from the Category list to display this page.

Use this page to enable and configure the Web Server.

Prabhakaran.T.J
Sr.Instrumentation Engineer

LabVIEW ,RT,FPGA,DSC,
cRIO,DAQ,PXI,
Message 2 of 15
(6,517 Views)

Page 2

 

This page includes the following components:

  • Enable Web Server-Enables the Web Server to publish front panel images and HTML documents. This checkbox is unchecked by default.
    • Root Directory-Indicates the directory where the Web Server HTML files are located. The default path is labview\www.
    • HTTP Port-Indicates the TCP/IP port the Web Server uses. If another server already uses the port specified by HTTP Port on the computer or if you are on a computer where you do not have permission to use reserved ports, such as 80, remove the checkmark from the Use default checkbox and replace the value of HTTP Port with the port you want to use. Place a checkmark in the Use default checkbox to return to the default value of 80.

 

Note  If you use a port other than 80, such as 8000, you must specify the port on URLs that refer to the server, as shown in the following example:

http://hostname:8000/index.htm

Use default-Windows Sets HTTP Port to its default value of 80. This checkbox is checked by default. To edit HTTP Port, remove the checkmark from the checkbox.

  •  
    • Timeout (sec)-Indicates the number of seconds the Web Server waits while reading a request before the Web Server times out. The default is 60 seconds. If Use default is checked, you cannot edit this field.

Use default-Sets Timeout (sec) to its default value of 60 seconds. This checkbox is checked by default. To edit Timeout (sec), remove the checkmark from the checkbox.

Ø  Press OK.

 

Create an HTML file using the Web Publishing Tool.

 

Ø  Select Tools»Web Publishing Tool to display the web publishing tool dialog box.

Use this dialog box to create HTML documents and embed VI front panel images.

Prabhakaran.T.J
Sr.Instrumentation Engineer

LabVIEW ,RT,FPGA,DSC,
cRIO,DAQ,PXI,
Message 3 of 15
(6,516 Views)

Page 3

 

This dialog box includes the following components:

  • Preview-Displays a preview of the Web page to be generated.
  • Preview in Browser-Previews the Web page in the default browser. This option is disabled if the LabVIEW Web Server is not running.
  • Start Web Server-Starts the LabVIEW Web Server. This option is disabled if the Web Server is already running.
  • Select VI and Viewing Options-Includes the following components:
    • VI name-Allows you to select the VI you want to publish.
    • Viewing Mode-Contains the following options:
      • Embedded-Embeds the front panel of the VI so clients can view and control the front panel remotely using a browser. The VI must be in memory on the server computer so clients can view and control the front panel. You can embed only standard VIs for remote front panel connections. For example, you cannot embed a polymorphic VI.

 

Note  The Embedded option is available only in the LabVIEW Full and Professional Development Systems.

  •  
    •  
      •  
        • Request control when connection is established-Causes the embedded VI to request control immediately. This option is available only when you select Embedded as the Viewing Mode.
      • Snapshot-Displays a static image of the front panel in a browser. A snapshot does not allow you to interact with the controls of the VI from the browser.
      • Monitor-Displays an animated snapshot that updates continuously. A snapshot does not allow you to interact with the controls of the VI from the browser.

 

Note  All browsers support the Monitor option.

  •  
    • Show border-Surrounds the embedded front panel image with a thin border.
  • Select HTML Output-Includes the following components:
    • Document title-Text that appears as the title of the Web page.
    • Header-Text to display before the image of the front panel.
    • Footer-Text to display after the image of the front panel.

 

Ø  select the VI you want to publish.

Ø  Select Embedded viewing mode and enable Request control when connection is established.

Ø  Press Next to continue.

Ø  Give Document title, header and footer if required.

Ø  Press Next to continue.

Prabhakaran.T.J
Sr.Instrumentation Engineer

LabVIEW ,RT,FPGA,DSC,
cRIO,DAQ,PXI,
Message 4 of 15
(6,515 Views)

page 4

 

Save the New Web Page-Includes the following components:

o    Directory to save the Web page-The folder in which to create the HTML file, usually the labview\www directory on Windows.

o    Filename-The filename to give the HTML file.

o    URL-The Web address of the document if the document is published on the computer on which it is being created. You can copy the URL into a Web browser.

 

Note  The Web Publishing Tool creates an HTML file in the application instance from which you open the VI. If you close the VI and then reopen the VI in a different application instance, clients cannot view the VI.

 

Ø  Give file name in which your HTML document needs to be saved. Avoid special characters. Don't change the directory.

Ø  Press save to disk button.

Ø  Note down the URL ID that is displayed in the dialog box.

Ø  Press OK to close the dialog box. The HTML file will be created in the www folder of LabVIEW root directory.

Ø  Save the VI.

Ø  Add the HTML file that created to the project.

Ø  Save the project.

Ø  Build Exe. Go to Advanced page. Deselect "Use the default project alias file". Browse and select the Alias file in the project. Remaining steps are as usual in Exe creation.

Ø  Create installer. Go to source files page. Create a new folder in the name www in the LVDIR folder. Add the HTML file in this folder. Remaining steps are as usual for installer creation.

Ø  Install your application in a RAW PC and run it.

Ø  Note down the URL ID that displayed in the front panel.

Complete the following steps if you are on a client computer and do not have LabVIEW installed but want to view a front panel remotely using a browser.

Note  The application or VI you want to view must be running on the server computer.

Ø  Install the LabVIEW run time engine of same version in which the source code and exe created.

Ø  Launch the default browser and enter the URL ID that you got

Ø  See VI's front panel image in the web browser where you can get the VI's execution functionality.

 

You now can request control of the application or remote front panel.

Prabhakaran.T.J
Sr.Instrumentation Engineer

LabVIEW ,RT,FPGA,DSC,
cRIO,DAQ,PXI,
Message 5 of 15
(6,514 Views)
Solution
Accepted by topic author t4L
Page 5

Controlling an Application or Front Panel Remotely Using a Browser

Complete the following steps to control an application or front panel remotely using a Web browser.

 

Ø  View an application or front panel remotely in a browser as described above.

Ø  Click the bottom of the remote front panel window or right-click anywhere on the front panel in the browser and select Request Control of VI from the shortcut menu. If no other client is currently in control and if no other browser window on the same connection is currently in control, you have control of the front panel. If another client is currently controlling the VI, the server queues the request until the other client relinquishes control or until the control time limit times out. Only the user at the server computer can monitor the queue list.

To completely close the connection to the Web Server running on the server computer, click the close glyph on the browser window border. However, if you want to release control of the front panel but maintain a connection so you can view the front panel, right-click any open space on the front panel and select Release Control of VI from the shortcut menu or right-click an object on the front panel, such as a graph, and select Remote Panel Client»Release Control of VI from the shortcut menu.

 

Merits:

Ø  The system can be monitored and controlled remotely through remote front panel.

Ø  Control can be transferred between PC's in the network.

Ø  RT program front panel can also be monitored and controlled from a PC where host application may not be required.

Demerits:

Ø  Only one client can access the front panel remotely at a time if the application is not a licensed version. Up to five clients, if it is licensed professional development system.

Ø  Cannot open the MS Office window (like file selection) by a client as like the server.

Prabhakaran.T.J
Sr.Instrumentation Engineer

LabVIEW ,RT,FPGA,DSC,
cRIO,DAQ,PXI,
Message 6 of 15
(6,513 Views)
Hi friends

I am Joseph. Thanks for sharing  the Information.

Joseph
0 Kudos
Message 7 of 15
(6,508 Views)

in page 4, you said must Add the HTML file that created to the project.

how i can do that?

0 Kudos
Message 8 of 15
(6,178 Views)
why do you explain about how to make exe and installer cause iam is beginner? so can you explain it.
0 Kudos
Message 9 of 15
(6,143 Views)
Duplicate Post.  You are already getting help in that message thread.  Please don't keep asking the same questions all over the place.Smiley Mad
Message 10 of 15
(6,137 Views)