08-18-2017 04:24 PM - edited 08-18-2017 04:30 PM
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
PS (edit): executable front panel (after run, all leds should be on, but lvlibp fails):
Solved! Go to Solution.
08-19-2017 07:22 AM
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.