LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

execute vi

Solved!
Go to solution

Need help Please

I got this error when executing vi from an other.

see error and code attached

 

I thank you in advance

0 Kudos
Message 1 of 13
(3,840 Views)
There is no code attached and could you translate that message?
Message 2 of 13
(3,832 Views)

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".

0 Kudos
Message 3 of 13
(3,816 Views)

Unfortunately, that doesn't shed much light. Can you post your actual code?

0 Kudos
Message 4 of 13
(3,807 Views)

please build the .exe to see the error.

thank you

Download All
0 Kudos
Message 5 of 13
(3,775 Views)

Hi Sadok

 

You hav to add "A propos.vi" in Always included (Source Files tab build window) while making the build.

 

Regards

Rajesh

Rajesh Raghavan Nair

Certified LabVIEW Architect
Certified Teststand Architect
Message 6 of 13
(3,768 Views)

@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 .

Message 7 of 13
(3,750 Views)

how to attacht front panel?

 

0 Kudos
Message 8 of 13
(3,730 Views)
Solution
Accepted by topic author Sadok

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

 

Regards,
Srikrishna


Message 9 of 13
(3,722 Views)

@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?

0 Kudos
Message 10 of 13
(3,696 Views)