Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Error "-1074364394 Insufficient Resources Available for Required Video Mode" When Acquiring from IEEE-1394 Cameras

Primary Software: Driver Software>>NI-IMAQ for IEEE-1394
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I am trying to acquire from one or more IEEE 1394 DCAM compliant cameras using the IMAQ for IEEE 1394 Cameras driver or the IMAQdx driver.  When I try to Grab or Snap images, I get error  -1074364394 Insufficient resources available for required video mode. What is causing this and how can I resolve it?

Solution:
The Firewire bus transfers data in a packet format, sending packets at scheduled time intervals called isochronous data transfer.  Depending on the size of the image, the bit depth, and the framerate will dictate how large these packets must be and how fast they must be sent across the bus. Setting image acquisition parameters that are too high for the given bandwidth will cause this error to occur. 
 
To fix the problem, the Speed and/or Packet Size parameters must be adjusted to account for the desired image settings. Perform the following steps to change these settings:
 
  1. Open Measurement and Automation Explorer (MAX)
  2. Expand Devices and Interfaces
  3. Expand Legacy NI-IMAQ IEEE 1394 Devices or NI-IMAQdx Devices depending on the driver that is associated with the camera
  4. Select the camera to configure
  5. Browse to the Acquisition Attributes tab in the bottom edge of the MAX window
  6. Choose a Video Mode that best suits your needs.
 
You also have the option to increase the Speed and/or Packet Size parameters manually. Selecting a Video Mode actually sets these two parameters appropriately for the given mode. Depending on the camera and driver type, you may be able to make adjustments to the Speed and Packet Size after selecting a Video Mode.
 
It is recommended that you set the Speed setting to the highest value possible for single camera acquisition.  This causes the driver to reserve as much bandwidth as possible for the camera, and allows image data to be transferred as quickly as possible.  Be careful not to set a packet size that is larger than what the speed setting will allow, or else the same error will occur.  Here is a table of the maximum packet size based on the camera speed:
 
Camera Speed
Maximum cumulative packet size
100 Mbps
1024 bytes
200 Mbps
2048 bytes
400 Mbps
4096 bytes
*800 Mbps
8192 bytes
* Available for IEEE 1394b Cameras Only

There is also a nonstandard video mode (Format 7) that is available for certain cameras that allows for manual adjustment of the Speed and Packet Size. Note that Format 7 does not have a frame rate associated with it. To calculate the effective transfer rate, use the following equation:

TransferredFramesPerSecond = (BytesPerPacket * 8000) / (ImageWidth * ImageHeight * BytesPerPixel).

Please note that the time to transfer a frame is slightly faster than the time it takes to acquire a frame.
 
When acquiring from multiple cameras, it is important to carefully select the packet size and speed for each camera that is sharing the bandwidth. For example, an IEEE 1394a card is capable of packet sizes of up to 4096 bytes total at 400 Mbps across all cameras. This means that the total number of bytes per packet for each camera when added together should not exceed 4096, and the transfer rate will be up to 400 Mbps.  IEEE 1394b cameras and cards allow for 800 Mbps and 8192 byte packets.

To avoid receiving the Insufficient resources available for required video mode error when adding cameras to a card, ensure that the total number of bytes per packet does not exceed this limit.  By making adjustments to the video mode for each camera, it should be possible to reduce the total number of bytes per packet to a number less than or equal to the packet size limit.
 
To help find the most efficient packet size and speed settings will be for all of the cameras, a bandwidth calculator is attached to this document. The calculator simulates Firewire resource usage on the bus as cameras are added to the bus. Download and run this application to figure out what the settings should be for the cameras.
 
For more information on the Firewire bus, please refer to the related links below.


Related Links:

Acquiring from Firewire Cameras with National Instruments NI-IMAQdx and Legacy NI-IMAQ for IEEE 1394

FireWire (IEEE 1394) Overview

Resource Allocation for IEEE 1394 (Firewire) Cameras in Triggered Mode

NI-IMAQ for 1394: Slower Frame Rate After Upgrading to Windows XP Service Pack 2



Attachments:


1394BandwidthCalculator.exe


Report Date: 08/04/2007
Last Updated: 08/07/2007
Document ID: 4C3CQOBE

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit