LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting if running from a packed project library or from run time engine

Solved!
Go to solution

I just noticed this post:

https://forums.ni.com/t5/LabVIEW/failure-of-conditional-structure-RTE-check-in-packed-library/td-p/3...

 

I've got two ideas:

  • Check call chain (PPL)
  • Check the application path (EXE)


Is there anything more direct?

0 Kudos
Message 1 of 7
(2,266 Views)

I fail to understand what the problem is that you are trying to solve.  Are you trying to detect if code is in a PPL?  Or are you trying to get a path the a VI?


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
0 Kudos
Message 2 of 7
(2,218 Views)

"Running from a packed project library" and "Running from run time engine" are not mutually exclusive.

 

You can use a PPL from RTE or development environment. 

 

So, PPL Y\N and RTE Y\N gives 4 combinations, and all 4 can happen.

0 Kudos
Message 3 of 7
(2,207 Views)

The App.Kind Propery Node returns:

 

  1. Development System
  2. Run Time System
  3. Student Edition
  4. Embedded LabVIEW (includes RT)
  5. Evaluation
  6. Custom
  7. (0) Invalid App Kind 
========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 7
(2,197 Views)

 


wiebe@CARYA wrote:

"Running from a packed project library" and "Running from run time engine" are not mutually exclusive.

 

You can use a PPL from RTE or development environment. 

 

So, PPL Y\N and RTE Y\N gives 4 combinations, and all 4 can happen.


Yes, that's correct. I was looking for something to let me distinguish the 4 possible states.

 

My call chain search to detect the PPL seems to be working but it felt very kludgey. and I was hoping someone had a more direct way.

 


@RTSLVU wrote:

The App.Kind Propery Node returns:

 

  1. Development System
  2. Run Time System
  3. Student Edition
  4. Embedded LabVIEW (includes RT)
  5. Evaluation
  6. Custom
  7. (0) Invalid App Kind 

Yes, that looks like a good way to get the RTE status. Thanks!

0 Kudos
Message 5 of 7
(2,178 Views)
Solution
Accepted by topic author nanocyte

@nanocyte wrote:

 


wiebe@CARYA wrote:

"Running from a packed project library" and "Running from run time engine" are not mutually exclusive.

 

You can use a PPL from RTE or development environment. 

 

So, PPL Y\N and RTE Y\N gives 4 combinations, and all 4 can happen.


Yes, that's correct. I was looking for something to let me distinguish the 4 possible states.

 

My call chain search to detect the PPL seems to be working but it felt very kludgey. and I was hoping someone had a more direct way.

 


@RTSLVU wrote:

The App.Kind Propery Node returns:

 

  1. Development System
  2. Run Time System
  3. Student Edition
  4. Embedded LabVIEW (includes RT)
  5. Evaluation
  6. Custom
  7. (0) Invalid App Kind 

Yes, that looks like a good way to get the RTE status. Thanks!


For the other property, this seems promising:

 

Is in packed library.png

0 Kudos
Message 6 of 7
(2,139 Views)

wiebe@CARYA wrote:

For the other property, this seems promising:

 

Is in packed library.png


That is the property I use in my Class Factory to determine if I am using a PPL or not.  I am then getting the folder of the library/PPL in order to load up the desired class using a relative path (relative to the parent class's path).


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
0 Kudos
Message 7 of 7
(2,130 Views)