01-27-2022 08:32 AM
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.
01-27-2022 09:01 AM
If you don't mind brown methods, try this.
01-27-2022 09:39 AM
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.
02-04-2022 08:52 AM
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.