Discussion:
remote front panel cannot load in browser but works from labview
(too old to reply)
SidMayer
2006-11-11 17:40:06 UTC
Permalink
Problem is that the error "Fatal error occurred during operation, closing connection"
occurs after some timeout period when loading a web page with remote front panel.
 
The web page loads and first shows "Downloading panel.  0.00% of 0 bytes." as normal, but that message never updates and then
the error occurs.
NOTE that the application is running (it is blinking an LED on the FieldPoint controller), AND that I can use the LabView menu    Operate->Connect to remote panel, and it works fine (I enter the IP address and "main.vi").
So the app is OK, and remote panel access via LabVIEW is OK, just not access within the browser.
 
I made sure the browser (IE6) has that IP address set in the trusted sites zone.I turned my firewall (ZoneLabs ZoneAlarm Pro) completely off, and even stopped it, with no effect.
There is network activity when trying to load the panel in the browser, but it doesn't load.
 
System is Compact Fieldpoint, with LabVIEW realtime 8.2.
Loading a simple application that loops until a Stop button, displays a value.It runs OK, I have even embedded it as a startup application and it boots into the application just fine.
 
Any ideas?  Thanks....
 
Chris_C.
2006-11-13 17:40:08 UTC
Permalink
Sid,
I know you said you brought down your firewall. However, if you're running WindowsXP SP2, then you have a second firewall enabled also. Have you taken down the Windows Firewall?
 
Also, what happens if you use a <a href="http://digital.ni.com/public.nsf/websearch/72AE8CADA1AF075686256A16005D55B1?OpenDocument" target="_blank">crossover cable</a>? Using a crossover cable will eliminate any network protocols.
&nbsp;
Lastly, do you have a PC \ Laptop that doesn't have any of your companie's network configurations \ firewall software installed that you could try this on? Post to let us know.
&nbsp;
&nbsp;
Chris C
SidMayer
2006-11-14 02:40:06 UTC
Permalink
The ZoneLabs firewall integrates with XP and takes the place of XP firewall - if I look at XP firewall it is off.
I tried another computer with no firewalls, and even connected through a dumb mini-hub, nothing else on the network.&nbsp; I had to install LV8.2 runtime on this onesince it did not have LV at all.
Again, I can use <a href="ftp://192.168.0.10" target="_blank">ftp://192.168.0.10</a> and browse the file system on the cFP-2120. I can view the sample web pages that came already stored on the cFP-2120 (which have just text and images).I can bring up the web page that is supposed to contain the remote panel (generated by the web connection wizard originally).. and it looks like it will load,shows 0% of 0 bytes.. but then gives an error after 10 or 20 seconds.
Also, keep in mind that on my development computer I can use LV's Operate/Connect to remote panel feature and see the remote panel and take control and use it,so I know the VI is running.The web server is clearly enabled also.
Something is just going wrong with loading a remote panel in the web interface...
The cFP-2120 did get updated with all the latest software versions so it has the same LV version, 8.2 realtime.
Chris_C.
2006-11-14 18:40:10 UTC
Permalink
Hey Sid,
So the next step is to verify your Web Server Configuration for your target. If you right click on the target in your project window and select properties, you'll note a number of "web server" items in the list. For "Web Server: Configuration" the "enable web server" should be checked on. Next, in the "Web Server: Visible VIs" section, you should have a "*" (no quotes)&nbsp; with a green check mark in the visible VIs list. In "WebServer Browser Access" you should again have a "*" (no quotes) with a double green arrow in the Browser access list.
&nbsp;
Let us know you're settings. Thanks!
&nbsp;
Chris C
SidMayer
2006-11-14 21:40:08 UTC
Permalink
thanks... yes i do have * for all the access lists.&nbsp; I also tried specifically naming the VI I want to view under "visible VIs".Since I can view text/image web pages hosted by the cFP controller, I know the server is allowing me access.I also find that if I build a web page with embedded VI but I change the property to refer to a nonsense VI name that is not in the system,I get a sensible message in the browser that says that the VI is not loaded into memory.
So I think it is getting past all that, knows that the VI is there and is trying to load it as a remote panel, but it fails.&nbsp; I certainly wish theerror message had more detail than "Fatal error...".
Has anyone else been trying this with LV version 8.2 and cFP?&nbsp; Any chance it is a problem with 8.2?I did find already that I needed to download new FieldPoint drivers (later than the one on the CD in the cFP box) in order to get cFP to talkto LV8.2 at all.&nbsp; Maybe still a problem with the remote panel browser plug-in for 8.2?
Chris_C.
2006-11-15 20:10:07 UTC
Permalink
Hey Sid,
So in your first post you said that you could use remote front panels in 8.20 and cFP with a super simple app and it worked ok. I've also been able to use remote front panels with 8.20 and cFP.
&nbsp;
I'm not quite sure what the offending piece of code might be. I would start eliminating sections of code until it starts working.
&nbsp;
&nbsp;
Chris C
SidMayer
2006-11-17 03:10:09 UTC
Permalink
Latest experiment... I started fresh with LV 8.2 and used the "New real-time project" wizard.I created a project with the simplest possible options - no deterministic components, one loop, remote panel interface.I can deploy it and run it.I can connect to the remote panel using Operate / Connect to remote panel within LV.I copied the generated HTML file into the \ni-rt\system\www folder on the cFP unit using FTP.When I open that page from the cFP by double clicking I get the same problem - the page starts out OK but never loads and gives that error.(I tried putting the web page in the root folder too and setting it up to have the web root be the root and no change).
I have attached a ZIP of the whole project, but it is ALL auto-generated by LV.
Here are versions of all the software - maybe something else needs updating?&nbsp; In the cFP-2120:&nbsp;&nbsp; &nbsp;&nbsp; DataSocket for LabVIEW real-time 4.4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FieldPoint Drivers 5.2.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldPoint VI Manager 4.1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LabVIEW Real-Time 8.2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NI-IrDA RT 1.0.2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NI-Serial RT 3.1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NI-VISA 4.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NI-Watchdog 2.1.5If I go to Add/Remove software for the cFP in MAX, all the versions match the latest I have on my computer.


test1.zip:
http://forums.ni.com/attachments/ni/170/215926/1/test1.zip
SidMayer
2006-11-18 20:10:06 UTC
Permalink
Found it!&nbsp; finally...
In a way it was a dumb mistake, but not completely obvious.&nbsp; The VI and the web server were fine all alone, as you might expect since the remote panel could be accessed from within LabVIEW.The problem is that I opened the cFP in Internet Explorer through an FTP window in order to copy in the web page, so I used a URL like:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="ftp://192.168.0.10/ni-rt/system/www" target="_blank">ftp://192.168.0.10/ni-rt/system/www</a> then dragged in the web page.
I tried opening the web page by double-clicking on it from that view!&nbsp; That's the problem, IE opened the page, but not really from the web root, so whenthe browser control tried to load the remote panel, it did not work correctly.
When I finally started with a different browser window and went to <a href="http://192.168.0.10/whatever.html" target="_blank">http://192.168.0.10/whatever.html</a>, everything works fine, including my more complex app.
I would, however, contend that the browser plug-in should have much better error reporting.
Thanks for all your help!
rvc
2008-04-04 15:10:09 UTC
Permalink
I have a similar problem.&nbsp; I have created an Compact Fieldpoint application.&nbsp; I can view the remote panel on a IE window from the computer it was created on (Windows XP sp2), but not on a Windows Vista system.&nbsp; I have installed the LV RTE 8.5 on the Vista system but it still doesn't work.&nbsp; The browser brings up the Web view with the Title, description and footer that I created but the actual VI shows 0% of 0 bytes and doesn't go further.&nbsp; I have turned of the Virus and Firewall stuff still nothing.&nbsp; Any suggestions?&nbsp;
Regards,
Bob
Jennifer_R
2008-04-11 02:40:05 UTC
Permalink
Hi Bob,
Are you using the default Web Server settings (Tools » Options)?&nbsp; Specifically, are Visible VIs and Browser Access set to allow access?&nbsp; Have you tried a different port?&nbsp;
rvc
2008-04-11 10:40:06 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp; I am using the default Web Server settings.&nbsp; Visible VI is set to allow access and browser access is set to Allow Viewing and Controlling.&nbsp; I am able to access the remote VI on 2 different Windows XP systems.&nbsp; I just can't get access using Windows Vista.&nbsp; The screen stops at 0% of 0 bytes.
&nbsp;
Bob
Jennifer_R
2008-04-14 22:40:07 UTC
Permalink
Hi Bob,
Is there a browser plugin located&nbsp;at C:\Program Files\National Instruments\Shared\LabVIEW Run-Time\8.5\Browser Plugins\Internet Explorer?&nbsp; It&nbsp;should have been installed with the LabVIEW 8.5 Run-Time Engine.&nbsp; Also, I assume you have&nbsp; Administrator privileges if you were able to install the run-time engine.&nbsp;
Are you using the same version of Internet Explorer on the Vista and XP machines?&nbsp; Was the VI developed in LabVIEW 8.5?&nbsp;
These answers should help narrow down the error.&nbsp;
rvc
2008-04-15 10:40:05 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp;
rvc
2008-04-15 10:40:05 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp;
rvc
2008-04-15 10:40:05 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp;&nbsp;
rvc
2008-04-15 10:40:06 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp;&nbsp;&nbsp;
rvc
2008-04-15 10:40:07 UTC
Permalink
Hi Jennifer,
&nbsp;
&nbsp;&nbsp;&nbsp; The plugin (LV85ActiveXControl.dll) is in the directory.&nbsp; The application was developed using LV 8.5.&nbsp; The browsers used on the XP systems are both version 6 and 7.0.573 and work.&nbsp; They also use 128 bit cipher.&nbsp;The version on the Vista system is 7.0.6 and uses 256-bit cipher.&nbsp;&nbsp; I do have adminstative privs.
&nbsp;
&nbsp;
Bob
&nbsp;
p.s.,&nbsp; I don't know how I managed to have so many version of the reply popping up.&nbsp; I hit an enter the next thing I know there are 4 or so posts with nothing by Hi Jennifer.&nbsp; Sorry for the wasted bandwidth.
Jennifer_R
2008-04-17 00:40:04 UTC
Permalink
Hi Bob,
&nbsp;
I was able to view an embedded VI on a Vista 32-bit machine using Internet Explorer 7.0.6001, 256-bit cipher.&nbsp;
&nbsp;
Is there any difference in how your XP and Vista machines are connected to the network?&nbsp; Although I realize you disabled your antivirus software and firewall, are you aware of anything else that could be blocking communication on port 80?&nbsp; That is the default used by the LabVIEW web server and can be added as an exception to any security software.&nbsp;
&nbsp;
Does your Vista machine show as a remote connection when you view the web page?&nbsp; In the development environment select Tools » Remote Panel Connection Manager, which will display any connection and its status.&nbsp;
Loading...