10-24-2011 06:28 AM
I have this vi:
The owner refnum is the vi itself, "Path" is a path to a lvproj project file.
However, when I try to run the vi I get a "The specified object was not found." error.
Solved! Go to Solution.
10-24-2011 07:18 AM
This primitive returns a reference to an object inside a VI (like a control). A project is not inside a VI, so it doesn't make sense to use that function to get a reference to a project.
If you want to get a reference to a project by path, there's an Application class method called Project.Open. You can also use the Application class Project.Projects[] property to iterate over all the open projects.
10-24-2011 08:23 AM
Thank you. A follow-up question:
Here's a half-constructed vi. I'm trying to find a method for compiling a build spec. Is there one?
10-24-2011 09:51 AM
Have a look here - http://blog.jki.net/jki/can-you-build-your-application-in-one-click/
LV 2011 should have that VI or one similar to it in the app control palette.
10-24-2011 10:58 AM
> LV 2011 should have that VI or one similar to it in the app control palette.
But I take it LV 2010 doesn't.
Anyhow, it worked fine, until I tried running it in a dll, then it didn't.
Oh well, thank you for your help. I got a bit wiser in any case.
11-04-2014 01:47 PM
LarsM wrote:
Anyhow, it worked fine, until I tried running it in a dll, then it didn't.
I realize this is thread necromancy, but I also ran into this and I think it's a bug. Maybe it is, maybe it isn't, but at least there's a way to trigger the misbehavior. I hope it's fixed in LabVIEW 2014 or there is a work around.
LV RTE cannot open project files that have .lvlib references in Dependencies
11-28-2014 10:41 AM
MacNorth wrote:
I realize this is thread necromancy, but I also ran into this and I think it's a bug. Maybe it is, maybe it isn't, but at least there's a way to trigger the misbehavior. I hope it's fixed in LabVIEW 2014 or there is a work around.
I found a workaround: set the libdir key in the executable's ini file.
LV RTE cannot open project files that have .lvlib references in Dependenci