Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Display Examples

2 ratings | 2.00 out of 5
Print

Downloads

Filename: display_two_cameras_on_cvs.vi
Requirements: View

Filename: embed_winddraw_window_lv50.llb
Requirements: View

Filename: printing_window_lv70.zip
Requirements: View

Filename: color_screenshot_lv60.vi
Requirements: View

Filename: 2719.llb
Requirements: View

Most of the Vision shipping examples use display. Here's a list of some specific display examples:

LabVIEW:
+ 2. Functions\Display
- Browser Example.vi

CVI:
+ samples\IMAQ\Display
- Analog Attributes
- HL Ring Overlay
- Snap Canvas
- Snap Graph
- Snap imgPlot
- Snap Scrollbars

Visual Basic:
+ National Instruments\vision\examples\MSVB\2. Functions\Display
- Nondestructive Overlay
- RegionOfInterest

+ National Instruments\ni-imaq\sample\VB\Display
- Snap in IMAQViewer

Visual C++:
+ National Instruments\vision\examples\MSVC\Load and Display
- Load and Display

+ National Instruments\ni-imaq\sample\MSVC\Display
- snap imgPlot

Here are some additional examples that illustrate different methods for displaying.

The first example combines multiple images into a single one. This is useful for showing multiple images in a single display. The Compact Vision System (CVS) only allows for a single display at a time on a monitor, so this is a useful example to allow for multiple images on the CVS Video Out display. This example grabs images from two cameras and displays them on a black background. The user can choose from the following four display modes: Left-Right Stretch, Top-Bottom Stretch, Left-Right Constant, or Top-Bottom Constant.

Note: If you are using two cameras with different image types, such as RGB and 8-bit, the second camera's image type will be type cast to the first. Therefore, specify the color camera as Camera 1.

The second example illustrates how to display a window in the LabVIEW front panel. This example only applies to LV 6.1 users and earlier because LV 7.0 and NI-IMAQ 2.6 or Vision 7.0 introduced a new image display control that is the best display method.

The third example acquires from two cameras and displays the images in seperate tabs of a tab control.

The fourth example programatically performs a print screen and saves the image to file.

The fifth example prints an image to the default printer. This example includes two examples: Print Image HL Grab.llb and Print Image ReadFile.llb. The Print Image HL Grab example performs a continuous image acquisition and displays the images in a WindDraw window until Print Image is clicked. The Print Image ReadFile example reads an image file, displays the image in an IMAQ WindDraw window, and then prints the image.

To use these examples, you must associate the BMP file extension with a digital imaging program in Windows, such as Microsoft Paint. Refer to your NI-IMAQ VI Reference online help for more information about associating a file extension with a program.


Related Links:
Window Events Examples
Overlay Examples

Requirements


Filename: display_two_cameras_on_cvs.vi

Software Requirements


Application Software: LabVIEW Full Development System 7.0
Toolkits and Add-Ons: LabVIEW Real-Time Module 7.0
Language(s): C, Visual Basic, Visual C++, LabVIEW

Hardware Requirements


Hardware Group: Vision (IMAQ)
Hardware Model: PXI-1405
Driver: NI-IMAQ for IEEE 1394 Cameras 1.5

 
Filename: embed_winddraw_window_lv50.llb

Software Requirements


Application Software: LabVIEW Base Development System 5.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.0
Language(s): C, LabVIEW, Visual Basic, Visual C++

Hardware Requirements


Hardware Group: Vision (IMAQ)
Hardware Model: PXI-1405
Driver: NI-IMAQ 2.6

 
Filename: printing_window_lv70.zip

Software Requirements


Application Software: LabVIEW Base Development System 7.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): Visual Basic, Visual C++, C, LabVIEW

Hardware Requirements


Hardware Group: Vision (IMAQ)
Hardware Model: PXI-1405
Driver: NI-IMAQ 2.6

 
Filename: color_screenshot_lv60.vi

Software Requirements


Application Software: LabVIEW Base Development System 6.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): C, LabVIEW, Visual Basic, Visual C++

Hardware Requirements


Hardware Group: Vision (IMAQ)
Hardware Model: PXI-1405

 
Filename: 2719.llb

Software Requirements


Application Software: LabVIEW Base Development System 6.1
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): C, LabVIEW, Visual Basic, Visual C++

Hardware Requirements


Hardware Group: Vision (IMAQ)
Hardware Model: PXI-1405

 
2 ratings | 2.00 out of 5
Print

Reader Comments | Submit a comment »

Note for use on CVS
Any one who uses the code with for displaying 2 images on the CVS should make sure that the frame rate and image size of the 1st camera are low enough to leave some room on the bus for the 2nd camera. Otherwise you'll get an insufficient resources err.
- Peter Stephens, Gryphon Systems Engineering. peter.stephens@gryphonsystems.com.au - Sep 8, 2006

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).