Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO web server

Solved!
Go to solution

Hello Svein,

 

You can see this forum as a NI support of a global scale, with not only support engineers of the local branches, but also NI R&D personel and a lot of users that might have to same hardware and are able to reproduce your issue and thus uncovering a bug (driver, labview or other) or error in configuration.

 

The forum also acts as a place where information can be found by anyone, not just NI personel, so by continuing the discussion you might help others that otherwise would have to start there own thread. 

 

By the way all the users with a blue bar instead of a yellow one are NI.

Message Edited by andre.buurman@carya on 11-08-2009 01:19 PM
Regards,
André (CLA, CLED)
0 Kudos
Message 21 of 38
(3,414 Views)

Svein-

 

     I'm glad to hear that you've contacted NI directly, this should be a quicker resolution.  As Andre said it's still worth writting on the forum, in case another customer has the problem and can help.  I'm confident that direct support can help, if not post back and let me know.  Also, if you remember, once you'd identified the issue and solution, post back and let us know.

 

Regards,

 

John

0 Kudos
Message 22 of 38
(3,396 Views)

OK, well I guess this information is worth sharing: 

 

I just got a phonecall from NI Norway, they have confirmed my problem on their cRIO 9002. I have since that tested on a 9012, and the web server works there (with a new created project). So there seems to be a general problem with the web server on the 9002 in addition to the issue that started this tread.

 

Svein

Message 23 of 38
(3,393 Views)

Same problem here.  Tried all of the mentioned solutions in this thread (the one's I could understand anyway).

 

Slightly different twists for me, in that I've actually got 3 Rios (1 9074, and 2 9014s) in a project originally created in 8.6.1f1, CRio 3.1.1.  Funny thing, the 9074 web server didn't run (it's down for the moment and so physically unavailable for testing), the first 9014 did properly run the web server without troubles, and the last 9014 gave the same problems as the 9074 did originally, i.e., it didn't work.

 

In the end, this worked for me to get the server going:

 

go into the ni-rt.ini file located on the root

find the line in the [LVRT] section that says: WebServer.Enabled=FALSE

change this to WebServer.Enabled=True

save the ni-rt.ini file and replace the old one

reboot the cRio controller

 

(I'm not sure if the data values are case sensitive, so be wary of that.)

 

Now, I must say that I've done a couple things in this thread, so it could be a combination of replacing the niwebserver.conf contents first (no immediate relief) and next replacing the value in the ni-rt.ini file as mentioned above.

 

All this being said, I've just done this, so I don't know if this is a lasting solution or not, but it seemed to work for me.  I hope it does for those still having trouble as well.

0 Kudos
Message 24 of 38
(3,342 Views)

I understand this thread is a bit old. But I've tried doing the posted solution and I cannot get my cRIO's remote front panel to work in Labview 2009; even after I create a test project in 2009. (I can't even get the test to work 😞 )

 

I'm using a 9012 with a 9102. LV 2009, RIO 3.4.0 anything else?

 

Do you have examples of wrong AND correct niwebserver.ini files so I can figure out which I need?

 

Thank you in advance for any help.

 

~Andrew

0 Kudos
Message 25 of 38
(2,793 Views)

I'm not sure this thread applies to LV 2009.  This solution seemed to work for me in LV 8.6 for getting the webserver going.

 

Before you mess with the ini file, you need to make sure this is your problem.  If your web server is running (ie, you can see the LV default web page when you navigate to the Rio) then this is probably not your problem.

 

All this being said, I've also had problems with LV2009, SP1.  It seems that the RFP system doesn't correctly increment the license number needed to display a front panel.  In fact, it increments more than it should, causing your system to run out of licenses and shutting the RFP server system down.  It may timeout, but it doesn't seem to reset immediately.  I have a 5 count license, and I still can't use my RFP properly.  I had to contact LV support and after lengthy debugging sessions, they were able to help me get it going with a workaround.  Unfortunately, I can't give you the work around because it requires their assistance with the licensing files.  They may have a better workaround for this now, though I'm not sure.

 

I would first try and see if the web server is working to make sure that is not your issue.  Just see if the LV default index page will show up without a RFP (or you could just create an index.html and place it on the Rio).  You can also tell if it says the remote front panel connection is unavailable in a web page, and/or you see a timeout message or representation that you actually made a connection to a web page, whether or not an RFP error is present.

 

You might try searching some more on the forums and in the support area, or even possibly upgrading to 2010 if it's available to you to see if it solves your issues.  I haven't tried this yet to see if it would work for me.

 

0 Kudos
Message 26 of 38
(2,788 Views)

I am currently using 2010 SP1 professional with RT and FPGA options, and also can not get the front panel to show via the web browser. I have tried almost everything on this thread! Someone must have a solution.

 

In summary as it may help others...

The title, header and footer is displayed but no front panel, just a placemark where it should be. Tried embedded, snapshot and updated snapshot.

Tried rebuilding the application and deploying. No difference.

The actual servo application runs correctly.

The remote panel connection runs correctly,

The web server appears to run correctly as the Web browser default page on the target works fine. The Web server is enabled (checked) on port 8080.

The remote panel connection (RPC) licenses are checked and I have 5 remote panel licences available.

All antivirus and firewall features are turned off. Browser pop ups enabled.

When the Web page is built using web publishing, it seems to be about 1k in size. I thought this would be bigger

 

I am running NI RIO 3.5.1 on the target.

The target is a CRIO 9022

 

Nothing seems to be straightforward using CRIO.

0 Kudos
Message 27 of 38
(2,225 Views)

Make sure you assign which VI is the main front panel program during the build, and also make sure you have enabled the check-box stating to include all referenced sub-vi's (include if called). After the build (you can specify where these files actually are put on your PC), use MAX (or any FTP program) to upload these files into the correct folder on the cRIO (the startup file as well as the supporting files and folders in the build directory that are created). In my experience, the RTapplication build never really gets uploaded to the target, but what I'm doing is making a program that runs on startup, which may not be what you want to do.

 

In any case, make sure you have installed LV-Runtime engine on the machine you are pulling up (Internet Explorer seems to work best, and I'm not sure about 32 vs. 64-bit issues). I've noticed that if you highlight the Main VI in your project and build a remote panel for this VI, installation of the Runtime engine installation is embedded into the webpage (so it will download and install the plugin if necessary).

 

Keep me posted on your progress and I'll help as much as I can - it was frustrating me a ton back for version 2008/2009, so I'll be glad to help you as much as I can.

><><><><><><
Tommy R.
><><><><><><
0 Kudos
Message 28 of 38
(2,223 Views)

Wow that was quick! Thanks for your time.

 

I have assigned the correct Main vi and included all other files for the build. I righht click and deploy once build is complete. I have checked the file dates in target\ni\rt\statup folder and they get updated with the new ones. The RTapplication runs fine and with remote panel connection, just not the web based remote panel service.

I am using a web browser on my machine with labview installed, so the run time engine should be present. Tried internet explorer and firefox. I am running win7 x64 pro though.

 

When you say highlight the main vi and build a remote panel for this, i cant see the option for this specifically, so maybe thats the issue. I have used the tools\web publishing tool and specified the main vi. I've tried embedded option, snapshot and monitor and no joy. Have i missed something obvious? Do I need JAVA or something installed for the web browsers. They seem to be there.

thanks again.

0 Kudos
Message 29 of 38
(2,222 Views)

Hello,

 

Thanks you for posting on National Instruments Forum.

 

I think that you should repeat the following procedure :

 

Configuring Remote Front Panels on a Real-Time Target

 



Brice S.
National Instruments France

0 Kudos
Message 30 of 38
(2,215 Views)