Open url in a remote panel

HI.
I want to put a button that launch a webpage. I works fine locally, when I click OK button, a  new internet window browser is open with the URL.
But if I take the control in other PC client (using Web Publishing Tool) and I click OK button a internte window browser is open in THE HOST. I want to open the new window in the Client.
Thanks.
I attach the VI (open_google.vi) and the HTML file created by WPT (test.txt)
Raymundo Cassani
Attachments:
open_google.vi ‏11 KB
test.txt ‏2 KB

Hello,
When you view or control a VI using Remote Panels that VI is executing on the host side. The VI will not be able to interact with the operating system on a remote panel client. This means that it will not be possible to use this approach to open a browser window on the client side.
You could take another approach- at least the way I would do it is thusly:
Instead of putting the button that launches the page in the VI you could put it in the html file that the remote panel is hosted in.
Using javascript you could pop up a new browser window with the URL you need.
If you need to control what URL is viewed from within the VI you could make the button point to a URL that will be handled by your VI that can redirect to the URL you need. This would be easy to do in 8.6 as you could simply export the VI as a web service. Pre-8.6 you would either have to use the G web server or build a minimal web server yourself (this would be easier than it sounds since the server would have to do nothing but redirect).
I should add that this approach would require some knowledge of HTTP/HTML/JavaScript.
Let me know how it goes.
Nathan
Message Edited by NathanK on 10-15-2008 11:07 AM

Similar Messages

  • Viewing web pages from remote panel error

    I used an activex container and put the web browser object into it.  Next thing I knew, everytime I would open that vi's remote panel via the web server, iexplorer crashes.  What gives?
    Grub
    Hell, there are no rules here...we're trying to accomplish something!!! - Thomas Edison

    Grub,
    How is Internet Explorer crashing?  Does it stop responding, or
    give an error?  Does the LabVIEW program have any errors on the
    host computer?  I did find a KB that talks about the limitations
    of remote front panels, and it mentions that ActiveX will not work, but
    does not say anything about crashing Internet Explorer.
    Check out the KB
    Repost with any additional information.
    Andy F.
    National Instruments

  • Remote Panel suddenly stops downloading at about 90%

    Hello,
    I have a Vi running in a cRIO and I want to control it with a web browser (Internet Explorer 7). The cRIO is connected to internet with a GPRS modem (MultiModem GPRS from Multitech).
    Because the GPRS connection is low bandwith, I can open remote front panels of small VIs, but the main Vi, always, stops downloading exactly at 90 seconds and that means a download of about 90%, as can be seen in the image I´ve attached. To open the remote front panels of small VIs tooks less than 90 seconds.
    The timeout for WebServer Configuration, in the cRIO, is in 360 seconds. I have, also, modified, witout success, the KeepAliveTimeout = 600000 and ServerInfoTimeou = 600000, for Internet Explorer (http://support.microsoft.com/kb/813827/en-us).
    So, any idea about what could be hapening?
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    RemotePanelStop.JPG ‏5 KB

    Hi James,
    Good morning and thanks for answer.
    I forgot to mention that I have made another test, that consist in connect the cRIO in our LAN, and I can open the remote panel without any problem. Obviously it took less than 90 seconds to download.
    I have attached the images of the main vi. I proved to remove the grafic and all the decorations but the size remains very similar (about 229000 bytes).
    I didn´t mention, also, that sometimes download only 50%, it depends in the upload rate, the cRIO  have, when opening the remote panel. I also tried to open,  without success, directly from Labview.
    Yesterday I made another probe, I´ve developed a vi (lets call intermediate vi) that is hearing the TCP port 80, and when a connection is established, it opens a connection with the TCP port 6342 in the same PC. After that, all the string received in the port 80 are redirected to the port 6342 and all the string received in the port 6342 are redirected to the port 80. It can establish multiple connections of these type. In that PC I have a Vi (lets call test vi) and the Labview webserver enabled in the port 6342. The purpose of the intermediate vi is to add the delay you want. I´ve inserted delays biggest than 90 seconds and instead I can open the test vi remote panel with the browser. Another interesting thing is that remote panel opens two connections to the port 80.
    I hope you can understand me.
    Thanks.
    Attachments:
    Tab1.JPG ‏119 KB
    Tab2.JPG ‏91 KB
    Tab3.JPG ‏86 KB

  • Opening a Remote Panel of the Top Level vi for an executable

    Hello Everyone
    I was wondering how you would open up a remote panel for the top-level vi in an executable?
    I have created a LabVIEW application and have tested opening the remote panel when it is running in the full labview development suite - this all works fine. I simply go operate>connect to remote panel and enter the server address, the port (8000) and the vi name using the path "My Project.lvproh/My Computer/main.vi" format.
    However, if I then build this application into an executable I do not seem to be able to open a remote panel - it might be that I am just entering the VI name incorrectly.
    with VI name = "main.vi"  or with VI name = "C:\builds\main.exe\main.vi" and the exe. running I get the error:
    Connecting to remote panel server...
    Requested VI is not loaded into memory on the server computer
    However I am not sure how else I would enter it.
    The main.ini has the following configuration:
    server.app.propertiesEnabled=True
    server.ole.enabled=True
    server.tcp.acl="0800000008000000"
    server.tcp.enabled=True
    server.tcp.paranoid=True
    server.tcp.port=6363
    server.tcp.serviceName=""
    server.vi.access=""
    server.vi.callsEnabled=True
    server.vi.propertiesEnabled=True
    WebServer.Enabled=True
    WebServer.TcpAccess="c+*"
    WebServer.ViAccess="+*"
    DebugServerEnabled=True
    DebugServerWaitOnLaunch=False
    Both machines have LabVIEW 2011 Profesional Development System SP1 on so I do not think it is a limited remote access licence issue.
    Any suggestions as to where I am going wrong would be much appreciated.
    Cheers
    John
    Solved!
    Go to Solution.

    It appears that you can infact use remote panels within an executable.
    The problem I had was that I had left the web server port for the remote panels the same as the LabVIEW development environment. That meant that the main LabVIEW web server was getting in the way of the web server that was associated with my built application.
    With the application's web server on a different port and the VI in memory (and the file in a library/directory external to the exe if it is not the top level VI), you just need to specify the VI name such as main.vi .
    Solved!

  • How to make a remote panel file dialog open remote directory from any computer

    Hello to everybody. I am using Labview 6.1 and I would like to know how to make a remote panel file dialog open remote directory from any computer (Not only from a specific computer. If I open the file with a specific computer, I have to conect the path of the remote machine, but if I don´t know which remote computer is going to run the aplication, how can I do it?)?

    Hi!
    first you have to know progammatically the name of the remote pc connected to your server: this is a problem!
    I did not find a straigth way, LV 6.1 doesn't allow much progammatic control on the remote panel connection feature, but I'm confident that in the next LV version this will be improved!
    The point is that the Remote Panel Connection Manager (from the Tools menu) has all the informations about the connection: client name, server vi and whatever.
    This application is embedded in the \PROJECT\REMOTEPANEL.LLB and consists of a set of password protected vis.
    So here's the trick: use VIServer to grab data from the rpcm Get Server Data.vi when the Remote Panel Connection Manager is in run mode. By this you get all the informations (not only client name)o
    f the remote panel connection. See my example.
    By the way use client machine name to build the file dialog function input path.
    If anybody has an alternative method it would be more than appreciated to share it.
    Good luck,
    Alberto Locatelli
    Attachments:
    get_remote_machine_data.vi ‏151 KB

  • Internal Error trying to open a remote panel in netscape 7.1 in linux

    /usr/local/netscape/netscape
    Internal Error : "fontmgr.cpp", line 1023
    LabVIEW version 7.0
    For assistance in resolving this problem, please exit and relaunch LabVIEW, or contact National Instruments.
    I got this error when I was trying to open a remote panel from a machine running windows 2000 to a machine with netscape 7.1 browser under linux redhat 7.3
    I have made a link in /usr/local/netscape/plugins LV7NPlugin.so -> /usr/local/lib/LabVIEW-7.0/LV7NPlugin.so
    I have also copied the file in /usr/local/netscape/plugins but it doesn't work.

    Here the official statement from NI
    The crash happens when LabVIEW can't open the catch-all font of "fixed" as a fallback when a particular font is not available on the system. The "fixed" font is ALWAYS supposed to be available on the system. The "fixed" font is provided by a font alias in the file /usr/X11R6/lib/X11/fonts/misc/fonts.alias. The alias should be defined in the first few lines of this text file. On a SuSE system where the crash is occurring, do an 'xlsfonts | grep fixed' . In a correct configuration, you should see a font called simply "fixed" in the output, but if not, this will cause the LV crash. I have not actually been able to reproduce the problem here without intentionally deleting this alias, because "fixed" is available on our SuSE syste
    m with the XFree86 packages from SuSE 8.2 installed. It's possible that this problem has already been corrected by SuSE, and the packages on their FTP site have been updated from the original CD release. Workaround: Download XFree86-4.0.3-19.i386.rpm or later from ftp.suse.com (or a mirror; ftp.mcs.anl.gov is a really fast one in the USA) and upgrade your X server. Verify that "xlsfonts | grep fixed" reports that the font is available. LabVIEW should then display an ugly fixed-width font for the missing font(s), but not crash.

  • Why crashes LV 8.0.1 when opening remote panel

    Hi everybody,
    everytime I try to open a remote panel to my vi from another VI Labview (remote client) crashes completely. It worked fine with LV 8.0 but not with LV 8.0.1 on a linux machine (Suse 10.0). When I try to open the panel in a browser it says that the run time engine is missing. But installing the rte doesn't work because the script says it's already installed. There is no difference if I try it locally or on a remote machine, both running LV 8.0.1 on Suse linux 10.0.
    I'd appreciate any tip, thanks
    Clemens

    Hi Robert,
    I just gave up using Lv 8.0.1 because I had nothing but problems with it and the original problem I instellad it for wasn't solved and in the meantime I was told I had to live with it. The strange thing with the RTE was that it worked with some vi's but not with all. But it worked with all vi's usting LV 80. The migration form LV 7.1 to 8.xx took so much time that I'll stay as long as possible with it ignoring all further updates.
    Regards Clemens

  • Make a remote panel file dialog open remote directory

    My remote panel file dialog opens in local directory
    How TO: Make a remote panel file dialog open remote directory? Ideas, examples, welcome.

    Hi!
    I have done that, but i have the same problem.
    I want to control an application from a remote machine. At the biguinning of the application, I have so open a File to save all the data to this file. When I run the application from the server machine, I have no problem, the dialog box "save as" opens and I save there my file with al the data, but when I control the application remotely, the dialog box "save as" does not open, and I get the error 43. Do you know what do I have to do if I want to run and control the aplication from a remote machine and save all the data in a file?
    Thanks a lot

  • Url for remote panels

    Hello,
    I've got my remote panels working with computers that are both behind a router.  But when I try to use the url on a computer which is connected to the internet, it doesn't find the server.  I'm pretty sure my problem is that I'm running the LV Server on a computer that is connected through router.  So the router assigns IP addresses to the computer.  If I use the IP address of the router in the url, it still doesn't work.  Does anyone know how to set up a url that will access a server that is connected through a router?
    Thanks,
    Pat

    pwalsh wrote:
    I've got my remote panels working with computers that are both behind a router.  But when I try to use the url on a computer which is connected to the internet, it doesn't find the server.  I'm pretty sure my problem is that I'm running the LV Server on a computer that is connected through router.  So the router assigns IP addresses to the computer.  If I use the IP address of the router in the url, it still doesn't work.  Does anyone know how to set up a url that will access a server that is connected through a router?
    Your problem is not the presence of a router (there are typically tens of routers between any two points on the internet ), but the fact that your router is doing NAT.
    With the typical M-1 NAT used in home routers, the LAN behind the router contains a subbnet of dedicated private IP addresses, all hiding behind a single public IP address on the WAN side of the NAT router.
    For any outgoing connection established from the LAN side, the router creates a NAT session entry and forwards the packet to the WAN using its public IP address as source. Returning packets arriving at the public side are matched with sessions in the table so the packets can be sent to the correct LAN computer that requested it. Of course this poses a problem if you are running a server, because the router has no idea where unsolicited incoming packets should go and needs your help. Go to the router configuration page and look for a menu for port forwarding or similar. Basically you need to instruct the router that unsolicited packets arriving at the public IP with a certain destination port should go to a specific LAN IP address.
    Once the port is forwarded, outsiders need to contact the public IP address of the router (remember, private addresses have no meaning on the outside!).
    LabVIEW Champion . Do more with less code and in less time .

  • Remote Panel and Internet Explorer

    Hello. I have a problem with a Remote Panel and Internet Explorer. I create a measurement system in LabVIEW. It�s composed of a main front panel and a few subVIs with independent front panels opened from main Front Panel when I press appropriate button. As a local system everything works ok but I try to create a web version of this system. I decide that I can use a Remote Panel. In Web Publishing Tool I was creating a web page for each of Front Panel. I try to have the same functionality as in local system, so when in Front Panel (opened in Internet Explorer window) I press appropriate button I want to open secondary Internet Explorer window with a subVI inside. And now I�m stuck because I can�t open this secondary window in a network w
    orkstation. Has anyone have an idea how can I do it?

    > Hello. I have a problem with a Remote Panel and Internet Explorer. I
    > create a measurement system in LabVIEW. It?s composed of a main front
    > panel and a few subVIs with independent front panels opened from main
    > Front Panel when I press appropriate button.
    I think you have two options. You can open most modal subVI panels
    directly on a remote machine. The popup panels won't be in a web page,
    but it will work with few changes.
    A second approach would be to change the app slightly. The buttons that
    launch the subVIs will turn into URL links. The links will open a web
    page with a different embedded panel.
    Greg McKaskle

  • Remote panel and selective control access through Security with DSC

    Hi Everyone,
    I looked around to see what labview had to offer concerning security of remote panel and all the solutions I've found only propose full access to a remote panel, or none. The login page is not an option for me as everyone on the intranet can access the remote panel for monitoring but not everyone can have control to the buttons on it.
    With the DSC module, I can give securities to the different controls and it works great with the exe, if I log in or out, the controls appears or disapears. Unfortunately, with remote panels, those controls are always visibles. Furthermore, when I log in from a remote panel, all the other remote panels get logged in with the same username and priviledges. When I log out, same thing, it logs out all the other remote panels. So the last guy who logs in gives its priviledges to every one else who is monitoring the remote panel at that time. when he logs out, he logs everyone out. I used a reentrant vi hoping that this would solve the problem but it didnt.
    I would like to do what my colleague does with Advantech without any problem. He has only 1 .exe is running on the server and whoever connects to it through webserver, just needs to log in and he has all the priviledges of an guest, operator, admin, etc.. with access to controls and features accordingly. All this without interfering with the other people using the remote panels. This colleague has always been doubtful about the capabilities of labview to do SCADA systems and uptil now, I've been able to prove him wrong.. please help me continue
    There are workarounds, using remote desktop to the server instead of webserver but it definitely is not as practical for the client and it will need quite some work to to synchronise all the exes open from the differents sessions, through the use of shared variables, binding and securities.
    Thank you for your help.
    Solved!
    Go to Solution.

    Thank you very much for your reply Jordan.
    The NI security info is on the server (local domain with groups and users), and the running exes as well. The remote panel is not supposed to be accessed by internet, at least not yet, but just by the computers on the network and thinkline computers who are directly connected to the servers. the remote panel is accessed through the simple url: http://serverip/Application.html
    There is no problem with accessing the remote panel of the exes on the server from another computer on the network. But there are several security issues when logging in and out with the NI Security Programmatic Login and logout VIs through the remote panel..
    The 1st problem occurs when several people access the remote panel at the same time. In my setup, everyone is allowed to check what's happening on the front panel of the running exe, go through the tabs, check the graphs, the tables, etc.. , but only the administrators and the operators can send commands to the machines and the production line through this remote panel. Hence some buttons are accessible to all users, while others are only accessible depending  on the privileges of the person logged in.
    So like I said in the 1st post, I configured some buttons to be accessible only by the users of the admin group. When the exe runs, it's perfect, if I log in and out with an admin account, the buttons appears and disappear accordingly. But when I check the remote panel, those admin buttons are always visible, even if I am logged in as a guest or even logged out. Is it because the remote panel only needs minimum runtime engine and doesnt use the dsc runtime engine? if so, any work around?
    Furthermore, another big problem is that if I login as an admin in one remote panel, then login as an guest in another remote panel, and then logout back from the first remote panel, it says: "User Domain/Guest logged out". Hence, my second login logged out my first user. I can actually see the admin buttons appearing and disappearing on the exe when login as admin and guest from the different remote panels.
    So that's it, I would like my remote panel to behave like a normal scada system, with one exe running in the back (on the server) and with all the users accessing it through web server. Several users might/will access the remote panel at the same time and each of the users have a login/password that grant some of them the privileges to take some actions while giving the others only monitoring rights.
    I hope that I have been more clear in this 2nd post,
    Thank you again for your time.
    Best Regards,
    Tom.

  • Is it possible to embed a remote panel in a subpanel?

    When I connect to a remote panel it opens its own totally seperate window from the calling VI. Is it possible to open a remote panel in a subpanel of the calling VI. If this is not possible then as remote web panels make use of Active X would an Active X container work?
    Thanks

    Hi Peter,
    I've set this up with a small test and it seems to work ok. You just need to create an activeX control and select the Microsoft Web Browser, and then for the navigate property, select the URL that you want to point to - in this case, your LabVIEW remote panel. Requesting control etc still seems to work ok in this configuration.
    Take a look at the attached vi's and html page - you'll need to copy this html page into your 'C:\Program Files\National Instruments\LabVIEW 8.2\www' directory to get this to work, and make sure you have the web server configured correctly. The browser vi is the one to run - with the test vi being the one in the remote panel.
    Hope this helps
    Regards
    Hannah
    NIUK & Ireland
    Attachments:
    test.zip ‏14 KB

  • Password protected remote panel empty after login and connecting

    Dear Ladies and Gentleman
    We like to access our front panel by web (to be able to see what is happening) which works fine. We need also password protection in order to assure only some people have access. For this case we installed LabView 2009 SP1 32bit together with the Internet Toolkit. After following How to Setup Security for the G Server? we are forced to enter a password when opening the URL in firefox. If the correct password is entered the web site opens BUT the plugin which is needed to open/show the embedded LabView panel applet does not work!! There is a grey box indicating that something is actually going on, but nothing appears...
    If we do not use password protection (i.e. G Server but the default LabView Server) everything works fine.
    We are using an evaluation version of the Internet Toolkit but if this issue can be solved we would like to buy it.
    Thanks a lot for your help and time
    Greetings
    Ursin Solèr
    (ETH Zürich)

    Hello Joseph
    Thanks for your reply - actually I remember to have read the document you mentioned. I read the note also... but I have to admit that I did not understand what's the point;
    - I do not want to 'Import' something but to 'share' / 'publish' / ...
    - I do not understand what a Web Services are and what I do they need for
    - I do NOT have any CGI code (just a simple VI)
    - I JUST WANT TO PROTECT A WORKING REMOTE VI WITH A PASSWORD (e.g. instead of showing the VI to me, ask first for a password and THEN show it)
    Sorry but as I can see this should be easy since it should be a quite common task, doesn't it? In early LV versions (before v8 or may be v6) this was simple and
    described in several documents:
    - http://digital.ni.com/public.nsf/allkb/8D8A18E0348920A48625703B00789A41
    - http://digital.ni.com/public.nsf/allkb/427FE409FB11575686256DFF0008BBE4
    PLEASE HELP ME! In about 1 week the evaluation period of the Internet Toolkit is over... Do I really have to write my own code for this? Is there no simple
    built-in solution?
    Greetings

  • Open url from xchat in opera

    I'd like to open urls from xchat in opera.
    Under settings>advanced>url handler:
    !opera -remote 'openURL(%s)'
    xchat has tcl as an optional dep, so I installed that.
    This is in xfce4 and I have set opera as the preferred browser.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Remote Panel not working in Windows 7 Starter

    Hi all,
    We have an application that can be controlled via remote panel. This is working fine in Windows XP PC. But when I try to access the same by opening Internet Explorer in a PC running Windows 7 Starter OS, I only get the 'Downloading 0.00% of 0 bytes'. I have disabled the Windows Firewall and there is no antivirus software also. What could be the reason for this? How could I solve this?
    Thanks in advance,
    Priyadarsini
    Solved!
    Go to Solution.

    The system which had the problem was a netbook that came with Windows 7 Starter. We found out recently that there was some parental controls utility in the netbook that prevented the LabVIEW Remote Panel access. We were not aware of its presence & it had not shown any indication that it had blocked Remote Panel communication. We uninstalled this utility & the Remote Panel started working as intended. Thanks again for your help.

Maybe you are looking for

  • Message Duplication in Integration Engine

    Dear all, We have issue in one of our PI Production Servers. It is an inbound interface, Idoc flat files are being picked up by PI and are converted into proper SAP Idocs by ABAP Mapping. In this case, messages are getting duplicated and SAP Idocs of

  • Combo box , error type !

    Hello, I've got an error I can't find since 2 days ! I'm trying to build a simple combo box in which there are some data from my database . It's to deploy a process under jBoss jBPM but the error is a JSF one : Here is my JSF form code :     <jbpm:da

  • How can I generate a TOC that could be available with PDF export tool

    Hi, I would like to export a ibook author as a PDF document. Until now, I could see the TOC on my PDF. Nevertheless, as an ebook, everything is ok. Any help would be deeply appreciated it. BR Pedro

  • R4 - EA - two possible bugs?

    1. When editing a package in release 3.2 and previous releases, if you clicked on a function, procedure, declaration, etc in the connection tree, the package would load (if not already loaded) and be displayed at that point in the package spec or bod

  • Lost my trust in Paypal

    I was cheated of around 350 usd. I filed for dispute first time in paypal they say they do not cover non tangible items but now after the ebay split they say they do. I refiled the case since last month. The guy who scammed me was a serial scammer hi