LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get labels of front panel controls from an external application

Hello,

 

I'm looking for a way to get all labels of front panel controls from an external application. One important think is that the VI I'm trying to analyze has separate compile code enabled.

 

We have a working solution based on a small LabVIEW exe accessing the VI and writing a text file, but it does not work when separate compile code is enabled on the VI (problems when loading typedefs in dependencies).

 

Is it possible to directly read the VI file? Some specifications are available here : https://labviewwiki.org/wiki/Resource_Container but not enought to get labels from the file.

 

Regards,

 

Amaury.

0 Kudos
Message 1 of 4
(1,131 Views)

If you don't mind brown methods, try this.

gl.png

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 4
(1,119 Views)

Hi Paul,

 

Brown nodes are mandatory 🙂

 

Sadely, I got an error 1026: VI Reference is invalid.

 

The VI I try to analyze does not have separated compile code but relies on sub VIs that have separated compile code.

 

Regards,

 

Amaury.

 

 

0 Kudos
Message 3 of 4
(1,104 Views)

Hello everyones,

 

Based on informations I found on these internet sites:

https://github.com/tomsoftware/VI-Explorer/blob/master/php/clObjFile.php

http://flarn2006.dyndns.org/llvim/

https://labviewwiki.org/wiki/Ned_options

https://labviewwiki.org/wiki/Ned_options

 

I write a quick and dirty piece of code that seems to successfully read labels from raw VI file. Two problems remains : I got additionnal unwanted strings (from space maybe...) and I may loose some labels.

But : it can read VI files without problems of version compatibility and it can read broken VIs also.

 

Without further documentation of the FPHx data block from NI, it will be pretty difficult to fix these problems.

 

I post my code here (LV2019, simply lauch the main VI).

 

Regards,

 

Amaury.

 

0 Kudos
Message 4 of 4
(1,046 Views)