11-13-2006 09:26 AM
11-13-2006 09:41 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
11-22-2006 07:42 AM
11-22-2006 08:39 AM
Unless you need access to things other than just the LabVEIW program, there is no need to try to emulate VNC. All that you have to do is use the built-in web publishing tool. You can publish the VI as html and then the VI can be viewed and controlled in a web browser. There is information in the on-line help on web publishing. This capability has been included with LabVIEW since version 6.0. The only requirement is that the client pc has to have the LabVIEW run-time engine installed.
VNC gives you entire access to the remote pc. It's just like you are logged in locally so if you need the capability to remotely run other programs, file access, view the entire desktop, etc., then implementing this in LabVIEW will take quite a bit of work.
11-22-2006 09:12 AM
Running the VI remotely is not what I want to do. I can do that now with VNC.
I want to automate the whole process.
I want to start a program and walk away. And have the program do what it needs by itself.
Unaided by man or beast.
I thought if Labview could emulate VNC you could program Labview to press a buttom (or emulate pressing a button in the VNC window) go off and take measurements.
Return when those measurement are finished. Press another button ( or emulate pressing another button in the VNC window) and then go off and perfome whatever measurements are needed.
When you press a button in a VNC window something happens. A snippet of code tells something to happen over the network and it happens. I want to emulate that process in Labview.
11-22-2006 09:47 AM - edited 11-22-2006 09:47 AM
That's a completely different problem. VNC doesn't click a button. A user does and VNC sends that mouse click to the remote pc. You want to automate 'you'.
What you are asking for is possible. The easiest thing to do of coures, is to modify the existing application so that it doesn't require so much user intervention. You haven't said much about the main application and why it doesn't do what you want now. It's possible to design a program that doesn't require any user intervention beyond clicking a start button. This is a very common task.
If you don't want to modify the existing program, then you can write another LabVIEW program that will control the main app. You can use VI Server to set control values including button presses and to read controls. For example, the attached image shows how you would open a VI, run it, and then pass a true to a front panel Boolean called 'Start'. Indicators can be read and based on what is returned, other actions taken. The VI server app could be running on the remote pc or on the client.
Message Edited by Dennis Knutson on 11-22-2006 08:49 AM
11-22-2006 01:57 PM
11-22-2006 02:59 PM
11-22-2006 03:11 PM