Display Events Examples
Downloads
Filename: imaq_get_last_key.zip
Requirements: View
Filename: 2730.vi
Requirements: View
Filename: 2733.vi
Requirements: View
Filename: move_roi_vb6.zip
Requirements: View
The first example shows how to get the last key that was pressed within the active image window in CVI. In addition, any modifiers that were pressed (ctrl, alt, shift, and caps lock) will also be shown. Multiple modifiers can be used at the same time, with the exception of ctrl+alt. This program requires an IMAQ board and acquires an image from "img0" by default.
NOTE: All modifiers are applied to the key before it is displayed. The ctrl modifier only works with letter keys and makes them non-displayable ASCII characters.
The second example returns the pixel value at the location where a user clicked.
The third example resizes the image to match the window size as the user resizes the window.
The fourth example shows how to use the CWIMAQViewer with ROIs in Visual Basic.
The fifth example allows the user to draw a ROI and zooms into that region.
| Related Links: |
| Overlay Examples |
| Display Examples |
Requirements
Filename: imaq_get_last_key.zip
Software Requirements
Application Software: LabWindows/CVI Full Development System 7.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): C, Visual Basic, Visual C++, LabVIEW
Hardware Requirements
Hardware Group: Vision (IMAQ)
Driver: NI-IMAQ 2.6
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)
Driver: NI-IMAQ 2.6
Software Requirements
Application Software: LabVIEW Base Development System 6.0
Toolkits and Add-Ons: LabVIEW Vision Development Module 6.1
Language(s): Visual C++, C, LabVIEW, Visual Basic
Hardware Requirements
Hardware Group: Vision (IMAQ)
Software Requirements
Application Software: Measurement Studio Visual Basic Support 6.0
Language(s): C, LabVIEW, Visual Basic, Visual C++
Hardware Requirements
Hardware Group: Vision (IMAQ)
Software Requirements
Application Software: LabVIEW Base Development System 6.1
Language(s): C, LabVIEW, Visual Basic, Visual C++
Hardware Requirements
Hardware Group: Vision (IMAQ)
Reader Comments | Submit a comment »
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/).
