Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview usb camera application fails when deployed to target machine

I have created a USB camera application which works fine on my development machine but when I try and deploy it to the target machine,
it fails when executing the "IMAQ USB Init" function, the "IMAQ USB Enumerate cameras" function executes OK and lists the camera. 
I have repeated the tests using the USB example programs supplied with the NI-IMAQ for USB library and they also fail in the same way
so I assume it is a problem with the way I am building the application.  The error code returned from "IMAQ USB Init" is -1074396024. 
Any suggestions about how to solve this problem would be welcome.  (I have added ImaqDirectShowDll to the file list included  when
building an  application, not sure if this was correct but the deployed program searches for this and fails while trying to find it otherwise.)
Regards, Dave.
0 Kudos
Message 1 of 4
(3,328 Views)
Hi
I remenber there is another dll to add and register. ( I guess it is imaqdirectshowexport.dll or something similar).
Besides that, most probably you will need some vision dll. Your aplication will ask for then.
Hope it helps.
Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 2 of 4
(3,319 Views)

Hi -dmc-,

 

I had a look through some of the other forum posts for you. found a few that might help you out a bit.

What you are actually missing is a dll file that controls the USB camera aspects.  This is installed with the vision assistant, machin vision builder but needs to be included with the install program.

Take a look at these:

http://forums.ni.com/ni/board/message?board.id=170&message.id=50139&requireLogin=False

http://forums.ni.com/ni/board/message?board.id=200&message.id=5987&requireLogin=False

This should help you on your way.

If you have any problems (or this solves your problem) could you please post back on the forum?

I'm keeping an eye on it now so I should get back to you as soon as I can

Good luck

 

AdamB

Applications Engineer, National Instruments UK

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 3 of 4
(3,303 Views)
The solution was to include both files ImaqDirectShowDll.dll and ImaqDirectShowExport.dll when building the
application and then to run regsvr32  on ImaqDirectShowExport.dll after installing the application on the target machine. 
Now the application runs on the target machine the same as on the development machine.
Thanks for your help, Dave.
0 Kudos
Message 4 of 4
(3,298 Views)