LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get VI Icon and Terminals Like in Context Help but in Runtime Engine

Solved!
Go to solution

Hello,

 

I would like to be able to obtain an image of the VI Icon and Terminals like you see in context help:

 

example.png

 

But in the Runtime Environment.  I have a architecture that is designed to sequence steps of VIs and I would like to be able to show the Icon and Terminals (like context help or what TestStand shows) but I need to be able to do this in the RTE for security reasons and to ensure users can't tamper with anything by not opening anything in the dev environment.  The available options of invoke nodes to print VI docs to HTML and VI scripting are not supported in the RTE.

 

Anyone know of a way to get this info?  

0 Kudos
Message 1 of 11
(2,487 Views)
Solution
Accepted by topic author 7Ronin

@7Ronin wrote:

Hello,

 

I would like to be able to obtain an image of the VI Icon and Terminals like you see in context help:

 

example.png

 

But in the Runtime Environment.  I have a architecture that is designed to sequence steps of VIs and I would like to be able to show the Icon and Terminals (like context help or what TestStand shows) but I need to be able to do this in the RTE for security reasons and to ensure users can't tamper with anything by not opening anything in the dev environment.  The available options of invoke nodes to print VI docs to HTML and VI scripting are not supported in the RTE.

 

Anyone know of a way to get this info?  



Like this.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 11
(2,461 Views)

Not Exactly....

 

The image I need is the one you would get if you were viewing the context help for a VI, that is the icon image and the terminals.

 

Also, I can't use scripting as this needs to work in the runtime environment. 

 

Appreciate the suggestion though!

0 Kudos
Message 3 of 11
(2,453 Views)

As far as I know this functionality is not available in the LabVIEW run-time engine.

0 Kudos
Message 4 of 11
(2,448 Views)

@7Ronin wrote:

Not Exactly....

 

The image I need is the one you would get if you were viewing the context help for a VI, that is the icon image and the terminals.

 

Also, I can't use scripting as this needs to work in the runtime environment. 

 

Appreciate the suggestion though!


  1. When I run it, I get the icon image and the terminals.
  2. I tried compiling to to a .exe, and it still worked.
"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 5 of 11
(2,439 Views)

Paul,

 

That is great!  I honestly did not even attempt an .exe using the scripting node.  I'll see if I can get that incorporated into the plug ins for the sequencing system.

 

Again, I appreciate you taking the time to respond- much appreciated.

0 Kudos
Message 6 of 11
(2,420 Views)

Darren,

 

Paul has found an answer that works, and I'll go with it if there are no alternatives to attempting to use VI scripting in the Runtime Environment.  Are you aware of any alternatives?

 

Does that information get stripped out of compiled VIs?  The reason I'm asking is my architecture is based on your Multiple Interacting Executables post from a few years ago.  The sequencing engine is actually the only executable and the steps are loaded as uncompiled VI through VI Server calls which is working very nicely and allows compiling only the sequencer, having only the RTE on the customers machines but still not having to go through the effort of PPLs.

 

Thanks!

 

0 Kudos
Message 7 of 11
(2,418 Views)

  

0 Kudos
Message 8 of 11
(2,407 Views)

@7Ronin wrote:

 

Paul has found an answer that works, and I'll go with it if there are no alternatives to attempting to use VI scripting in the Runtime Environment.  Are you aware of any alternatives?

 

Does that information get stripped out of compiled VIs? 


The only alternative I know of is the full-featured run-time engine, which is only a feature you can use with the LabVIEW DSC Module. I don't recommend going this route.

 

If by "information" you're referring to things like control descriptions, icons, etc., I don't think control descriptions are removed (since you can view those via the context help in a running EXE), but I don't know off-hand if icons or VI descriptions are removed.

0 Kudos
Message 9 of 11
(2,392 Views)

@paul_cardinale wrote:

@7Ronin wrote:

Not Exactly....

 

The image I need is the one you would get if you were viewing the context help for a VI, that is the icon image and the terminals.

 

Also, I can't use scripting as this needs to work in the runtime environment. 

 

Appreciate the suggestion though!


  1. When I run it, I get the icon image and the terminals.
  2. I tried compiling to to a .exe, and it still worked.

Sorry, I have to circle back to this.  What version of LabVIEW are you using?  I only get the icon terminal?????

 

7Ronin_0-1608593997279.png

 

0 Kudos
Message 10 of 11
(2,336 Views)