Waiting for an IEEE 1394 Camera to be Attached
Downloads
Filename: watch_for_attached_camera.llb
Requirements: View
Detachment of a camera while it is in use can be handled by processing the resultant error.
Note: Any IMAQ1394 function will return error 0xBFF6801C if the camera has been detached.
The following program consists of two VIs:
1. Grab Until Detached-This VI polls the interface files until a camera is connected. When a camera is connected to the system, a Grab acquisition is started and carried out until the camera is disconnected from the system. At that point, the acquisition is stopped and the program exits.
2. Find Attached Camera-When called by the Grab Until Detached VI, this VI parses data from the interface files and reads the connected status bit in each one. When a high bit (1) is found, the corresponding interface name is returned by the VI.
Note: A camera must be configured in Measurement & Automation Explorer (MAX) prior to running this program. Configuration in MAX creates an interface file on the system, and this file is read by the program.
Requirements
Filename: watch_for_attached_camera.llb
Software Requirements
Application Software: LabVIEW Base Development System 7.1
Language(s): LabVIEW
Hardware Requirements
Hardware Group: Vision (IMAQ)
Driver: NI-IMAQ for IEEE 1394 Cameras 2.0
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/).
