Example Code

Rotate an Image on-the-fly Using Vision Development Module for LabVIEW (version 8.0)

Code and Documents

Attachment

Overview

This VI acquires an image from a camera and rotates the image to a specified angle.  You can modify the rotation angle on the fly.

Description

Use your GIGe, USB or Firewire camera to aquire an image. The livestream can be rotated using the angle input below the meter.

Requirements

Vision Acquisition Software 8.0 "or compatible" (NI IMAQdx)

Vision Development Module 8.0 "or compatible"

LabVIEW 8.0 "or compatible"

Steps to Implement or Execute Code

1.) Make sure the software listed above is installed and activated

2.) Test out the camera using Measurement & Automation Explorer (MAX)

3.) Close MAX and open the example the attached example in LabVIEW

4.) Select the tested camera using "IMAQdx Session"

5.) Run the example

6.) Change angle input to rotate the image with a certain degree

Additional Information or References

This is coded in LabVIEW Version 8.0.  This particular code requires Vision Development Module to be installed.  It uses IMAQdx VIs, but you can easily replace all of the IMAQdx VIs with IMAQ VIs if you have an analog, Camera Link, or Parallel Digital camera.

Rotate Image_lv80.png

Wes Pierce
Principal Engineer
Pierce Controls

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

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting.  Please rename your attachment to include the LabVIEW version ("_lvXX.vi") and add an image of the code to give us an idea of what we're downloading.

Todd S.
LabVIEW Community Manager
National Instruments
Contributors