LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open URL on client computer

I web published two vis i.e. a.vi, b.vi, corresponding to a.html and b.html respectively.

 

I have a button in a.vi, click to open URL of b.html, it works fine on the server computer,. but when I open a.html on a client computer and click the button, it always open the browser on the sever computer but not on the client.

 

how can I do?

 

I tried both Open URL.vi and IWebBrowser ActiveX, they gave me same result.

 

great thanks for your help.

0 Kudos
Message 1 of 14
(3,623 Views)

Use System Exec.vi to call a web browser of your choice and pass in the URL?

 

If you use something other than IE, you'll need to make sure that browser's installed. 

Also, the file paths between XP and W7 are probably different, may need to query what opsystem the workstation's running and build the system exec string accordingly.

0 Kudos
Message 2 of 14
(3,609 Views)

SnowMule,

 

Thanks for your reply. But it still only open the broswer on the server not on the client.

0 Kudos
Message 3 of 14
(3,598 Views)

Hi Eric,

 

Since the vi is actually running on the host computer, not the viewing computer, it makes sense that any programmatic command to open a browser would execute on the host.

 

I'd suggest using a string indicator to give the url. The user can then copy (ctrl-c) and paste into another browser tab.

 

Regards,

Luke B.

0 Kudos
Message 4 of 14
(3,570 Views)

yes, you are right. the command of remote front panel can only worked on host computer.

 

Already solved this problem by using combind web service and remote front panel.

 

Thank you.

0 Kudos
Message 5 of 14
(3,556 Views)

Caan you give any suggestions on how you did it?

0 Kudos
Message 6 of 14
(3,495 Views)

Well he hasn't been active in the forum for quite a time now.

Can anyone suggest on how to open an URL on the client computer?

0 Kudos
Message 7 of 14
(3,486 Views)

How to open up or save a file which is stored in server computer in the client computer?

0 Kudos
Message 8 of 14
(3,436 Views)

Sunny1290,

 

Please refer to this link:

 

http://digital.ni.com/public.nsf/allkb/5874283E968ADB33862573210071D43A?OpenDocument

 

Regards,

 

Carmen C.

0 Kudos
Message 9 of 14
(3,408 Views)

CarmenC

The publishing of VI has already been done.

There is a VI which gathers some data and stores it in a file. Now that file is stored in the server, (which should be the case), what I want is how will the client be able to save the file or open it?

As of now what I have done is, given a path indicator and have written some instructions which tells the client to copy the path and paste it in the browser, so by that way the client gets the file.

What I want is when the client presses the stop button the file should programmatically get saved in the client computer.

Is it possible? Or just copying the path is the way to do it?

0 Kudos
Message 10 of 14
(3,391 Views)