Jump to content

Open URL in default browser changed in 2014?


Mellroth

Recommended Posts

In previous versions of LabVIEW we have used the "Open URL in default browser" (with path input) to open folders, files etc, using the program associated with the file extension.

LabVIEW 2014 seemed to have changed this behavior so that documents are really opened inside the default browser. Folders are treated differently depending on the default browser: with IE as the default browser a folder path opens a windows explorer window, with Chrome the folder content is listed in a new Tab.

 

The llb containing the Open URL... VI (<LabVIEW>\vi.lib\Platform\browser.llb) also contains "Open Acrobat Document.vi", but since this is using the "Open URL..." it also opens in the default browser

 

Is there any specific switch that can be used to tell LabVIEW to still use the default program instead of the browser? 

 

/J

 

 

Link to comment

From what I can tell, we changed the VI to really open all files and URLs in the default browser in 2014. The change was made to support file-based URLs with "#" tags in them...prior to 2014, this part of the URL would be ignored, which was filed as CAR 420007. Fixing this CAR meant making the VI actually do what its name implies, always opening a file or URL in the default browser.

Link to comment

Thanks for the clarification Darren.

I agree that the name now matches the action, but the VI has acted like this at least since LabVIEW 2009 so I would suspect that a number of users will end up with the same result as me. Especially since I also know that a this "trick" has been suggested by people at NI, referring to two VIs that are in the same llb as this one, namely:

  • vi.lib\Platform\browser.llb\Open Acrobat Document.vi
  • vi.lib\Platform\browser.llb\Open a Document on Disk.vi

 

Any plans for a new platform independent VI to do the action this VI used to do?

 

/J

 

Link to comment

Is it possible to copy the VI from a previous version, rename it to "Open File in Default Program" and then use it in 2014?

 

On a specific platform - Maybe, but to get the platform independence NI has to maintain different versions for different platforms.

Different versions of OS'es could have different commands to open files/folders and I really prefer to have NI to do the work ;-)

Link to comment

Any plans for a new platform independent VI to do the action this VI used to do?

 

No plans at this time. I think your best bet is to have a VI that calls Open URL in Default Browser.vi on non-Windows, and makes a call to System Exec.vi (like in hooovahh's VI) on Windows.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.