LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I write the whole VI fornt panel into HTML programatically with the data points still on it?

What I would like to do is to take an front panel, block diagram, image or anything I guess and turn it into HTML code. I am using labVIEW 6.1 Any ideas, (maybe some tutorial link or downloadable example VI)?

Thanks,

Brian
0 Kudos
Message 1 of 3
(3,521 Views)
There are many ways of importing VI front panel to html. You can generate labview report into HTML format for web database report. HTML is just a simple text based format with special header. One way of generating HTML: (Using HTML Template)
1. Create a simple HTML template.
2. Capture your VI front panel and save into *.jpg image.
3. In your HTML template, search the text "scr=path\*.jpg" and replace it with the captured front panel image.
4. Save new text into html.

Another simple way of saving VI front panel, diagram into html is shown on the attached VI. After you generated a html file, you can use this as your html template as mentioned above. All you need is to learn the basic of html and simple commands. Good luck!
0 Kudos
Message 2 of 3
(3,521 Views)
Open LabVIEW and select "Find Examples" from the Help menu. Select the search tab and type in HTML in the search box...you will now find examples on how to generate reports in HTML including control and indicator graphics and much more...

Or just select Print from the File menu...you can then select what you want to print and you can choose to print it as HTML.

If you just need to get the picture of a control and save it as a picture that you can refer to in a HTML document wire a reference to the control to an invoke node and select the Get Image Method...the data you get from that can be saved using e.g. the write .bmp or .jpg functions.

OR if you want the page to contain live data use the Web Publishing Tool from the tools menu...
0 Kudos
Message 3 of 3
(3,521 Views)