05-21-2010 02:34 AM
Dear all, I need an help from you....
I'm using LV 2009 SP1 Professional Development Suite on Windows Seven and I have a problem with executables, a problem that I never found with others LV versions (for example 8.x) and I'm a little bit surprised....
In the attachment you can find an example of what I mean.
There are two basic vis, the main one (prova) and a subvi (provasubvi). The main vi launches the subvi and the subvi just create a graph. As you can see the vis run properly, without any kind of problem.
I created also the exe, without specifing any kind of particular option.....and "magically" the application doesn't work as I want. In particular it seems that the subvi runs, but the front panel can't be accessible....
I try also to play around with building options and subvi structure, but nothing change....
Have you never solve something like that?....I would say thank you in advance for any suggestion....
Andrea
Solved! Go to Solution.
05-21-2010 03:07 AM
That happens becaue you don't handle your errors.
The first property you execute in the SubVI is the 'VI.Run when Openend Property', the runtime engine this is a read only property.
Since this is the first property you execute and you didn't set 'Ignore errors inside node'
The node executes from top to bottom. The Property Node does not execute if an error occurs before it executes, so always check for the possibility of errors. If an error occurs in a property, LabVIEW ignores the remaining properties and returns an error. If you right-click the Property Node and select Ignore Errors Inside Node, LabVIEW executes the remaining properties on the Property Node. Only the first error is returned by the Property Node. The error out cluster contains information about which property caused the error..
Also I don't see why you should use this property. Just set this static on you VI, with the 'Close if originally closed' property.
Ton
05-21-2010 03:08 AM
05-21-2010 03:24 AM
Hi srikrishnaNF....
thank you for the observation, I'm still quite surprise about the fact that with previous LV versions I never had this problem....that's strange.
Do you know if it is changed something in the LV management of projects and executables?
Thank you again...
Andrea
05-21-2010 07:15 AM
Hi ton....
I try also your solution, and it works....
Thank you for the suggestion
andrea