Web Server Syntax Examples

Use the Web Publishing Tool to embed a static or animated image of a front panel in an HTML document or to embed a front panel in an HTML document so a client computer can view and control the front panel remotely. To embed the static image of a front panel in an existing HTML document, enter the top-level VI name of the application in the following scenarios.

To embed the static image of a VI named Example.vi running on the same computer in an HTML document, use the following code in the HTML document:

<IMG SRC="/.snap?Example.vi">

To embed the static image of a VI named Example.vi running on the computer foo in an HTML document, use the following code in the HTML document:

<IMG SRC="http://foo/.snap?Example.vi">

To embed the static image of a VI named Test 1.vi running on the computer foo using image type=png and image depth=24, use the following code in the HTML document:

<IMG SRC="http://foo/.snap?Test%201.vi&type=png&depth=24">