LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Aplication

Solved!
Go to solution

Good afternoon,

 

how can resolved this problem, before creating an application, the program works and opens the other VI's. But then comes this error (which will annexed).

 

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 1 of 23
(3,395 Views)

Can you show the diagram of Iniciar.vi?

Apparetnly in this VI you use a invoke node that fails because the Vi ref passed in is invalid. I assume this Iniciar.vi is a launcher and should start you main vi dynamically.

Maybe the main vi in the EXE is not present or has a broken arrow.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 23
(3,386 Views)

Yes you can see.

 

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 3 of 23
(3,381 Views)

Oh... right, so it's just the FP close method that fails, probably because the VI that just finished to execute closes its' own FP and so the reference becomes invalid before the "FP close" method is called. Try to remove the FP close method and see.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 23
(3,373 Views)

I will try this way, and the error continue. 

 

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 5 of 23
(3,370 Views)

Wire a boolean true constant to the Auto-Dispose Reference invoke node.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 6 of 23
(3,352 Views)

Hi...I try this, and not result anything.

 

Regards

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 7 of 23
(3,320 Views)

The only thing I see right off is your error paths are not complete.  Wire up the open VI ref and close ref.  Run the VI in develope mode and see if it returns an error.  The automatic error handling should have returned something if there is an issue, unless you have it turned off.  You should wire your clusters appropriately anyway since this is proper.  Delete any unused paths as well on your error clusters.  This won't cause an issue but they are of not use.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 8 of 23
(3,296 Views)
Solution
Accepted by topic author hugosantos

I've tried to build it and it works like a charm.

 

Maybe the problem is some configuration in your builder?

 

PS:

 

Nota que pelo que vi no teu vi, já que estás a fazer uma aplicação executável não é muito boa ideia colocares o caminho dos outros vi associados dessa forma, pois é um caminho absoluto, se eventualmente colocares em outro computador não vai funcionar correctamente a não ser que coloques no disco os ficheiros no exacto caminho que tens no vi.

 

é mais correcto colocares, 

vi path.png

0 Kudos
Message 9 of 23
(3,278 Views)

But I can't obtain anything. You can send me you code?

 

Regards

Hugo Santos
Student at ISEC - Master Mechanical Equipment and Systems
0 Kudos
Message 10 of 23
(3,256 Views)