02-07-2011 03:42 PM
My VI is dynamically loaded by a main VI. Inside my VI, there are some calls to my .NET assemblies for additional execution. Everything works under LabView host environment. However, when I run the main VI exe, the dynamic loading fails with error 1003. The message is "Error 1003 occurred at Open VI Reference in RW_Main.vi" (the RW_Main.vi is the entry vi of the main VI) The Possible reason(s) is "LabVIEW: The VI is not executable".
When I remove all the calls to my .NET assemblies, the main VI can load my VI successfully. I try to put my .NET assembly DLL files in different folders (the same folder as the main VI exe, the folder of my VI) but no success.
Please give me some hint what I should look for.
Thanks
02-08-2011 01:48 PM
One thing that you could try is to generate a keystoke. You can do this by calling into the user32.dll in Windows. Here is an example of how to do this. Once your report is open, you can call to the DLL and generate a INSERT keystroke.
Brandon Treece
Applications Engineer
National Instruments
02-08-2011 02:08 PM
Sorry for the last post, it was meant for another thread. Anyways, is there anyway that you could post a screenshot of your block diagram, or post your code? I think this will be very helpful in figuring out what is going on.
Brandon Treece
Applications Engineer
National Instruments
02-08-2011 02:52 PM
The attached screen shot is the code which load my vi dynamically.
02-09-2011 03:34 PM - edited 02-09-2011 03:38 PM
There have been some issues that have arisen very similar to your issue in older versions of LV.
What version of LV are you using?
Thanks,
Sam S
02-09-2011 03:38 PM
It is version 7.0.
02-10-2011 04:46 PM
This KnowledgeBase article discusses this issue, and what to do to get around it. I hope that you find it helpful.
Brandon Treece
Applications Engineer
National Instruments
02-11-2011 10:18 PM
I followed the KB suggestion but I still get the same problem.
02-14-2011 05:38 PM
Another thing that you can try is to enable de-bugging in your application. This will make your application larger, but it could solve the issue.
Brandon Treece
Applications Engineer
National Instruments
02-14-2011 05:39 PM
You can also try this KnowedgeBase article.
Brandon Treece
Applications Engineer
National Instruments