06-06-2008 11:11 AM
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?
06-06-2008 02:10 PM
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
06-06-2008
03:30 PM
- last edited on
06-09-2008
08:41 AM
by
Support
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!
06-07-2008 05:20 AM
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.
06-09-2008 08:58 AM
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
06-09-2008 04:53 PM
06-10-2008 08:14 AM
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
06-10-2008 12:15 PM
06-10-2008 01:38 PM
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.
06-10-2008 02:02 PM