LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Server on cRIO 9012

Hi!
 
I want to use a web server on my cRIO 9012. I need it because I want to have a remote panel to access my programs on every PC on the one hand and on the other hand I want to choose, which applikation should run on the cRIO.
It shows the configuration for the web server.
When I call the website I can see the Title of the page, the textline before the VI and the line after the VI, but the VI is not displayed. Do I have the modify the html file before I copy it via ftp on the cRIO.
I use LabVIEW 8.5.
 
Thank you for your help.
regards,
demo66
0 Kudos
Message 1 of 10
(8,514 Views)
Hi demo66,

maybe you forgot something.

the procedure is like

- create a new project
- add the RT-target (cRIO)
- create a VI that´s gonna be the VI with the Frontpanel displayed in the Website later
- test that VI by simply running it and therefore connecting to the target
- enable webserver on the target (rightclick the target in the LV-Project-Window)
- reboot the target
- build a website from the VI with the Web-Publishing Tool in LabVIEW/Tools
- copy that website down to the target via ftp
- create a new RT-Startup-Application under Build-Specifications in the Project Window
  and build that app
- deploy all to the target from the Project Window (Rightclick the Project.lvproj)
- Reboot the target
- type IP-Adress of target and hit ENTER to check if the webserver is started (default site must be loaded)
- finally type IP-Adress/Website.html to load the website


This works, I tried it.


best regards

Marco Brauner NIG
Message 2 of 10
(8,500 Views)
Thank you Marco Brauner!
I tried it with your guidance and it worked at the first time. Maybe it didn't work because I deployed the builded applikation and not the whole cRIO target with deploy all.
 
regards,
demo66
regards,
demo66
0 Kudos
Message 3 of 10
(8,463 Views)
Hi!
I want make a webserver to choose any of multiple startup applikation's.
Does anybody know a good solution for that?
 
regards,
demo66
regards,
demo66
0 Kudos
Message 4 of 10
(8,446 Views)
Hi again,

if you want to be able to start and stop VIs on the RT-Target, you have to implement a VI as
Startup-Application which calls THESE VIs via VI-Server on demand. Look into the NI-Example-finder (search for "VI Server") and you´ll
find a couple of examples for using VI-Server to start run and stop/unload VIs.  There´s a lot more you can do with VI-Server,
but don´t use it for main data-transfers as a replacement for TCP/IP-Host-Target-Datatransfer. It´s slow.

Hope that helps.

Marco B. NIG
0 Kudos
Message 5 of 10
(8,394 Views)
Hey Everyone,

If you are looking at this thread, just be aware of one small caveat.  To use a web browser to control a RT application, you will need to have the LV Run-Time Engine installed on the device running the web browser.  Just wanted to make sure there was minimal confusion on this point.  You can observe snapshots without the run time engine.

Have a great day,

Michael D
Applications Engineering
National Instruments
0 Kudos
Message 6 of 10
(7,348 Views)

Hello.

 

I have a problem with a remote front panel on cRIO 9014 platform. I use a procedure like that below

 

http://digital.ni.com/public.nsf/allkb/7FEE6BCFD264175C8625723E000D928E

 

when I type IP-Adress of target to the web browser, default site is loaded. It seems that web server works correctly. Then I typed IP-Adress/MyPage.html, it's show my site, but on the place, where should be display VI panel is rectangle with a text: Downloading panel. 0.00% of 0 bytes. The build VI is deployed in a platform and runs. Function is signalized on the status LED of cRIO platform.

 

I use LabView 2009 and NI RIO 3.2.0

 

Thanks for reply Paddy

 

 

 

 

 

Message Edited by Paddy03 on 02-25-2010 08:15 AM
Message Edited by Paddy03 on 02-25-2010 08:16 AM
0 Kudos
Message 7 of 10
(6,658 Views)
If your panel just sits a 0%, I'd say it  might be your virus protection. The IT guy at my company installed one on my computer and caused a good 3 days of chaos in my life. Turned out I had to disable the web anti-virus protection that he installed. Hope that helps.
Message Edited by TJ Reed on 05-05-2010 04:48 PM
0 Kudos
Message 8 of 10
(6,436 Views)

Hi @ all

 

I got the cRIO 9014 running with the LabView 2009, back than I had a license issue.

I used the “Remote panel license utility” to install the license file which I got from an NI engineer (the original one didn’t work).

 

I updated to LabView 2010 and now I have a similar problem. The problem looks like described above, I just get an empty cube?

 

So if someone experienced similar problems, I am grateful for any help.

 

thomas

0 Kudos
Message 9 of 10
(6,080 Views)

Hello Marco Brauner,

 

looking for a solution to the similar situation, I found your Post here.

 

What I want to realize is that: I use a cRIO System NI9024 with FPGA to measure some data. But I want to transfer the Measurement Results and the Information for sequential commands to PC Host.vi, so that the PC Monitor can dispaly these Results and Infos for the operation of the worker.

 

The Structure looks like that: my FPGA.vi and RealTimeController.vi run stand alone, the RealTimeController.vi make a connetion with the PC Host.vi via TCP/IP for some data-transmission. Since I have no only one Measurement but more, which means there are a lot of Measurement-SubVI running in the RT.vi. If there is a way that I can dispay the Frontpanel of those Measurement-SubVIs as Underpanel on the PC Host.vi(see the Draft-Lay Out in Attachment), i will be grateful for any help!

 

PS: I have also found a example for the Reference of the SubVI, unfortunately it is impelemented in the same VI with the RTController.vi, hope this will inspire some ideas of you. (hopeful the Screenshot could do you a favor for understanding) 

 

Best Regards

 

Kellen

Download All
0 Kudos
Message 10 of 10
(5,536 Views)