From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is the explanation given in http://www.ni.com/pdf/labview/us/compactrio_motor_control_basics.pdf still valid for web browser control?

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

0 Kudos
Message 1 of 6
(2,367 Views)

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!

Applications Engineer - Certified LabVIEW Developer & Certified TestStand Developer
0 Kudos
Message 2 of 6
(2,342 Views)

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.

 

Aarthi
0 Kudos
Message 3 of 6
(2,330 Views)

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.

0 Kudos
Message 4 of 6
(2,319 Views)

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.

0 Kudos
Message 5 of 6
(2,308 Views)

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.

Aarthi
0 Kudos
Message 6 of 6
(2,301 Views)