Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Speed up opening of an Imaqdx session

Is there a way to speed up opening of an Imaqdx session when using a camera with a persistent (static) IP address? I have a PC with multiple NIC cards installed. The discovery and connection phase takes quite a bit of time. With the same configuration on a PC with only the camera NIC card this process is much faster.
John A. Lively
NDE Engineer
Pratt & Whitney
0 Kudos
Message 1 of 5
(4,043 Views)

Hey Pratt,

 

When using IMAQdx Open Camera, it will need to first query the camera for its capabilities, loads a camera configuration file, then create a reference to the camera. The delay in connection phase is due to querying and loading camera configuration/file. How much of a delay are you seeing? 

Andy Chang
National Instruments
0 Kudos
Message 2 of 5
(4,028 Views)
I am seeing about a 1 minute delay on the slower system and a 20 second delay on the faster system. This may just be the GigE protocol. My past has been with frame grabber boards that respond instantaneously.
John A. Lively
NDE Engineer
Pratt & Whitney
0 Kudos
Message 3 of 5
(4,023 Views)

John,

 

I'd need some more details of your configuration and what your program is trying to do. The discovery process should only be a few seconds, and opening the camera is usually under a second. What kind of camera are you using?

 

A couple of things that may be involved here:

 

- Camera boot/IP configuration time - Some cameras will take a while once they are powered or connected to run through their boot-up process and their IP configuration scheme. Perhaps you have DHCP enabled on the camera and it is trying that first before falling back to your static IP address?

 

- PC network interface DHCP/LLA process - If your desktop is configured for DHCP on that port, Windows XP and earlier will take up to 60 seconds on a cable connection to determine if it can reach a DHCP server before falling back to link-local-addressing or some alternate fixed IP address configuration. This can be eliminated if you assign a static IP to the local network interface as well. Additionally, on Vista and later, the DHCP/LLA process runs in parallel with alternate configurations and so the 60 second time is reduced to 0.

 

Eric

0 Kudos
Message 4 of 5
(4,020 Views)

Hello,

I am facing similar problem. Opening Session takes about 600-700ms, which is too much for my needs.

Is there a way to  speed up or go round opening the camera session each time?

 

What I need is to start recording AVI video, which I am able to do now, but without this delay.

The purpose is to use this as an vi or custom step inside VBAI 2009. To record AVI in order to use the full frame rate of the camera and then to get all frames from the video as JPG, analyze them. After this is done, to be ready for another AVI recording.

 

I can not loop inside this vi becuase and keep session open because it will block my VBAI execution flow.

 

Can you please help me.

0 Kudos
Message 5 of 5
(3,880 Views)