05-10-2000 07:59 AM
05-10-2000 08:42 AM
04-02-2002 12:50 PM
02-15-2006 04:24 AM
02-15-2006 05:52 AM
The VI doesn't work because the cRIO doesn't support calling other programs and that's what the VI does - it calls the default web browser and tells it where to go.
Why do you want to open an HTML file on a cRIO? It's a real-time target with no display and so you can't actually see the web page. If you want to view the file from your computer, you can just use the "Open URL..." VI found in the Application Control>>Help subpalette and give it the proper URL.
02-15-2006 07:58 AM
This is that I'm looking for: we actually are publishing some VI in some html page, this page are in the rio web server folder. We can see them by an URL, now we want create a link in this VI (not in html bord) that visualize an external URL on the pc. So we need a supported VI for the cRIO that open a browser with a determinate URL on the pc of the client.
The "Open URL ..." VI generate this error message on the cRIO:
"Poly's VI' Open URL in default browser (string) .vi': sub VI not supported in current target"
Do you have any suggest?
Tanks a lot
02-15-2006 08:36 AM
If the computer has no LV program running, just the browser, then I don't think you can do this, because I don't think that the cRIO has any way of displaying web pages.
You could write a program which would use an ActiveX object of your browser in its FP and will connect to the cRIO through that ActiveX object and through the regular browser window. Then, you could also display the link on that program's FP and open it locally in the computer.
02-15-2006 08:55 AM - edited 02-15-2006 08:55 AM
The html page must be displaied on the client pc che crio must have only a link to a URL. For example: when I display an html page on the cRIO the browser are on the client PC only the file is on the cRIO. So i think that the problem is only if the cRIO support the link.
Message Edited by velectro on 02-15-2006 08:56 AM
02-15-2006 09:09 AM
But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
Here is the basic text from a sample file which tells the web browser to connect to a running VI.
<OBJECT ID="LabVIEWControl" ...
...
<EMBED SRC=".LV_FrontPanelProtocol.rpvi7" LVFPPVINAME="Web.vi" REQCTRL=false TYPE="application/x-labviewrpvi7" WIDTH=587 HEIGHT=466 PLUGINSPAGE="http://www.ni.com/webappdemos/lv"></EMBED>
</OBJECT>
02-15-2006 09:33 AM
@tst wrote:But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
Here is the basic text from a sample file which tells the web browser to connect to a running VI.
http://www.ni.com/webappdemos/lv">>
You can see that it's only a few lines telling the browser to connect to the VI. I think that to use the link you will either need an LV program running on the computer or you will need to write your own browser for the RIO (not a recommended solution).
Is all right, I know that the html file make only a connection to the VI, but the the web page file are on the cRIO.So I don't understand because you think that the browser must start from the cRIO. If I actually can visualize an html file, that is on the cRIO, and the browser are running on my pc, why a link from the VI (as www.html.it) must open a browser on the cRIO and not on client PC?