05-22-2012 10:29 AM
Dear all,
I'm using LV2010 with 2 USB cameras. The cameras are controlled as NI-IMAQdx devices and everything works fine.
However, there is an irritating behaviour:
Labview is always scanning the intranet for all connected cameras. In my company are more than 10 cameras identified which are used by other colleagues. Sometimes the ordering of the cams is changing and I have to identify and choose my own USB cam again. Additionally, I think the IP-scan waste some time. The loading procedure takes much longer as soon as I include IMAQdx SubVIs.
My question: Is it possible to disable the IP-scan for other cameras? I haven't found any information about how to inentify USB cams, only.
Thanks in advance,
Mos.
Solved! Go to Solution.
05-22-2012 01:51 PM
If the cameras you're using are in a small area, use a home network router to isolate the corporate network from the network on your bench.
Company LAN goes into the "internet" hole, your PC + cameras go into the four downstream ports. Configure the router to grab an IP from the company's DHCP, then assign its own IPs to the downstream ports. DAQmx won't go past the router's subnet to look for more devices.
Something like this: http://www.dlink.com/products/?pid=478
05-23-2012 01:07 AM
Thanks SnowMule,
I see that it is possible to use a software or hardware firewall to block the intranet cams.
However, I would prefer to configure LabView software to confine the "scan range".
Any other suggestions?
05-23-2012 02:47 AM
Hi MosEisley53,
You could try to add the registry key EnabledIPCameras under Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\niimaqdxk\Parameters.
Right click on a part of blank space on the window on the right, and selecting New -> DWORD (32-bit Value). You can then enter EnabledIPCameras as it's name, and leave the value as is.
Ch
05-23-2012 05:23 AM
Christian is right. See here.
05-23-2012 11:30 AM
Hi Christian,
this is exactly what I looked for. BUT: It doesn't work.
If I disable my network card only my two USB cams are identified and the program immediately starts. But your registry key does not show any effect. Can you check if the key is right, please? I've attached a screenshot from regedit. I've already tried a reboot.
Thanks, Mos.
05-23-2012 11:53 AM
Sorry, I forgot to attach the right screenshot:
05-24-2012 03:11 AM
Yes, the key is right.
You can also disable the GigE discovery as mentioned by Guenther before. See here.
Christian
05-24-2012 03:28 AM
Disabling the discovery ping works as expected. I have checked this with wireshark several times.
05-24-2012 06:10 AM - edited 05-24-2012 06:11 AM
Thank you: I found the solution with your help.
The suggested reg key EnabledIPCameras has a spelling error. After playing around I found out that EnableIPCameras works. So, the d was wrong. Thank you, Chris!
Disabling the discovery ping does not reduce alone the time for IMAQdx Enumerate Cameras VI drastically. And I use this now to check all my USB cams are working well.
For your information a comparison of the first time start ups of my program in milliseconds:
EnableIPCameras=1 DiscoveryTimeout=1000:19082ms
EnableIPCameras=1 DiscoveryTimeout=0:18082ms
EnableIPCameras=0 DiscoveryTimeout=1000: 1077ms
EnableIPCameras=0 and DiscoveryTimeout=0: 79ms
So, thank you Chris and Günther! With both hints I was able to minimize waiting times!