USB DRIVER FOR IMAQ

  • Follow


 Hello,
 
 I have one CreativeLabs  Webcam Live !  The webcam driver is told to be
compatible with Microsoft DirectShow.  After starting the Vision Assistant,
the system display a message "incorrect settings for the camera". Does
anyone have a sugestion ?  The camera is working  normally with the
manufacturer software.
 
THX !
0
Reply x9561 (148650) 12/1/2005 3:40:45 PM

Hi, 
I am assuming that you have a USB webcam.  If so, you will not be
able to use this with the Vision Assistant.  Here is a portion of
the Vision Assistant help below.


You can acquire live images in Vision Assistant if you have one of 
the following device and driver software combinations:


- National Instruments IMAQ device and NI-IMAQ 3.0 or later 

- IEEE 1394 industrial camera and NI-IMAQ for IEEE 1394 Cameras 1.5 or later


Do you have LabVIEW?  If so, then you can acquire images through
most usb cameras.  You will need the USB camera VI's which you can
download from:
http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=ED6942DF78E34659E034080020E74861&p_node=DZ52490&p_rank=&p_source=Internal&p_submitted=N

Please note that while NI-IMAQ for USB Cameras
comes with complete documentation, it is not supported by National
Instruments Applications Engineers.

Best Regards,
Brooks W.
National Instruments
0
Reply x9561 (148650) 12/2/2005 6:11:01 PM


Brooks,
 
 Thanks for your time on answering my question about USB camera.
  Your assumption is correct. I have a CreativeLabs Webcam Live! 
   According to NI-IMAQ USB Driver Guide, this driver support Webcams,
the guide asks for launching Vision Assistant and select  Acquire Image 
option. That is exactly when I got the message "The settings for this camera 
are not valid" message.
   Yes , I have  LABVIEW 7.1 (student version) installed on my PC.
   Last but not least, I am afraid I could not understand your statement that
I will not be able to use Vision Assistan , why not ? This Webcam according to
CreativeLabs does support  DirectShow and this is what NI asks to IMAQ USB
Driver works. If you could please make additional comments I will greatly appreciate
them.
 
Regards,
Guilherme 
0
Reply x9561 (148650) 12/3/2005 10:10:44 PM

Hi Guilherme
See this link:http://forums.ni.com/ni/board/message?board.id=200&message.id=7317&view=by_threading&page=1
There have been quite a lot of discussions about the subject.
 
 You can use most webcams under vision assistant and vision development, but there are some problem with languajes.
 
 
Hope it helps
Alipio
 
0
Reply x9561 (148650) 12/4/2005 5:10:42 PM

Hi  Guilherme,
Since you have the NI-IMAQ USB driver, and the camera supports Direct
Show filters, then you should be able to use it with Vision
Assistant.  Unfortunately, NI Application Engineers don't support
the NI-IMAQ USB driver.  However, I will try to help you
troubleshoot this problem.

Have you tried acquiring images through LabVIEW using the USB driver?  Does that work?

What OS are you using?

Best Regards,
Brooks W.
National Instruments
0
Reply x9561 (148650) 12/5/2005 8:40:46 PM

Brooks,
Thanks for your pro-active attitude on helping me with my USB issues.
I believe that the underlying issue of my problem is to identify how to set-up my camera settings
(assuming that there is no language issues) once CREATIVELABS states that its WEBCAM Live !
supports Microsoft DirectShow Driver Capabilities.  I am not sure if I understood your suggestion
to use LABVIEW  for acquiring the images without the aid of Vision Assistant, what could be the
difference that could make one working and the other don't ?
 My OS is Windows XP with SP2  ( Portuguese Version ).
Thanks,
Guilherme
0
Reply x9561 (148650) 12/11/2005 1:40:31 PM

Hi
You can be quite positive the problem is a language dependency one.
As I know for other posts and for my home PC, IMAQ USB from NI does not
work  in xp sp2 in spanish, german... etc. It works in english
only. Fails are in vision asistant and plane vision. 
Try xp sp2 englis or your native language in xp sp1.

Cheers
Alipio
0
Reply x9561 (148650) 12/11/2005 6:10:57 PM

Alipio,
  Thank you for your inputs and informations.  I hope some fellow from NI (Brooks could be the one)
could do extra investigations, why  Windows XP  SP2 has languages issues with this NI USB driver
and with SP1 works fine, no matter language you are using ?
  Brooks is this a known issue for you ?
THX !
Guilherme
0
Reply x9561 (148650) 12/11/2005 6:40:53 PM

Hi Guilherme,
The Direct Show driver for USB
cameras returns language specific strings for certain functions.  There
are some hard coded English strings used in the driver when looking for
a "Capture" pin.  Apparently on non-English OS's, the driver returns the
capture pin string in the OS language, so the english string isn't
found.  I don't see how this would be any different for XP SP1.

Alipio,
Have you seen the USB driver work on XP SP1 with a non-english OS?

Best Regards,
Brooks W.
National Instruments
0
Reply x9561 (148650) 12/12/2005 3:10:38 PM

Hi Brooks 
Yes. It works in my work PC (XP pro SP1 spanish) vision assiatant and vision. Lv7.1 and 8. 

It does not work in XP sp2 german or spanish. It does work in XP sp2 english.
So I am quite positive there is some language dependency in sp2 that is not compatible with Ni imaq for USB.
Actually, I will had to go back to sp1 to be able to keep using Ni Imaq for USB.
I am not the first one to detect this problem. There are posts in machine vision forum about the subjet.

Cheers
Alipio
0
Reply x9561 (148650) 12/12/2005 6:41:06 PM

Hi  
See attached doc whit  errors under XP pro SP2 spanish.
Hope it helpd R&D peple to track de issue. 
Cheers
 Alipio


ErroresWEBCAM.rtf:
http://forums.ni.com/attachments/ni/170/156565/1/ErroresWEBCAM.rtf
0
Reply x9561 (148650) 12/13/2005 6:10:55 PM

Brooks,
 Thank you very much for your support.  Although this driver is not supported
by NI engineering Staff, I am sure it will benefit a lot of Vision practioners with
small budget.
THX !
****************
 
Alipio,
 You are really doing a very good job to our Vision Comunity , providing good NI fellows
like Brooks with good informations and feedback about your experience using NI IMAQ
USB driver.
Cheers,
Guilherme
 
0
Reply x9561 (148650) 12/14/2005 3:10:39 PM

Hi  Guilherme,
We are happy to assit our customers in any way that we can.

I have talked to R&D about this issue and they are aware of it and
are going to implement a fix.  However, there is no defined
timeline as to when the fix will be issued.  In the mean time the
options are:
1. Roll back to SP1
2. Go to an Italian, Japanese, French, or English OS.  These languages have work with the NI-IMAQ for USB driver.

Hope this helps!

Brooks W.
National Instruments
0
Reply x9561 (148650) 12/14/2005 4:40:40 PM

We just put together a way to easily add support for new OSes for the USB driver.&nbsp; Once you have the NI-IMAQ for USB driver installed (it is recommended to use version 1.1.0 put on the web 1-4-2006), rename the ImaqDirectShowDll.dll located in your system directory (C:\windows\system32\) and replace it with the DLL that is attached.&nbsp; Then run a shipping example (C:\Program Files\National Instruments\LabVIEW x.x\examples\imaq\imaqUSB examples.llb)&nbsp; A popup dialog will appear with a string.&nbsp; Please send a screen shot of the first dialog box to <a href="mailto:support@ni.com" target="_blank">support@ni.com</a> with an email title of IMAQ USB Foreign OS String and what OS you are using. 
You can replace the ImaqDirectShowDll.dll with the original to get back the original behavior...within a few days/weeks an updated version of the driver will be available with support for your OS.
We have also recently added the ability to set the resolution of the camera programmatically to a supported video mode of the camera without using a popup dialog box.&nbsp; The driver that has this feature is now available on the web.&nbsp; Upgrading to version 1.1.0 which has this feature should break existing code, but the IMAQ USB Init will have an additional input to allow you to specify which video you want to acquire with.
Hope this helps,
Brad


USB Foreign OS DLL.zip:
http://forums.ni.com/attachments/ni/170/159194/1/USB Foreign OS DLL.zip
0
Reply x9561 (148650) 1/4/2006 3:10:54 PM

Hi Brad 
Once more, outstanding support from NI.
Thanks.
&nbsp;This things ( since IMAQ usb is not oficially supported by NI)
makes a company to be a leader and its users to be sure they will have
a true and real help and support.

Alipio
0
Reply x9561 (148650) 1/4/2006 5:40:47 PM

Here is an updated DLL with support for Norwegian and Dutch...I will update the Example Program soon, but wanted to get as many languages in before I update the web link....make sure you have installed the latest NI-IMAQ USB (version 1.1.0) before replacing the DLL in the windows/system32 directory with this one.
&nbsp;
Hope that helps,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/161019/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 1/13/2006 4:10:47 PM

Hi Brad 
Same problem about support

Attached is error for XP SP2 spanish.

Looking forward to get the patch

Cheers
Alipio


error_imaq_usb XPproSP2spanish.jpg:
http://forums.ni.com/attachments/ni/170/161043/1/error_imaq_usb XPproSP2spanish.jpg
0
Reply x9561 (148650) 1/13/2006 5:40:55 PM

Here's the updated DLL with Spanish Support...make sure you've installed NI-IMAQ for USB version 1.1.0 for this DLL to work correctly.
<a href="http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=ED6942DF78E34659E034080020E74861&amp;p_node=DZ52490&amp;p_source=External" target="_blank">http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=ED6942DF78E34659E034080020E74861&amp;p_node=DZ52490&amp;p_source=External</a> 
&nbsp;
Hope this helps,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/161069/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 1/13/2006 7:10:43 PM

Hello Brad. 

Fine in spanish. It works
Thanks a lot

Alipio
0
Reply x9561 (148650) 1/14/2006 7:10:44 PM

Brad and fellows,
Good news !&nbsp; It is working perfeclty with XP SP2&nbsp; Portuguese (BRAZIL) .
Cheers,
Guilherme
0
Reply x9561 (148650) 1/15/2006 12:40:35 PM

I think the Russian support should work now. I will update the Example Program on Friday to include all the new OS support...thanks for everyone's feedback.
 &nbsp;
Remember to use the NI-IMAQ USB version 1.1 currently available and replace the old DLL with the one attached to get the new support for your OS.


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/163548/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 1/26/2006 6:13:08 PM

Brad and fellows,
Good news !&nbsp; It is working perfeclty with XP SP2&nbsp;&nbsp;Russian.
Cheers,
Chika
0
Reply x9561 (148650) 1/27/2006 10:43:38 AM

Could you updated&nbsp;the DLL with support for simple chinese.
think you very much
0
Reply x9561 (148650) 1/27/2006 3:43:49 PM

You need to include a screenshot of the string for simple Chinese.&nbsp; Please read the discussion thread and use the DLL that will popup a message for your OS that will tell me what the localized string is.
&nbsp;
Thanks,
Brad
0
Reply x9561 (148650) 1/27/2006 4:13:59 PM

Hi Brad
&nbsp;&nbsp;&nbsp;&nbsp; I'm sorry to write back so later due to internet failure here in these days.
&nbsp;&nbsp;&nbsp;&nbsp; I have replace&nbsp;the ImaqDirectShowDll with the DLL that you attached .(USB Foreign OS DLL.zip).
&nbsp;&nbsp;&nbsp;&nbsp; and this&nbsp;screenshot attached is the error&nbsp;message for XP pro SP2 simple chinese.
&nbsp;&nbsp;&nbsp; Looking forward to get the patch
&nbsp;&nbsp;&nbsp; Thank you very much


error_imaq_usb XPproSP2 Simple Chinese.jpg:
http://forums.ni.com/attachments/ni/170/164672/1/error_imaq_usb XPproSP2 Simple Chinese.jpg
0
Reply x9561 (148650) 2/1/2006 5:40:51 PM

Here's the Simple Chinese fix...let me know how it works for you.
&nbsp;
Thanks,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/164690/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 2/1/2006 7:10:48 PM

aftek wrote:HiI have got the same problem. I use omnivision USB 2 Camera (1600x1200).My
OS is WIn XP SP2 (Polish). I try use this camera with Ni Vision 7.1 and
evolution version 8.1. I had installed Ni-IMAQ for USB Cameras.Looking forward to get the patchYou
need to follow the procedure! In order for NI to know how to add
support for your language they need to know the exact string the
localized driver is expecting. For this you have to install the NI-IMAQ
version 1.1 USB driver, replace the DLL mentioned in an earlier post by Brad from NI with
the attached DLL in that post, start a VI in LabVIEW that tries to capture an image
and then make a screen shot of the dialog that shows up and attach it
to your post.

Of course the whole story is only necessary since MS decided to do the
braindamaged thing of localizing a DirectX programming interface to
individual languages in XP SP2. Almost like when they localized the DDE
commands to their office suite programs a long time ago!

Rolf KalbermatterMessage Edited by rolfk on 03-05-2006  11:02 AM
0
Reply x9561 (148650) 3/5/2006 10:10:41 AM

If NI is smart enough, they should have made the driver language independant other than easily blaming MS. Other LabVIEW usb webcam toolkit and many directshow applications do not have these problem. It will be too busy to add every languages on the earth to the driver...
&nbsp;
Hope you take this as good input... but if I get ONE star for this, I am OK too :womanhappy:
&nbsp;
0
Reply x9561 (148650) 4/21/2006 2:10:09 PM

Hello Brad,
I'm using an XP Pro SP2 Greek and I wonder if you could help me too.
However, after replacing the .dll, I got 4 error messages by running the Grab.vi (the one after the other).
Here they are from the first to the last in top - down order.
&nbsp;
Thanx in advance....
&nbsp;
&nbsp;Message Edited by avdel on 05-20-2006  09:00 AM


XP Pro SP2 Greek .jpg:
http://forums.ni.com/attachments/ni/170/185969/2/XP Pro SP2 Greek .jpg
0
Reply x9561 (148650) 5/20/2006 2:10:08 PM

Here is an updated DLL with Hungarian and Greece OS support.&nbsp; Let me know if there are any problems.
Thanks,
Brad
&nbsp;


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/186141/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 5/22/2006 2:40:14 PM

Ok Brad,
Same goes for XP Pro SP2 Greek.
Everything looks fine.
I'll let you know if anything comes up.
&nbsp;
Thank you
avdel
0
Reply x9561 (148650) 5/23/2006 8:40:11 AM

I'm having he same problem as the previous poster.&nbsp; When
performing multiple "snaps" and disposing of all references each
itteration, the memory leaks and leaks...Only solvable by quiting
labview and restarting.&nbsp; :smileysad:
0
Reply x9561 (148650) 5/31/2006 8:10:09 PM

Dear Brad:
I can use USB camera after use your ImaqDirectShowDll.dll, Could you tell me how program your dll?
Boone301@126.com
0
Reply x9561 (148650) 6/5/2006 10:40:08 AM

I haven't updated the&nbsp;USB example page&nbsp;yet, so the latest DLL I posted on this thread has additional OSes that it will support that the USB driver download example page doesn't support.&nbsp; Use the latest DLL included in this thread to get the most number of operating systems supported.
As for the memory leak, I'm not sure when I'll have a chance to debug that, but I would recommend not&nbsp;doing snaps in a loop or opening/closing a continuous acquisition repeatedly.&nbsp; If you need to take multiple images, why not just open a session and keep it open until you're done acquiring.&nbsp; While the session is&nbsp;open, you can use the session to acquire images whenever you want, and you could use that session in subVIs by&nbsp;passing the session in or using a global variable.&nbsp; Bottom line is to avoid leaking memory, don't open/close repeatedly, just do it once...this is a good programming technique, even if there wasn't a leak I would recommend this approach.&nbsp; Let me know if there's a good use case where you really do need to open/close alot.
Thanks,
Brad
0
Reply x9561 (148650) 6/12/2006 4:10:09 PM

I'm no Test Stand expert, but Test Stand provides a way to have a setup called once at the beginning, and a cleanup called once at the end I think, and then you can call the acquisition in Main part of your code.&nbsp; It may require having three VIs instead of 1, but it will be much more efficient (and not leak memory).&nbsp; Here is a discussion forum post about it:
<a href="http://forums.ni.com/ni/board/message?board.id=330&amp;message.id=8456&amp;requireLogin=False" target="_blank">http://forums.ni.com/ni/board/message?board.id=330&amp;message.id=8456&amp;requireLogin=False</a> 
I would recommend using this approach for the USB acquisition.
Hope this helps,
Brad
0
Reply x9561 (148650) 6/12/2006 9:40:08 PM

You can use the Cast VI to convert the USB session to an integer (just like they do with VISA).&nbsp; Here's an example:
&nbsp;
Hope this helps,
Brad
&nbsp;


USB Example.vi:
http://forums.ni.com/attachments/ni/170/190009/1/USB Example.vi
0
Reply x9561 (148650) 6/14/2006 9:40:09 PM

I have similar problems for Czech version.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hopes help.
&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Michal Lesnak (michal.lesnak@vsb.cz)
0
Reply x9561 (148650) 8/15/2006 2:10:14 PM

Hi,
I'm experiencing the same&nbsp;IMAQ USB language problem running LabView (&amp; Vision Assistant)&nbsp;on XP SP2 in Swedish.
&nbsp;
I&nbsp; have attached a screenshot from running the example with the modified dll, previously posted.
&nbsp;
Thank you.


XP SP2 Swedish error message.jpg:
http://forums.ni.com/attachments/ni/170/209224/1/XP SP2 Swedish error message.jpg
0
Reply x9561 (148650) 10/9/2006 1:40:09 PM

Here's an updated DLL, let me know how it works for you.&nbsp; Unzip the file and replace your current DLL with this one.
&nbsp;
Thanks,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/209245/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 10/9/2006 3:10:07 PM

Works fine in Swedish now. Thank you for responding so quickly, I sent a request to NI support 2 weeks ago following your instructions in this thread...still no word.
Most grateful.
0
Reply x9561 (148650) 10/10/2006 6:40:08 AM

I really hope you to support for Korean langulage OS too. I am attaching screen shots. I got for popup message in the following sequence.
msg1.gif
msg2.gif
msg1.gif
msg2.gif
Thank you.
&nbsp;


msg1.gif:
http://forums.ni.com/attachments/ni/170/210564/1/msg1.gif


msg2.gif:
http://forums.ni.com/attachments/ni/170/210564/2/msg2.gif
0
Reply x9561 (148650) 10/17/2006 2:10:07 AM

Brad wrote:
Here's an updated DLL, let me know how it works for you.&nbsp; Unzip the file and replace your current DLL with this one.Brad,
there really has to be a programmatic and not language-dependant
interface to that functionality too. Other software manages to capture
images without this language hassle. This exercise is really going
nowhere like that.

Rolf Kalbermatter
0
Reply x9561 (148650) 10/17/2006 6:40:07 AM

TonP wrote:Ditto Rolf.And while your at it, have a look at the TDM excel plugins which suffer a similar issue (only english)TonBrad
being privy to the IMAQ libraries somehow it is not likely that he
could do anything about the TDM plugins. Haven't looked at it but
wouldn't that plugin be a VBA plugin and could be modified yourself?

Rolf Kalbermatter
0
Reply x9561 (148650) 10/17/2006 8:10:07 AM

I agree that having to add each OS specific string is a pain, but for now, that's easier than rewriting the driver, and since this is a free download we're going to stick with this method since it takes about 5 minutes every month&nbsp;to add support for another OS...this is a lot better than rewriting the driver (since this isn't my full time job).&nbsp; We hope to have better support in the future, but this is what we have now.&nbsp; We already have support for 14 languages, so hopefully that covers most of the OSes people use.&nbsp; Here's support for Korean.&nbsp; Let me know how it works for you.
&nbsp;
Thanks,
Brad
&nbsp;


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/210672/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 10/17/2006 3:40:07 PM

Thank you for your quick support. It works find in Korean Language OS. 
&nbsp;
0
Reply x9561 (148650) 10/17/2006 10:10:07 PM

I would like to aks you to support for Czech langulage
OS too. I am attaching screen shots.


Clip020.png:
http://forums.ni.com/attachments/ni/170/212587/1/Clip020.png


Clip021.png:
http://forums.ni.com/attachments/ni/170/212587/2/Clip021.png
0
Reply x9561 (148650) 10/27/2006 12:10:08 PM

Here's an updated DLL that has support for Czech OS.&nbsp; Let me know how it works for you.
Thanks,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/213079/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 10/31/2006 3:10:08 PM

Thanks,Brad!
Korean driver works great!!
0
Reply x9561 (148650) 11/8/2006 7:40:09 AM

Hi Brad

Just an idea: Would it be possible to put this string in the registry?
It would save you a lot of work and make it easier for us to change it.
0
Reply x9561 (148650) 12/1/2006 6:40:08 AM

hmo wrote:
Hi BradJust an idea: Would it be possible to put this string in the registry? It would save you a lot of work and make it easier for us to change it.



Interesting idea. The only problem I see with this is that these strings need to be in Unicode and most people do not know how to write Unicode. What you see in the different images as dots are simply unprintable character codes in the ASCII codeset. For Western languages this means usually that they are 0 but for others that is quite a different story.
And in the case of eastern languages the string seems to be displayed in hex code, something else a lot of people are not privy with.
So while I think the idea of supporting a special registry key would be a nice idea I wonder if that many people would be willing to fiddle with Unicode themselves.
Rolf Kalbermatter
0
Reply x9561 (148650) 12/1/2006 7:40:08 AM

Hi Rolf 

You may be right. I am not so familiar with unicode. But my thought was
that what Brad can see from the jpg images must contain enough
information for him to make the correct entry. If this string is
entered in the registry exactly as it is returned by the litte tool
maybe Brad could make any conversion if needed.

For example the Corean returns xa1 xce xd0 xcc (see a previous message
in this thread). That should be easy to enter even as a string. My own
XP (in danish) returns H.e.n.t. which also should be easy to enter in a
registry string.

I know this is all workarounds because the usb cam support is only for
US OS but maybe we could make it a bit easier for us all until NI
releases a driver that works for all OS.

Brad - are you there?
0
Reply x9561 (148650) 12/1/2006 8:10:07 AM

hmo wrote:Hi RolfYou may be right. I am not so familiar with unicode. But my thought was that what Brad can see from the jpg images must contain enough information for him to make the correct entry. If this string is entered in the registry exactly as it is returned by the litte tool maybe Brad could make any conversion if needed.For example the Corean returns xa1 xce xd0 xcc (see a previous message in this thread). That should be easy to enter even as a string. My own XP (in danish) returns H.e.n.t. which also should be easy to enter in a registry string.I know this is all workarounds because the usb cam support is only for US OS but maybe we could make it a bit easier for us all until NI releases a driver that works for all OS.Brad - are you there?



Actually it is more complicated than that. Brads detection code uses apparently different visual output for western languages with the MSB of each unicode word usually being 0 and eastern languages using a much larger range of Unicode values which are presented as hex values.
Since the registry uses Unicode to store strings since at least about Windows NT 4.0 , your H.e.n.t. could&nbsp;be entered in the registry simply as Hent in the String Edit dialog but for the Korean entry you would need to edit the binary representation of the string in the Modify Binary Data dialog and enter there&nbsp;&nbsp;A1&nbsp;CE D0&nbsp;CC 00 00. Maybe that a Korean Windows installation would support entering the actual text itself but I'm not sure. And there may be other problems I haven't considered yet.
Rolf Kalbermatter
0
Reply x9561 (148650) 12/1/2006 8:40:08 AM

OK - as I said I do not have that must knowledge about unicode and the influence of operating systems.  
But what about this:

1) Brad creates a tool that returns the BINARY entry for the registry. Should work for all languages.

2) We enter the binary data in the registry and run the new dll that reads our registry entry.

3) Have a cup of cofee and enjoy your Web CAM
0
Reply x9561 (148650) 12/1/2006 12:40:10 PM

Alright, I sure appreciate everyones input on how to make my job easier.&nbsp; Unfortunately I don't really have much time to work on USB support, and adding the string to the DLL only takes about 30 seconds (although writing to the discussion thread and updating adds another 30 seconds).&nbsp; But for now, I am going to stick with this method until we come out with something better (unfortunatley I don't have a timeline, but believe me this isn't my preffered way of supporting USB either).
So, Thanks again for everyone's input on how to make this process better, but I think the time involved to make it better would exceed the current process.&nbsp; As soon as we do have a more official driver, I'll make sure you all know about it and it definitely won't have this problem:&gt;
Thanks.
&nbsp;
P.S. The updated DLL is included


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/218184/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 12/1/2006 3:40:09 PM

Thanks Brad - works perfect for Danish language. (And now I will keep my mouth shut! - for this matter at least....) 

Best regards
Henrik Molsen
0
Reply x9561 (148650) 12/5/2006 6:40:08 AM

When I distributed my application I installed NI Vision Developer version 8.0 only to instal IMAQ for USB.
Then I removed&nbsp;developer engine&nbsp;and installed Vision 8.0 &nbsp;Runtime engine and&nbsp;also Labview 8.0 runtime engine.
&nbsp;
Andrzej
0
Reply x9561 (148650) 12/28/2006 5:10:11 PM

Hi Tono:
Thanks for your suggestion, and I have found the modified DLL for Chinese Simplified Version in some one&nbsp;former page. Thanks for your help.
0
Reply x9561 (148650) 1/4/2007 12:40:12 AM

Sorry I've missed out on all the good USB discussion.&nbsp; Glad to hear you found the Simple Chinese fix...I have been meaning to update the&nbsp;web example&nbsp;with the latest DLL that has all the new languages.&nbsp; As for distributing USB LV Applications, there's a much easier way that doesn't require anything special on the target computers.&nbsp; Check out this thread where I mention how to do it:
<a href="http://forums.ni.com/ni/board/message?board.id=200&amp;message.id=5987" target="_blank">http://forums.ni.com/ni/board/message?board.id=200&amp;message.id=5987</a> 
You will of course still need to license Vision if you're using Vision functions, but as far as getting the USB driver to work, you don't need to install it, just copy the two DLLs and register one of them and then your exe will work.
Hope this helps, 
Brad
0
Reply x9561 (148650) 1/4/2007 3:40:10 PM

There is a bug, but I don't think it's going to be fixed anytime soon unfortunately (this is not a supported product and it doesn't get updated much).&nbsp; The workaround is to not open/close the session repeatedly.&nbsp; You can create the appearance of a snap/grab by opening the camera, doing a grab setup, and when they want to grab, calling grab acquire continuously.&nbsp; When they want to snap, call grab acquire once.&nbsp; When you are done with the camera and your application closes, close the session.&nbsp; This way it is just open once during your application.&nbsp; Sorry there's not a better fix, but for now this is what I recommend.&nbsp; This means users won't be able to change the acquistion window on the fly (since this is set in the Init)&nbsp;unless they&nbsp;open the driver's popup window to set the resolution of the camera.
Hope this helps,
Brad
0
Reply x9561 (148650) 1/15/2007 11:10:08 PM

Hi,
I experience similiar problem with USB vision driver . When I run my test application multiple times it with crash with window pointing to problem in imaqdirectshowdll.dll. I use only one IMAQ init and IMAQ grab setup&nbsp;call and multple IMAQ Grab Acquire calls. The strange thing is that the failure is not always in the point of image acquistion. Looks like driver is runnig continuously on the background and will eventualy crash. I&nbsp;used IMAQ stop&nbsp;call but it had no effect. Closing test every time before second execution&nbsp;helps( It must&nbsp;purge driver from windows memory) but it is&nbsp;only temporary solution.
Andrew&nbsp;
&nbsp;
0
Reply x9561 (148650) 2/8/2007 2:10:12 PM

I'm using Finnish XPSP2, strings are attached below. It would be very nice to have a support for this os also. Thank you!


ImageA.jpg:
http://forums.ni.com/attachments/ni/170/233652/1/ImageA.jpg


ImageB.jpg:
http://forums.ni.com/attachments/ni/170/233652/2/ImageB.jpg
0
Reply x9561 (148650) 3/6/2007 11:40:08 AM

Here's the updated DLL with Finnish support.&nbsp; Let me know if you have any problems.
&nbsp;
Thanks,
Brad
&nbsp;


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/233703/1/ImaqDirectShowDll.zip
0
Reply brad.buchanan (1) 3/6/2007 3:10:08 PM

Hello Brad,
&nbsp;
&nbsp;I would like to aks you to support for Traditional Chinese langulage OS too. I am attaching screen shots.
&nbsp;
&nbsp;
<a href="http://www.photo-host.org/v/diet/558780264102162921517.jpg" target="_blank">http://www.photo-host.org/v/diet/558780264102162921517.jpg</a> 
&nbsp;
&nbsp;
&nbsp;

Thanks,
Brad
0
Reply x9561 (148650) 3/31/2007 4:10:07 PM

The screenshot you provided is not for simplified chinese, but for English, which is already in the driver.&nbsp; Here's a copy of the latest DLL and if you're still having problems, it may be&nbsp;the camera driver is not Direct Show compliant.&nbsp; Have you tried other USB&nbsp;cameras?
&nbsp;Hope this helps,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/239238/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 4/2/2007 6:10:09 PM

How can I use USB Camera in LABVIEW8.2?
I had used USB Camera&nbsp;in LV8.0 after installing USB driver as we known very well.
I think&nbsp;this driver is not work in LV8.2. But Vision Assistant of LV8.2 showes image through USB Camera.
After install USB driver in LV8.2, I can't see function icon in function palette.
Thanks,
Warmshine
&nbsp;
0
Reply x9561 (148650) 4/6/2007 9:10:07 AM

Hey Warmshine,
&nbsp;
The latest installer&nbsp;has&nbsp;LV 8.2 support (assuming you have Vision installed with LV 8.2 support).&nbsp;Use the installer located here:
<a href="http://zone.ni.com/devzone/cda/epd/p/id/5030" target="_blank">http://zone.ni.com/devzone/cda/epd/p/id/5030</a> 
Make sure&nbsp;you have the llb installed (Program Files\National Instruments\LabVIEW 8.2\vi.lib\imaqUSB\imaqUSB.llb) and if so, make sure the vision7.mnu is located in Program Files\National Instruments\LabVIEW 8.2\menus\Categories\VisionMotion\ (It might be located under menus\default\Vision and if so copy it and put it under the Categories\VisionMotion\ location).&nbsp; I will update this in the installer.
Thanks,
Brad
0
Reply x9561 (148650) 4/6/2007 6:10:07 PM

hey Brad,
&nbsp;
I would really appreciate if you could make a fix for Turkish version.
I attached the error picture
&nbsp;
Ragards.


error11.JPG:
http://forums.ni.com/attachments/ni/170/241674/1/error11.JPG
0
Reply x9561 (148650) 4/14/2007 12:40:11 AM

Here's an updated DLL with Turkish support.&nbsp; Let me know if you have any problems.
Thanks,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/242169/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 4/17/2007 2:40:11 PM

hi Brad,
It works fine now.
thanks a lot.
&nbsp;
0
Reply x9561 (148650) 4/17/2007 4:40:14 PM

That string is already in the driver.&nbsp; Make sure the camera driver is installed correctly and if you call the enumerate NI-IMAQ for USB function, your camera is in the list.&nbsp; Not all camera drivers are DirectShow filters and this is required for the NI-IMAQ for USB driver to recognize the camera. If your camera doesn't show up in the list and the driver is installed correctly, try a different web camera (I use "Creative" web cams without problems).
Hope that helps,
Brad
0
Reply x9561 (148650) 7/27/2007 2:10:05 PM

Hi,
I&nbsp;plan to upgrade to Labview 8.5 and Vision Development Module 8.5.
When USB driver will be uprgraded to support&nbsp;new versions ?
Is there a chance for IMAQ USB driver to become part of regular NI distribution ?
&nbsp;
Andrew
0
Reply x9561 (148650) 8/21/2007 6:10:06 PM

Dear Mr. Brad, I?ve a serious problem:
I need to use two webcams and&nbsp;they may capture the image two seconds one of other.
I?ve initialized the cam and I can use the snap for capture the image, but snap&nbsp; works badly: the time of acquisition increases and after the 15/20 cycle a timeout error stops the program.
I ?ve tried with only one cam but&nbsp; the situation&nbsp; doesn?t change. Snap doesn?t work.
I ?ve changed the driver of webcam, I?ve also tried to work with lab view 8, lab view 8.2 , lab view 8.1 , windows xp sp0, sp1, sp2 but the system isn?t able to operate.
I?ve tried &nbsp;on 3 different computers. 
Six mounts ago the snap worked and I captured image from two cameras.
In conclusion I hope that you can find&nbsp; a solution to resolve this problem, in addiction to this favour I?d like to&nbsp; have a upgrade of imaq usb camera &nbsp;that could&nbsp; make work more than 2 cameras simultaneously in grab and&nbsp; &nbsp;if you could realize this . Finally I want to know&nbsp; how much does it cost in euro or dollar.
I thank you in advance for you help.
0
Reply x9561 (148650) 9/14/2007 4:10:09 PM

Hello Ragio,
The USB driver is intended for hobbyists&nbsp;and educational purposes.&nbsp;For&nbsp;applications that require robustness or more flexible functionality like multi camera support, we recommend using a 3rd party driver like Luminera or using our NI-IMAQdx driver with a 1394 web cam that&nbsp;follows the DCAM standard like the Unibrain Fire-i or Apple iSight.
Sorry this free example USB Driver doesn't meet every need, but I hope this information helps,
Brad
0
Reply x9561 (148650) 9/17/2007 9:10:06 PM

I am using with Labview v8.0 and NI Vision 8.5 and Windows XP SP2 Hebrew(Israel) version. I followed the explanations in disscussion forum and installed USB Foreeign OS.DLL and get following errors(see attached files).
Please help
0
Reply x9561 (148650) 10/22/2007 9:40:07 AM

Hello Alex,
Here is the updated DLL with Hebrew support. Let me know if you have any problems.
Thanks,
Brad


ImaqDirectShowDll.zip:
http://forums.ni.com/attachments/ni/170/279734/1/ImaqDirectShowDll.zip
0
Reply x9561 (148650) 10/23/2007 2:40:06 PM

Hello Brad
I installed&nbsp;ImaqDirectShow.DLL and it works perfect. 
Thanks a lot for your help
Alex:
:smileyvery-happy:
&nbsp;
0
Reply x9561 (148650) 10/24/2007 9:10:05 AM

Hi all:
My camera have LED,&nbsp; It can been open in KsProxy.ax, could you add this function into the drive?
&nbsp;
<a href="mailto:Boone301@126.com" target="_blank">Boone301@126.com</a>
0
Reply x9561 (148650) 10/30/2007 3:40:04 AM

Hi all:
My camera have LED,&nbsp; It can been open in KsProxy.ax, could you add this function into the drive?
&nbsp;
Boone301@126.com
0
Reply x9561 (148650) 10/30/2007 3:40:04 AM

Deaar Brad,
In the ImaqDirectShowDll.dll(1.0.0.1) only have 10 function as:
&nbsp;


片段.jpg:
http://forums.ni.com/attachments/ni/170/281954/1/片段.jpg
0
Reply x9561 (148650) 11/2/2007 2:40:09 AM

Boone301 wrote:

Deaar Brad,
In the ImaqDirectShowDll.dll(1.0.0.1) only have 10 function as:
&nbsp;


Brad meant that LED control was a manufacturer specific feature. There is most probably no generic Windows sanctioned API to control that and the ImaqDirectShow.dll is not meant to interface to manufacturer specific API extensions at all. That path is a can of worms nobody wants to go in a generic API driver.
Rolf Kalbermatter
0
Reply x9561 (148650) 11/2/2007 8:10:05 AM

Hi,
I'm&nbsp;trying to find a way to get 640x480 images out of my webcam. Yes it is capable, and I have tried with USB IMAQ and works great, BUT with this dialog box of video settings always when I initialize webcam.
Anyone knows how to bypass this dialog box?
&nbsp;
I also trying with Peter Webcam 1.4 , where it is possible to send width and height, but if you look at source code, not assign of this variables to camera, so don't work.
&nbsp;
Thanks
Nuno Costa
0
Reply x9561 (148650) 12/27/2007 4:40:09 PM

80 Replies
277 Views

(page loaded in 0.833 seconds)

Similiar Articles:









7/15/2012 4:51:24 PM


Reply: