LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

open web browser from labwindows CVI

Hello!
I am looking for some function or utility through which I can open the web browser from CVI. Also if I have a choice of the webpage, that will be great!

Thanks.
Madan
0 Kudos
Message 1 of 5
(3,927 Views)
There is a function "ShellExecute" in the SDK that does the trick.

In the callback for a button, for whatever control you are using to initiate launch of the browser, put in this function call:

ShellExecute(0, "open", "www.yourdomain.com",NULL,NULL, 3);

Those parameters work for me, but I can't explain them all from memory. For details, see the SDK help.

--Ian
0 Kudos
Message 2 of 5
(3,927 Views)
The best way to do it is with ActiveX. Check out this example program:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DD4156A4E034080020E74861&p_node=DZ52156&p_source=External

I think there also may be one that ships with CVI at
[CVIDIR]\samples\activex\ie. Where [CVIDIR] is the directory CVI is installed to.

Regards,
Ryan K.
0 Kudos
Message 3 of 5
(3,927 Views)
Thank you. I got this thing working.

-tmach
0 Kudos
Message 4 of 5
(3,927 Views)

Can you share your Code? Did it work with ActiveX or ShellExecute from SDK?

 

0 Kudos
Message 5 of 5
(2,365 Views)