LabVIEW Web Server

Web Document Tool

You can easily contruct simple web document that contain VI images or animation using the Web Document Tool wizard. You launch the Web Document Tool by selecting the Web Document Tool... item from the Project menu.

In the wizard, you can specify which VI's image you would like to publish along with text that is displayed before and after the image. You'll be able to preview the web page and save it in LabVIEW Web Server's document directory.

Web Document Tool Inputs

Begin constructing your page by specifying the text and VI in your web page.

Document Title
This text will be displayed the title of your document. It will be also displayed in the browser window's title bar.
Text 1
This text will be displayed abovew the VI image.
VI Name
This item specifies the VI whose image is going to appear on the page. You can use the menu to select an open VI or choose a VI on disk. You can also directly enter a name of a VI.

The Border checkbox specifies whether the VI image will be surrounded by a black border.

The Animated checkbox specifies whether the VI image will be animated (only supported on Netscape Navigator browsers).
Text 2
This text will be displayed below the VI image.

Previewing the Page

When you have specified the content of the page, you can preview it by selecting the Preview in Browser button. This will launch you default web browser application and display your page.

Note:
If the "Preview in Browser" button is disabled, it means that the LabVIEW's Web Server is currently not enabled. You can enable the Web Server in the Preferences dialog or you can directly start it using the Start Web Server button. If the Preview button remains disabled, it means that the Web Server could not be started, maybe because TCP/IP is not correctly configured on your machine or another application is already using the server's port.

You can change the strings in the Web Document Tool input fields and select the Preview button to see how the changed document appears in the browser.

Saving the Page

Once you have designed you page, you can click on the Save to Disk button to save your web document. It is important that you save the document within the server's root directory (the File Dialog will initially point inside the root directory).

After you've saved the page, the wizard will display the URL that can be used to access your document from a remote computer.

Advanced Editing

You can use web authoring software (such as Adobe PageMill, FileMaker Home Page, Microsoft FrontPage or Netscape Communicator) to edit the documents you've created with the Web Document Tool wizard.


© National Instruments