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: 

Finding Default Web Browser

I am looking for a way to find the default browser on a machine and open an
HTML test report from disk. I have a vi that I downloaded that was written
using a CIN that does exactly what I need, however it only works about 99%
of the time. Sometimes it just doesn't load the browser or the page. I can't
debug the vi because I don't have the source code. If anyone know the
mechanics of how I can find the default browser I would like to attempt to
create one using native Labview.


Thanks
Kevin
0 Kudos
Message 1 of 3
(2,469 Views)
> I am looking for a way to find the default browser on a machine and open an
> HTML test report from disk. I have a vi that I downloaded that was written
> using a CIN that does exactly what I need, however it only works about 99%
> of the time. Sometimes it just doesn't load the browser or the page. I can't
> debug the vi because I don't have the source code. If anyone know the
> mechanics of how I can find the default browser I would like to attempt to
> create one using native Labview.
>

If you look in the help directory, there is an LLB called _browser.llb. It
might be in a subdirectory called intlinks. This LLB has a VI in it for
opening a web page in the default browser on your system. It is what LV
uses to implement the internet links in the help menu.
Give it a try.

Greg McKaskle
Message 2 of 3
(2,469 Views)
Hi Kevin

The way I did this was to open the HTML file using (on the Mac) Finder - the
equivalent on the PC would be Explorer. It opens the HTML file with whatever
program is associated with the HTML file.

On the Mac, I obtained the Target ID of Finder (Communication:Apple Event:Get
Target ID), and supplied this together with the full path of the HTML file to
Communication:Apple Event:AESend Open Document.

On the PC, you would simply wire the string "explorer.exe filename.html" to the
"Command" input of Communication:System Exec. Something like this would work
on UNIX too.

Paul

Kevin Ross wrote:

> I am looking for a way to find the default browser on a machine and open an
> HTML test report from disk. I have a vi that I downloaded that was written
> using a
CIN that does exactly what I need, however it only works about 99%
> of the time. Sometimes it just doesn't load the browser or the page. I can't
> debug the vi because I don't have the source code. If anyone know the
> mechanics of how I can find the default browser I would like to attempt to
> create one using native Labview.
>
> Thanks
> Kevin

--

Research Assistant
School of Physiotherapy, Curtin University of Technology
Selby Street, Shenton Park, Western Australia, Australia. 6008
email: P.C.Davey@curtin.edu.au
Tel. +61 8 9266 4657 Fax. +61 8 9266 3699

"Everyone who calls on the name of the Lord will be saved." Romans 10:12
"For all have sinned and fall short of the glory of God, and are justified
freely by his grace through the redemption that came by Christ Jesus." Romans
3:23-4
0 Kudos
Message 3 of 3
(2,469 Views)