02-22-2006 08:12 AM
02-27-2006 11:43 AM
However, if you already have an HTML document, use the following syntax to embed a VI in the HTML document so a client computer can view and control the front panel of the VI in a browser. Include the parameter in brackets [ ] if the VI you want clients to view and control is located on a remote computer. Refer to Web Server Syntax Examples for examples of embedding VIs in HTML documents.
<OBJECT ID="LabVIEWControl" CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807AB" WIDTH=x HEIGHT=x CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/7.0/LVRunTimeEng.exe"> <PARAM name="LVFPPVINAME" value="VI_NAME"> [<PARAM name="server" value=COMPUTER_NAME or IPADDRESS>] <EMBED SRC=".LV_FrontPanelProtocol.rpvi7" LVFPPVINAME="VI_NAME" TYPE="application/x-labviewrpvi7" WIDTH=x HEIGHT=xPLUGINSPAGE="http://www.ni.com/webappdemos/lv"></EMBED> </OBJECT>
The following list describes the parameters you must configure.| OBJECT WIDTH | Width of the front panel in pixels. |
| OBJECT HEIGHT | Height of the front panel in pixels. |
| CODEBASE | The location of the LabVIEW Run-Time Engine installer, including the name of the .exe file, for clients who access VIs using the LabVIEW ActiveX Control. |
| VI_NAME | The name of the VI, such as Example.vi. VI_NAME does not include path or directory names even if the VI is located in a subdirectory or inside an LLB. |
| COMPUTER_NAME or IPADDRESS | If the VI is located on a remote computer, you must supply the domain name of the computer, such as http://foo or the IP address of the computer, such as http://130.164.76.753. |
| EMBED SRC | If the VI is located on the local computer, set this parameter to .LV_FrontPanelProtocol.rpvi7. If it is located on a remote computer accessible through the computer name, set the parameter to http://foo/.LV_FrontPanelProtocol.rpvi7, where foo is the computer name. If it is accessible through the IP address, set the parameter to http://IPADDRESS/.LV_FrontPanelProtocol.rpvi7, where IPADDRESS is the IP address. |
| EMBED WIDTH | Width of the front panel in pixels. |
| EMBED HEIGHT | Height of the front panel in pixels. |
| PLUGINSPAGE | The URL where clients can download the LabVIEW Run-Time Engine installer, for clients who access VIs using the Netscape plug-in. |
| Robst - CLD |
| Using LabVIEW since version 7.0 |
03-13-2006 02:41 AM