03-19-2007 12:07 PM
03-19-2007 12:29 PM
03-19-2007 01:47 PM
Hi Michael,
I was unable to successfully load the DLL using the code you posted. (Perhaps I'm misplacing it within my application...)
When I include "lvsound.llb" as a support file, I get the following error message: "The build was unsuccessful. Possible reasons: Polymorphic VIs cannot be used as Startup/Exported or Dynamic VIs for applications or shared libraries." Then it gives a file path ending in "lvsound.llb\__ArrWfmsToData.vi".
Additionally, I tried to make an executable out of a VI that successfully called my DLL in LabVIEW, but got the same errors as in my LabWindows program when I tried to run it. That would seem to confirm that the fault lies with the Application Builder. What do you think?
Thank you for your time and your patience!
Slowpoke
03-19-2007 01:48 PM
Ah. That might explain things...
I'll try again.
Slowpoke
03-19-2007 03:09 PM
Hi Michael,
I tried your sample code again and got a linking error: "Failed to open external module." The VI error described previously remains unfixed.
Thanks,
Slowpoke
03-21-2007 12:18 PM
03-22-2007 12:05 PM
Hi Michael,
1. No. The sound VIs are in vi.lib.
2. Yes.
3. I'm not sure I'm even able to create a debuggable DLL. I checked the "enable debugging" option in the app builder (as well as the "wait for debugger on launch" option), but the call fails just as it did before, except the error message has changed to "The VI is not executable. The full development version of LabVIEW is required to fix the errors."
This whole situation is, as Tolkien might say, passing strange. Might an unistall and reinstall of LabVIEW solve the problem?
Thanks,
Slowpoke
03-22-2007 12:26 PM
Hi Michael,
Please disregard the comments under (3.). I find it helps if I take time to learn how to do things, such as debug a running executable, before posting.
The DLL fails when I step into the Call Library Function node on the LabVIEW calling VI. Everything else is as described.
Sorry 'bout that...
Slowpoke
03-23-2007 02:23 PM
03-26-2007 02:57 PM
Hi Michael,
Hope you had a good weekend! I use the file path selector under "Configure..." (the DLL fails if I select the "Specify path on diagram" option). The exact file path is:
C:\Documents and Settings\Administrator\My Documents\Projects\LabView Projects\builds\Noise Tool\Noise Tool DLL\Noise Tool.dll
Thanks,
Slowpoke