Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

USB camera & application builder

I'm using the NI-IMAQ for USB Cameras to grab pictures from an USB-camera.
So far everything works fine within Labview.

But trying to run an exe-application on a target machine, where no Labview is installed, trouble starts:
An Error message is displayed, if I try to run the application:
Imaq USB Grab Setup.vi
Error System
-1074396024
The manual describes this error as "system memory error"

Obvious, some driver/software is missing on the target machine.

The drivers, which were delivered from the usb cameras manufacturer, are installed on the target machine.
A small sample program, which is included within this driver setup, can successfully communicate with the camera.

Because I do not expect, that the standard LV7.1 runtime-engine has USB-camera-support included, I tried to install the "NI-IMAQ for USB Cameras" on the target computers, but I got an error message, telling that no Labview was found on this machine and therefore the software couldn't be installed.

Manually copying the "imaqDirectShowDll.dll" to the target machine also doesn't help.
Then I tried to install the "Imaq Vision deployment engine" on the target machine, although I don't use any of the vision-Vi's in my application.
-> The error is still there.

What can I do, to get my USB camera running ?



Regards Holger

***************************************+
Labview7.1 / Windows XP
0 Kudos
Message 1 of 5
(5,390 Views)
Hello Holger,

Good catch! Unfortunately this was not documented and I'll make sure a Knowledge Base comes out of this and future versions of the driver have this documented. Here are the steps to distribute a USB application:

- You will need the following DLLs on your destination machine in the c:\Windows\System32 directory.
ImaqDirectShowDll.dll
ImaqDirectShowExport.dll

Then go to Start>>Run and type in
regsvr32 C:\WINDOWS\system32\ImaqDirectShowExport.dll
and then press OK. You can drag the file to the command line to get the full path if you're on a different OS and the system directory is different.

Once the dll is registered successfully, your exe should work fine assuming everything else with your exe is correct and all other files that it requires are on the machine.

I hope this helps,
Brad
0 Kudos
Message 2 of 5
(5,373 Views)
Hello Bred!

Thanks a lot! Now it works!

Funny enough that I was so close to the solution:
I already tried to register the "imaqDirectShowDll.dll", but for this dll I got an error message.
Then I didn't try to register "imaqDirectShowExport.dll" any more.

Regards
Holger
0 Kudos
Message 3 of 5
(5,369 Views)

hello brad;

I have some problems with my usb webcam on labview 8.5. It doesn't work. I have read your message to HolgerM. I have nearly same problem (?). I tried your advise but same error message came again in Labview. I run regsvr32 C:\WINDOWS\system32\ImaqDirectShowExport.dll
but I couldn't run regsvr32 C:\WINDOWS\system32\ImaqDirectShowDll.dll.

 
I will send you my error message in a word document and my Labview file. If you have an idea, please write me...

thanks a lot....

Download All
0 Kudos
Message 4 of 5
(4,336 Views)

That error doesn't sound like a USB error, and it has Vision for the title. Does it work if you run one of the USB examples that are installed by default? They are located under LabVIEW/examples/IMAQ/imaqUSB examples.llb.

 

If you turn on highluight execution, where does the error come from? It may be coming from the Vision function where you wire the error cluster into the IMAQ USB Init. 

 

Hope that helps,

Brad

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