LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

failure of conditional structure RTE check in packed library

Solved!
Go to solution

Sometimes I need to check whether code runs in labview, or in run-time engine. Trivial task: conditional disable structure, run-time engine == True. Building executable - this is it. 

My problem is when this structure is saved in packed library - it always runs false case. Even on machine without labview at all.

Windows 7 labview 2011. Is this old labview problem? 

Zip has 2 projects: building of the packed library (make rte lvlib check.lvproj) and building of executable (test lvlibp.lvproj).

Screenshot of executable source:

First subvi is called from packed library, second - from original library, third case - diagram of the subVI locally.

(Name conflict (same subVI from packed library and locally) does not matter, in real life main code knows only packed library, not original one)

 Executable in the build.zip

rte lvlibp conflict.png

PS (edit): executable front panel (after run, all leds should be on, but lvlibp fails):

rte lvlibp executable.png

Download All
0 Kudos
Message 1 of 2
(2,483 Views)
Solution
Accepted by topic author Alexander_Sobolev

This is just a limitation on the PPL.  The Conditional Diagram Disable Structure works as a compile time decision.  And since PPLs can also be called by the development environment, the Runtime Engine conditional variable will still be false, with no way to have it recompile it as an exe build.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,410 Views)