04-06-2009 11:21 PM
Solved! Go to Solution.
04-07-2009 01:33 AM
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.
04-07-2009 01:34 AM
Page 2
This page includes the following components:
|
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: |
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.
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.
04-07-2009 01:36 AM
Page 3
This dialog box includes the following components:
|
Note The Embedded option is available only in the LabVIEW Full and Professional Development Systems. |
|
Note All browsers support the Monitor option. |
Ø 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.
04-07-2009 01:37 AM
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.
04-07-2009 01:37 AM
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.
04-07-2009 01:57 AM
07-30-2009 05:50 PM
in page 4, you said must Add the HTML file that created to the project.
how i can do that?
08-03-2009 08:40 PM
08-03-2009 09:30 PM