Syntax Examples

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">

To embed the animated image of a VI named Test Example.vi that updates once every 2 seconds for 3 minutes from the computer foo, use the following code in the HTML document:

<IMG SRC="http://foo/.monitor?Test+Example.vi&refresh=2&lifespan=180">

To embed the front panel of a VI named Example.vi in an HTML document so a client computer can view and control the front panel of the VI in a browser, refer to the following examples:

If the VI is running on the same computer in an HTML document:

<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AA" WIDTH=650 HEIGHT=500> <PARAM name="LVFPPVINAME" value="Example.vi"> <EMBED SRC=".LV_FrontPanelProtocol.rpvi" LVFPPVINAME="Example.vi" TYPE="application/x-labviewrpvi" WIDTH=650 HEIGHT=500> </EMBED> </OBJECT>

If the VI is running on the computer foo:

<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AA" WIDTH=650 HEIGHT=500> <PARAM name="LVFPPVINAME" value="Example.vi"> <PARAM name="server" value="http://foo"> <EMBED SRC="http://foo/.LV_FrontPanelProtocol.rpvi" LVFPPVINAME="Example.vi" TYPE="application/x-labviewrpvi" WIDTH=650 HEIGHT=500> </EMBED> </OBJECT>