01-25-2012 09:44 AM
Hi all,
I am trying to control a cRIO application (FPGA vi + Host vi on cRIO microcontroller) from a web browser. Searching for a way to achieve it I found this example:
http://www.ni.com/pdf/labview/us/compactrio_motor_control_basics.pdf
My application does not use the same I/O, but I believe the steps to using it remotely via a web browser should still apply, right? Well, after following the steps here, I rename the hostvi.html to index.htm, as it indicates in the instructions. I then click. 'To Remote'. After this, it starts 'thinking', and after a few seconds it asks me if I want to overwrite the file, which I accept (as it says in the guide). The problem is that right after clicking OK to the overwriting, a pop-up appears saying 'Connection timed out... Closing FTP client', as it can be seen in the image attached. When I click OK on this, the whole File Transfer window closes automatically. I have tried typing the IP address of my cRIO in the address bar of a web browser, but instead of getting the host vi's front panel, the 'NI Web-based Configuration and Monitoring' window appears.
I don't know if I am doing something wrong, or if maybe the instruction are not up to date anymore (I am using Labview 2011 and this was apparently written for Labview 8.20).
Thanks a lot in advance
01-30-2012 08:23 AM
Hi!
Could you attach the picture with the error?
Are you on the same subnet as the cRIO? Are you able to navigate to the cRIO through your web browser (ftp://xxx.xxx.xxx.xxx)?
Willing to help you!
01-31-2012 11:27 PM - edited 01-31-2012 11:30 PM
Hi gabrielcasano,
When you type the ip address of compactrio in the browser,
it takes the port number : 3580[which is set for rio by NI], when u enable remote panel server
in crio, you have to give some new port number which is not being used by any application.
Then you enter http://ip-address : portnumber in the browser.After setting this, see whether you have
any connection problem.
02-01-2012 04:20 AM
Hi,
Thanks for your reply. I think I have attached it correctly this time.
About navigating to the cRIO, when I type ftp://ip-address it takes me to the root directory, but when I click on the html, It tries to load the front panel, but in the end it says 'Remote panel connection is closed'. Maybe this does not matter, but I have the cRIO connected directly to my development PC using a network card. Also, the pc has another network card that is uses to connect to the Internet. The cRIO is configured with a static IP address, while the internet connection on the pc has, at the moment, a dynamic one.
I hope this information is useful, and thanks again for your help.
02-01-2012 05:09 AM
Hi Aarthi,
Thanks for the help. If I understand you correctly, I think I have enabled remote panel in Tools>>Options>>Web Server. I have attached a screenshot of this just in case. If I understood correctly, when enabling remote panel server, the http port that gives you by default is 8000 (as seen in the screenshot as well), so I left it like that. Then, when typing the address in the IE, I get the following:
http://ip-address:3580 I get the NI Web-based Configuration and Monitoring site.
http://ip-address:8000 It says 'Internet Explorer cannot show the website' (sorry, I have the computer in Spanish, so I don't know if the translation is correct). When clicking on 'resolve problems' IE tells me 'The remote device does not accept the connection'.
I am a bit puzzled by this, so I would appreciate any help.
Thanks again.
02-01-2012 05:17 AM
Try using only IE browser, which version are you using.
Try to change the port number[8000] to some other, say 7000 and try it out.[http://ip-address : port number/file.htm]
Also is the html file is in extension of .htm??
Try to deploy after changing port number.
It works in LabVIEW 2010. i am not aware of 2011.