06-16-2012 01:41 PM
Need help Please
I got this error when executing vi from an other.
see error and code attached
I thank you in advance
Solved! Go to Solution.
06-16-2012 02:42 PM
06-16-2012 05:21 PM
Translation:
LabVIEW: Window that type is Null
The VI of the mean level :"Tableau de bord.vi" was stopped at the unknowen object on the diagram of "A propos.vi".
06-16-2012 08:03 PM
Unfortunately, that doesn't shed much light. Can you post your actual code?
06-18-2012 03:34 AM
please build the .exe to see the error.
thank you
06-18-2012 04:24 AM
Hi Sadok
You hav to add "A propos.vi" in Always included (Source Files tab build window) while making the build.
Regards
Rajesh
06-18-2012 07:32 AM
@rajesh Nair wrote:
Hi Sadok
You hav to add "A propos.vi" in Always included (Source Files tab build window) while making the build.
That is only necessary when you call a VI dynamically. That is not being done in this case - the VI is linked statically.
The problem you have is that by default the application builder will remove the front panel from all subVIs. Since you are calling a VI that's meant to be a popup, you need to make sure the front panel is not removed for that subVI. See attached screenshot.
Aside: Do not create Greedy Loops .
06-19-2012 04:13 AM
how to attacht front panel?
06-19-2012 05:25 AM
Hi Sadok,
I feel everything correct in your VI except a
1) small delay(100 ms) to be included in the start-up VI(Tableau de bord.vi)'s while loop.
2)The other Subvi should always be included in the build.
3)Check the subvi setup node(always the options "Show front panel when called" and "close afterwards after originally closed" should be checked)
Regards,
SrikrishnaNF
06-19-2012 07:28 AM
@srikrishnaNF wrote:
2)The other Subvi should always be included in the build.
This is simply wrong! The subVI is statically linked in the VI. It's on the block diagram. There is no need to include it in the "Dynamic VIs" section. It's pointless. When you create a build spec for your projects do you put all of the VIs into the "include" section? Of course not. You only put the top-level VI. Any statically called subVIs are automatically included. By definition.
3)Check the subvi setup node(always the options "Show front panel when called" and "close afterwards after originally closed" should be checked)
This is also incorrect, or rather redundant. The subVI is already setup that way. Right-click on the subVI on the main VI and select "SubVI Node Setup". You will see it's already setup that way.
As I said, the problem is that the front panel is being removed when building the application. That's why you are getting a null window error. Why else would you be getting that error?