LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting List of VIs whose Front Panel is Visible

Hi Everyone,

 

Is there any property node that I can use to get the list of VIs whose front panel is visible (these VIs could even be loaded in subpanels)?

 

I have attached the VI that I have tried - but this doesn't seem to work as expected (for example, it doesn't display the VIs that are loaded in subpanels)

 

Thanks,

Karthik

------
Using LabVIEW since 2012. Certified LabVIEW & TestStand Architect
0 Kudos
Message 1 of 4
(2,624 Views)

Hi Khartik,

 

did you try to use "VIMemory GetVIs in Memory" from "allVIsInMemory.llb" found in vi.lib\utility?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,614 Views)
I had used "App.AllVIs" property node to get the list of All VIs. Now I tried the "VIMemory GetVIs in Memory" from "allVIsInMemory.llb" found in vi.lib\utility and it provides the same list as above (At least in the project that I tried it on). One thing I found was that, both the above nodes doesn't list clone VIs that are in memory. Is there any way to get the list of all VIs in memory including clone VIs?
------
Using LabVIEW since 2012. Certified LabVIEW & TestStand Architect
0 Kudos
Message 3 of 4
(2,608 Views)

Getting clone references is notoriously hard. There is no official way to do it, and the way to do it is explicitly unsupported.

 

The clone references are basically numbers. These numbers have an offset. The offset can be calculated by CRC-ing the clone name. Once you know the offset, the only way to get the open references of that clone, is to iterate some number starting from the offset, so see if each reference is used or not. There is no way to tell if you should iterate 10, 100 or 100000 times... This should be repeated for each reentrant VI in memory.

 

It should be avoided...

 

Usually there are better solutions to the underlying problem. But we do need to know the underlying problem to help...

0 Kudos
Message 4 of 4
(2,594 Views)