06-07-2007 03:02 PM
06-07-2007 10:24 PM
06-08-2007 07:39 AM
VNC is out of the question because our platform and situation does not allow for it.
I was thinking about the subpanel option. However, I need to do more than just view the window, I need to be able to control it. Will subpanels work both ways or not?
I also need to find out how to pass a variant object from my local VI to the remote application...ideas? I know I can use VI Server but I haven't the slightest idea what VI to use to pass objects back and forth. I know how to open the connection and get the reference to the remote VI but once I have that, I am clueless.
Kyle
06-08-2007 08:25 AM - edited 06-08-2007 08:25 AM
Message Edited by mikeporter on 06-08-2007 09:27 AM
06-08-2007 10:49 AM
06-09-2007 09:55 AM
06-11-2007 09:13 AM
06-13-2007 10:12 AM
06-13-2007 02:36 PM
06-15-2007 03:58 PM - edited 06-15-2007 03:58 PM
Kyle:
Thank you very much for attaching the VI; it gave me a better understanding of what you are trying to achieve. It is not possible to use Application Invoke Node to embed two panels within the same Front Panel. It is partly because each Invoke Node is establishing a connection to the server. However, I found another way to get it done using a “.Net Controller”. The overall idea is that you will create executables for the two VIs you would like to access, and then use the Web Publishing tool to publish the VIs over the web and then embed each web page in “.Net Containers”. The reason why I am suggesting that we build executables is so that we can specify different HTTP ports for the Web Servers. This is indeed possible because executables are separate LabVIEW processes, while all LabVIEW VIs run under the same LabVIEW Process, thus using the same HTTP port. Follow these steps to see what I am talking about:
1. Open LabVIEW on the Server computer.
2. Navigate to Tools » Options and go to Web Server: Configuration. Make sure that Enable Web Server is enabled and HTTP Port is set to use the default one (Port 80).
3. Open the first VI you are trying to publish.
4. Navigate to Tools »Web Publishing Tool and follow the steps in the wizard.
5. Repeats steps 1 & 2 for the second VI.
6. Create two executables for the two Vis.
7. Open the “.ini” file of the executables, and add the following tokens “WebServer.Port=80” for the first one & “WebServer.Port=82” for the second one.
8. Open a blank VI on the on the Remote Computer.
9. Put down two Web Browser .Net Containers by going to .Net & ActiveX » Web Browser on the Front Panel.
10. Switch to the block diagram and create a Method by right-clicking on the Web Browser Reference and select Create » Method… » Navigate.
11. Create a constant for the URL and it should be in the following format: http://IP Address: Port80(82 for the 2nd VI)/VI’s Name .html
12. Run the executables on the Server Computer, then run the VI on the remote computer and you should see Front Panels on the .Net Containers.
I hope this helps and do not hesitate to post again if you need further assistance.
Regards,
Rudi N.
Message Edited by Rudi N on 06-15-2007 03:59 PM