01-04-2009 09:29 PM
01-05-2009 05:33 AM
Hi Trig,
Thanks for your post and I hope your well today.
There are two parts to this - in my mind:
1. Changing Screen Resolution Programmatically From LabVIEW
2. Use VI Server to remotely call a VI i.e. Computer A calling VI on Computer B which then runs the VI mentioned in 1.
1.
This link is a dev zone article which has code for programmatically changing the screen resolution
http://zone.ni.com/devzone/cda/epd/p/id/1429
Try it out.
2.
VI Server
The NI Example Finder contains some expamples for this.
Building VI Server Applications
http://zone.ni.com/reference/en-XX/help/371361E-01/lvconcepts/building_vi_server_applications/
If you could provide more details, maybe versions of LabVIEW etc then maybe we can help you some more - have you got some code yet? And did you have any thoughts on how to do this?
Another method I have consider is:
Using a tool such that runs an exe or script which alters the resoltion.
Then using the cmd (comand line) or in LabVIEW System Exec.vi to run the exe (via VI Server).
How To Change Your Screen Resolution From A Command Line
http://desktopfeedbag.wordpress.com/2007/12/27/how-to-change-your-screen-resolution-from-a-command-line/
Hope this helps,
01-05-2009 08:47 PM
01-06-2009 03:29 AM
Hi Trig,
Good Morning and I hope your well. Thanks for your reply. I am glad my advice found you well.
Just to confirm,
Computer A has LabVIEW, and we require this local machine to remotely invoke (start) the executable (LabVIEW VI which uses the screen resolution stuff) on Computer B (that doesnt have labview).
I beleive it can be difficult to use LabVIEW in the mannor you have described. I think the best methods are:
1. To have the client exe waiting a trigger via a shared varaible to invoke the main code - change resolution
2. You may use one of the freeware programs available in the internet. For example there is a freeware command-line utility called "PsExec" (from the PsTools suite), that you can download from the "www.sysinternals.com" site. I think this is better.
Other ways - which I haven't fully considered are:
#. How Do I Launch a LabVIEW Executable Remotely using ActiveX/DCOM?
http://digital.ni.com/public.nsf/allkb/38787589F325412186256DE100671A8E?OpenDocument
#. Internet Toolkit FAQ
http://zone.ni.com/devzone/cda/tut/p/id/2821
Telnet: Remotely control a machine or device through Telnet. Execute scripts on Telnet hosts.
Hope this finds you well,
01-06-2009 03:46 AM
01-06-2009 04:00 AM
Hi Trig,
Thanks for the reply.
I beleive this is the best method:
Shutting Down a Remote Windows XP System
http://digital.ni.com/public.nsf/allkb/02DB26A23ED2A85D86256F5D006BB5DB?OpenDocument
Using System Exec and VI Server.
The VI Server helps deal with sercuity details.
Hope this helps,