LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cFieldPoint and embedded web server: how to?

I have a cFP-2020 with a cFP-AI-110 (8 channel analog input). I can embed my
application onto the cFP module, and it works fine, but I would also like to
publish measured data over the internet.
I know I could use the embedded web server features which comes with cFP,
but I'm afraid I have absolutely no ideas on where to start so to have the
embedded .vi create the web page (presumably "on the fly") in the cFP web
root directory.
I guess I have to use some HTML-oriented subvi, but your help would be very
much appreciated as I won't be able to get over this point by myself...
Please, _post_ and _email_ your replies. Thanks!

The Net
0 Kudos
Message 1 of 4
(2,649 Views)
The Net,
Since a html file is just a text file you can use the regular file I/O VIs (for example Write Characters to file.vi) to create the html document. Once you have written the file to web server directory you will be able to view it through a web browser. To change the web server settings (such as enabling it and setting the root directory) use Tools>Network: xxx.xxx.xxx.xxx Options in LabVIEW while targeted to the system.
If you need help in creating the HTML page there are many resources on the web. Also you could use a utility to create a sample web page that contains all the features you are looking for such as tables etc. Then use this web page as a template. One such option is the Report Generation VIs that come with LabVIEW. The Report Generation
VIs are not supported in LabVIEW Real-time, but you could use them in Windows to create a sample page.
0 Kudos
Message 2 of 4
(2,648 Views)
Carl,
first of all, thanks for your reply!

> Since a html file is just a text file you can use the regular file I/O
> VIs (for example Write Characters to file.vi) to create the html
> document.

That is fine, but I was wondering what kind of .vi's I could use to ease the
task...

> [...] One such option is the Report
> Generation VIs that come with LabVIEW. The Report Generation VIs are
> not supported in LabVIEW Real-time, but you could use them in Windows
> to create a sample page.

Actually I would need something to be used in a compact Fieldpoint embedded
application, which would then exclude any use of such a VI.

Thanks for your help, I really appreciate it!

Nicola
0 Kudos
Message 3 of 4
(2,648 Views)
Hi,

This linke describ how to publish LVRT FP on the web.

http://digital.ni.com/public.nsf/websearch/A4915E8E1271951086256B22005C2CAB?OpenDocument

I hope this helps.

TN
0 Kudos
Message 4 of 4
(2,591 Views)