Example Code

Programmatic Screen Capture and Auto-Save to File in LabWindows™/CVI™

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

Download All

Overview

This is an example for LabWindows/CVI to programmatically get a screen image and save it to a JPEG file.

 

Steps to Implement

  1. Download folder to a directory of your choice
  2. Unzip folder
  3. Open the folder and select PrintScreenButton.exe
  4. Choose the Quality Retainment %
  5. Click Print Screen to JPEG
  6. Select filename and directory

 

Requirements

  • LabWindows/CVI Run Time 2012
  • LabWindows/CVI Development 2012

 

Additional information or references

 

im.jpg

 

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

Ian M.
National Instruments

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