Example Code

Switch Application to Secondary Monitor / Screen

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
To switch monitor programmatically

Description:
This example application checks first whether multiple monitors are detected by your Operating System. It's good to check this so the use doesn't switch to a monitor that doesn't exist and then lose ability to see the application running! If there are multiple monitors, the switching button will be visible to the user, and they can click on it to switch an application from their primary monitor to the secondary monitor.

Instructions:
To implement this example:

  1. Run VI
  2. Click Primary Monitor button to switch monitor.

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-11-03_9-25-53.jpg2017-11-03_9-25-40.jpg

**This document has been updated to meet the current required format for the NI Code Exchange.**

Regards,


Imtiaz Chowdhury
Project Manager
Green Running / Austin Consultants

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
G-Money
NI Employee (retired)
on

Thanks for posting this!