LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to use Web Server to view a VI that is called by reference

Hello,
 
I have a vi, Main.vi, that calls another vi, Reference.vi, by reference.  I use the Open Vi Reference vi to open the front panel and run the vi.
I've used the Web Publishing Tool to publish both vi's.  Then I went to Tools... Options to set up Web Server Configuration, Visible VI's, and Browser Access.  After that I created my Project with Main.vi as my Startup Vi.  I set Reference.vi, Reference.html, and Main.html as my Dynamic VIs and Support Files.  I built my application and was able to view Main.vi remotely on a remote computer.
 
Reference.vi was a different story.  On my remote computer I was able to view and control Main.vi, and then pressed the button that opened Reference.vi via reference.  Reference.vi opened up in a separate window on my remote computer, and it also opened up on the server computer.  I was able to pass control of Reference.vi back and forth between the two computers, so in that manner it worked fine.
 
However, in the final application of this project my remote computer will not have the ability to open Reference.vi via Main.vi.  The server computer will run the built application (executable) of Main.vi and someone at that computer will press the button to open Reference.vi.  Then another person on the remote computer will view Reference.vi (they won't have a need to view Main.vi).  This is the problem - when I'm at the local computer and open Reference.vi and then attempt to view Reference.html on the remote computer I see the Document Title, Header and Footer that I entered into the Web Publishing Tool for Reference.vi, but in the box where the vi should be displayed I see the message "Client does not have access to specified VI".
 
Does anyone have a solution for this?
 
Thanks!
Steve
0 Kudos
Message 1 of 2
(2,580 Views)
Hello Steve,

The error that you are can occur due to the following:
  • The server is not configured to allow the correct VIs to be accessed by remote panels.
  • The server is not configured to allow the client IP address to access the VI.
  • The run-time engine version of the client does not match the run-time engine version of the server. (Example: client is using 8.0 and server is using 7.1)

Even if you have accessed the settings before, I would ensure that they are set correctly. 

To configure the server to allow the correct VIs to be accessed by remote panels and also to configure client IP addresses you must configure directories and network settings by selecting Tools» Options» Web Server: Configuration and Web Server: Browser Access.

Under the Web Server:Configuration category, you must make sure that the Enable Web Server is checked. In the Web Server: Browser Access category, you must specify a list of client IP addresses that are allowed access to the web server. The link below describes in more detail how to correctly configure both server and client to avoid experiencing this issue:
http://zone.ni.com/devzone/cda/tut/p/id/4791

Kameralina

0 Kudos
Message 2 of 2
(2,549 Views)