LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows CVI and HTML Web Page

I would like to launch web pages from my Labwindows 6 program. The user will then check off some boxes on the web page and click OK. I would then like my CVI program to look at this data. I realize this may be a stupid question. What may be the best way to do this.
0 Kudos
Message 1 of 7
(4,814 Views)
Clearink wrote in message news:<5065000000080000009BAE0000-1068850981000@exchange.ni.com>...
> I would like to launch web pages from my Labwindows 6 program. The
> user will then check off some boxes on the web page and click OK. I
> would then like my CVI program to look at this data. I realize this
> may be a stupid question. What may be the best way to do this.

If you installed SDK, you can use ShellExecute, passing "open" as
second and the url as third argument.

For the second part, have a look to
http://www.gdargaud.net/Hack/PanelToCgi.html
Cheers
0 Kudos
Message 2 of 7
(4,814 Views)
Hi,

You can also use ActiveX to launch and control Internet Explorer. Or you can even embed a browser in your application so that the user can view the html files right in you panel.

There are a couple of examples that ship with CVI. take a look at C:\Program Files\National Instruments\CVI70\samples\userint\activex there is a good example for a web browser.

If you want to launch it and control it you can use the generate ActiveX controller wizard.

Hope that helps.

Regards,

Juan Carlos
0 Kudos
Message 3 of 7
(4,814 Views)
Thanks for your reply. However, I would also like to grab form data from the HTML page into a structure in CVI. I looked around the ActiveX FP without success.
0 Kudos
Message 4 of 7
(4,814 Views)
If the webpage is on a server you can use DataSocket to open the page up, just open a connection with an address that starts with "http://" and DataSocket will read the web page for you.

If the webpage is on disk then just use the file IO functions and read it as a text file. Then you will need to parse the information that you need from the HTML code.

If you are generating this files you can insert some special HTML comment with a marker to facilitate the data parsing.

Hope that helps.
Juan Carlos
N.I.
0 Kudos
Message 5 of 7
(4,814 Views)
Clearink wrote in message news:<506500000005000000A73A0100-1068850981000@exchange.ni.com>...
> Thanks for your reply. However, I would also like to grab form data
> from the HTML page into a structure in CVI. I looked around the
> ActiveX FP without success.

did you have a look to the webpage I suggested?
0 Kudos
Message 6 of 7
(4,814 Views)
Yes, that information is helpfull. I am having trouble finding a HTML FORM Example where the submit button is pressed the data submitted to the CVI program. The CVIPanelToHTML project is interesting, but I wont be able to use it. I appreciate all of your help. I am looking into CGI Executables parsing the argv data from the HTML Form right now. I was hoping there was a simple way to get form name and value pairs from a submitted web page.

Thanks Again.
0 Kudos
Message 7 of 7
(4,814 Views)