LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change refresh rates and resolution on another computer

Hi, am i able to use a LAN cable from Computer A and connect to computer B then change B's refresh rates and resolution? for example from 800x600 to 1024x768 then change refresh rate from 60Hz to 75Hz. please advice thanks.
0 Kudos
Message 1 of 6
(3,673 Views)

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, 

 

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 6
(3,652 Views)
Hi Hillman, Thank you very much for the advice. Greatly appreciate it. Yes there are two parts to the program. I have run the changing screen resoltuion programmatically from LabVIEW VI and it works perfectly. about the second part concerning the using VI Server to remotely call a VI. about that, do i have to install LabVIEW in the other computer? cause i am using a LAN to LAN cross cable and i wish to use the Lan connection from Computer A to Computer B as a protocol and my idea is that if i am able to send the static IP to the other computer then i will have control over it. The other computer does not have LabVIEW. only Computer A does. Details about this: i am using LabVIEW 8.0 Full Development. Another idea which i have is once i am able to communicate with the other computer via LAN connection cross cable i will a command script called Qres to change the resolution on Computer B. it will run an exe and execute the command line.
0 Kudos
Message 3 of 6
(3,631 Views)

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,

 

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 4 of 6
(3,614 Views)
Hi HILLMAN, Good morning to you too. im fine here. Yes.. for your confirmation Computer A has LabVIEW and Computer B doesnt have it. From your suggestion you felt that it can be difficult to do it in this way right? so should i install LabVIEW on Computer B to make it easier? as i dont see a need to do it as long as there is a way i am able to communicate from Computer A using LabVIEW 8.0 and somehow pass the instruction to Computer B telling B to execute the DOS command to change the screen resolution. I have both Qres and the VI for changing the resolution on Computer A. So which should i proceed with?
0 Kudos
Message 5 of 6
(3,609 Views)

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,

 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 6 of 6
(3,605 Views)