Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-IMAQ for USB and usb Cameras

Hi Adam!

Yes, I have registered the dll you mentioned on the machine where I installed my application, i.e. I followed all the steps on the knowledgebase articles. But there was still a problem.

Regarding, making the simple application without USB, I have thought of that also. And will soon try it out. But since there are many users, who claimed their programs working after those steps, I thought the imaq is working well after the installer was built including vision run-time.

Do you think, I might be still missing out something?

Vaibhav
0 Kudos
Message 31 of 56
(2,386 Views)

I think it would be worth while to send your LV project, the top level VI and other source files, and the executable you're using. Building the source distribution just builds an LLB, but if LabVIEW isn't on the target machine, it won't help the exe find dependencies. It looks like your sample is very straightforward, so I think once we get your code, it will make it easier to test out and try. Are you running the exe on a English OS? Is the target machine a 64 bit OS or running Vista? Please provide the details for the target machine to help us reproduce this issue. 

Sorry this has taken so long, but once we can reproduce it, we can get to the bottom of it.

Thanks,

Brad  

0 Kudos
Message 32 of 56
(2,335 Views)

Hi Brad!

The target machine is a normal P4 (32 bit) running XP. Here I am sending the source VI. It's just a single VI application, but calls other IMAQ and sound functions.

Pls don't forget to mention IP address of your Data socket server machine, in the Server IP field in front panel.

Thanks!

 



Message Edited by Support on 06-09-2008 08:41 AM
Vaibhav
0 Kudos
Message 33 of 56
(2,334 Views)

Hi Brad!

I am putting revised programs here with this message.

The previous message had files with organisational details, so had to ask the moderators to remove them.

In this new message I am putting two files, source (to acquire audio/video data and send to datasocket server) and client (to receive and play these data from datasocket server).

Please mention your data socket server IP address on both of these programs' front panels.

 

Thanks again.

Vaibhav
Download All
0 Kudos
Message 34 of 56
(2,309 Views)

OK, I just tried it on a clean machine and it worked fine. Here's what I had on the clean XP machine:

LabVIEW RTE

Vision RTE

DataSocket had to be installed as well.

copied ImaqDirectShowDll.dll to c:\windows\system32

copied ImaqDirectShowExport.dll to c:\windows\system32

register the export DLL by going to Start>>Run and typing:

 C:\WINDOWS\system32\ImaqDirectShowExport.dll

After getting the message about the DLL being registered, I copied the two exes I made and the data folder(I changed the IP address so both would run on the local machine by default) Attached the source files and exes below

I also started the DataSocket server on the machine and then I ran the Server.exe and acquired images (You need to make sure the USB camera driver is installed so that the camera correctly works on the machine). When I saw images correctly acquired here, I ran the Client.exe and also saw the same images displayed on this UI, so I figured everything worked.

Not sure what you're missing, but it definitely works if you follow all these steps.

Thanks,

Brad

 

0 Kudos
Message 35 of 56
(2,269 Views)
Hi Brad!
Thanks for the files.
 
Well, I also performed all these steps before, and included the LV RTE and Vision RTE in my installer, instead of installing them manually and run EXE. But it didn't run.
 
Anyways, I made programs with LV 8.2.1 so I was using corresponding RTEs. I guess you are using LV 8.5.1. I have used LV RTE 851std (100 Mb) and Vision RTE 850. And the programs worked without error on the computer. But, I couldn't see the image. The datasocket server, however, showed packets being sent and received. So what could be the problem? My camera problem?
 
Now, I have several questions.
1) As I understood, you installed Datasocket server on the computer, because you were running everything on the same computer, right? Because, I am having datasocket server on another computer, I do not need to install DS on the computer which runs Source.exe, right? By the way, how could you install only Datasocket server? As I understand, we have no possibility to install only datasocket server. We have to Install complete Labview, or no?
2) Is my problem version related? Yours is in 8.5x and mine in 8.2x. Though, I don't believe this.
3) Isn't it possible to include the RTEs in installer, as I have always tried to do? You have suggested to install them beforehand, manually and then run EXE. I would prefer to prepare just Installers, with all the RTEs and then distribute it to my users. I believe I am making a mistake in building the installer. Can you try to make an installer and let me know which options to select, in different stages?
 
Thanks again for the support.
Vaibhav
0 Kudos
Message 36 of 56
(2,256 Views)

When I tested it on a "clean" machine, it actually had Vision Builder AI 3.5 on it, but this was the only NI Software installed. This installs the LabVIEW RTE, Vision RTE, and DataSocket. I'm not that familiar with making installers, so maybe someone else can answer your questions about installers, but I think something that would help track down the issue would be to have more debug details on your front panel. For example, have the errors displayed from USB functions and DataSocket functions. You said you had the DataSocket Server running on the machine with the Source, I just tried this on two different machines, and I had 2 processes connected when the Client was running..do you have 2 or 1 connected? If you have a string display the flatten string, does it match on the server and client side? You had mentioned an error about USB Init, are you still getting this error, or is the video just not showing up? Does the audio work if you disable the video portion of the code? If you go to NI License manager, are the RTEs licesnsed? Is the image displayed on the Server? I don't think the version of LV or Vision makes a difference. It seems like you should be getting an error someplace and so finding out where the error is coming from would be a helpful start. I think these debugging suggestions will help you get to the bottom of the issue.

Thanks,

Brad

0 Kudos
Message 37 of 56
(2,242 Views)
Hi Brad!
 
While running your EXE I don't get any error, but I get neither image nor sound, on any computer (client and source). Of course, when I start client and source programs, I also see 2 applications running, and packets being received and sent very normally. It's just that I don't see/hear anything.
 
I will now do step by step debugging, which will take some more time but I hope to get to the root of the problem.
 
The RTEs are licensed.
 
How to get errors displayed? Not by using General Error dialogue vi?
 
Will get back to you once I do my debugging.
Vaibhav
0 Kudos
Message 38 of 56
(2,238 Views)

One more question.

Can you tell me please, which option did you select in Additional Exclusion, while building EXE?

1) Remove As much as possible

2) Remove unreferenced ...

3) Do not disconnect ...

 

I think this can be cause for good or bad program exe.

Vaibhav
0 Kudos
Message 39 of 56
(2,235 Views)
I used all the default settings. Here's the LV 8.2 source and exes. Try runniong the source and client executables on your target machine and make sure that works.
0 Kudos
Message 40 of 56
(2,232 Views)