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: 

Transfert between Labview and HTML page

Is it possible to transfert data between LABVIEW and a HTML page without using a java applet?
Is Labview including this possibility?
The aim is to pilot a system via internet with a html page.
0 Kudos
Message 1 of 3
(2,831 Views)
Take a look at the following links.
http://www.ni.com/labview/6i_interneta.htm
http://www.ni.com/labview/lv_player.htm

As well there is Internet Developer's toolkit with HTML and CGI vi's for making dynamic HTML communications with Web browser.
Sergey
0 Kudos
Message 2 of 3
(2,831 Views)
Lots of ways.

The obvious is that Labview has a builtin webserver that can export the
image of a front panel VI to a webpage. This is well documented. However,
this exports a bitmap, which is not the ideal method if you're just using
text and numbers.

HTML is simply text; it's quite easy to make Labview generate a webpage on
the fly- we've found the easiest logging system is to automatically create
an HTML file after all our experiments that contains screendumps of all the
windows. The simplest is to make a skeleton HTML file by hand and get the
layout, graphics, links etc as you want them and then put extra tags in
there that won't normally appear in the HTML; <>, <>
etc. Then to build your webpage you can have a VI that loads the skeleton
and replaces all your Labview tags with the dynamically generated text/data
you want to put in. You could either redo the HTML file as needed and the
client manually has to refresh, or you can add code to the webpage that
makes it reload every few minutes and hence pick up the changes.

You could also use something like Apache as your web server and, using
command line arguments to a VI (documented somewhere- try Knowledgebase),
you could actually make Labview generate the pages as needed, calling the
Labview VI instead of, for example, a Perl script. Since you seem to want to
control it via the web page then this cgi scripting may be the best option
if bandwidth is an issue- you don't want to be downloading bitmaps of front
panels over a modem if you can help it. The internet toolkit may help,
though I've never had the need to look into it.

If you want some graphs as well as text, the same method can be used along
with a VI that just has the graph and saves a bitmap or a jpeg, in as few
colours (black and white if possible) as possible to keep the file size
down, and the HTML loads this picture and places it where needed.

If bandwidth/responsiveness isn't an issue you could also look around of a
program called "VNC" that allows you to take control of your machine
remotely- you see the desktop and your mouse and keyboard inputs are routed
through to the remote machine. This is free and is pretty platform
independent, but since everything's done using bitmaps, for Windows at
least, it's slow.

mat wrote in message
news:101-506500000008000000D0150000-982303670000@quiq.com...
> Is it possible to transfert data between LABVIEW and a HTML page
> without using a java applet?
> Is Labview including this possibility?
> The aim is to pilot a system via internet with a html page.
Message 3 of 3
(2,831 Views)