Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Real-Time and web user interface?

Goal: To have an executable running on my Real-Time controller, and have someone log onto a web page and monitor/control the application.

I have used the web publishing tool while developing on a host computer to monitor a vi, however, for deployment, does the Real-Time controller have its own web server to provide such a service?

- Con
0 Kudos
Message 1 of 5
(3,910 Views)
Yes, the Real-Time controller has its own web server. While targeted, enable the RT web server from Tools >> RT Target: Options... >> Web Server Configuration >> Enable Web Server.
0 Kudos
Message 2 of 5
(3,896 Views)
Thanks for the info!

Another question along within the topic... Can a Labview VI running on a RT system, with a user having control remotely over a web interface, be able to open another VI on the RT system and allow the user to run it?

Example: Imagine a Game controller VI running on a RT system. A user has accessed the web page for that VI. On that page are buttons with games like checkers, chess, backgammon, etc. that would open the appropriate VI and allow the user to play over the web. Possible? How?

I have been succesful in the LabVIEW environment using "Open VI Reference, FP.Open, OpenFP" functions, but when I try them on the Real Time system, nothing happens.

- Conrad
0 Kudos
Message 3 of 5
(3,872 Views)
In your game controller VI, you may call Open VI Reference, but you may not call front panel methods or properties. What you are trying to do is possible. Here's how:

Use the Web Publishing Tool to make an .htm file for each VI that you want to display dynamically. You will have an .htm file for your game controller VI and one for each game - checkers, chess, backgammon, etc. Make sure you've placed all the htm files in RT's web root and all your game VIs somewhere on the RT disk.

When you launch a game, the game controller must call Open VI Reference followed by the VI Run method, which will place the game in memory and run it. Then all you need to do is load the game's web page.

If your RT box is given VI Server access to your host, the game controller could talk to a VI back on the host. The VI on the host could do anything - launch a new web browser with the game's URL, or refresh the existing web browser with the game URL, etc.
0 Kudos
Message 4 of 5
(3,862 Views)
Thanks amigo - I will be giving that a try shortly!

- Con

Happy Holidays
0 Kudos
Message 5 of 5
(3,846 Views)