03-11-2022 11:07 AM
Hello NI Folks,
Long time lurker, first time poster. I have what I thought would be a simple problem to solve, and I seem to be running into dead ends wherever I turn! Please PLEASE someone help me.
The Request: I would like to have a list of all labVIEW windows open, and accessible from an array. In other words, when you press 'Ctrl + Shift+W' I would like the Strings in the 'Title' column to be in an array for me to read.
The Goal: I'm trying to get a list of all open labview VI's to log in a bug report, but I need the list to span ALL application instances. I don't know how else to tackle this, I would be extremely grateful if you all had any clues.
The things I've Tried:
Solved! Go to Solution.
03-11-2022 11:34 AM
Is this what you mean?
03-11-2022 01:00 PM
I may have to go into work tomorrow just to try this. Ty for the quick response! I'll let you know if it works ASAP
03-14-2022 03:59 AM
If you want that to work for clones, it will become a hole lot more complicated.
Of course, one obvious question is why you need this.
03-14-2022 06:46 AM
Paul this does what I need it to do, thank you for putting it together for me. Unfortunately labVIEW has only just implemented that App.AllContexts property node in LV 18: https://labviewwiki.org/wiki/Application_class/Application.All_Contexts_property
Looks like I have some justification to get my team to upgrade from 2017. Thanks again.
03-14-2022 06:53 AM - edited 03-14-2022 07:09 AM
@LoopMaster wrote:Looks like I have some justification to get my team to upgrade from 2017. Thanks again.
It's been there a lot longer (probably 8, when contexts where introduced):
It's a brown node, so you need proper 'secret' in ifile keys. Or use quick drop and use CTRL+SHIFT+B with the exact right text (App.AllContexts).
Or use the snippet of course.
You could simply not tell this and move from 2017 😁.
03-14-2022 07:14 AM
Now I am really Studying at the school of NI Forums. I never needed anything besides regular property nodes up to this point! Here is what I've found out:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000fzA9SAI&l=en-US
Property Type | Description | |
---|---|---|
Yellow | Standard | Changes a property of a given class. |
Red | Deprecated | The functionality of this property has been improved in another function but has been kept in to support previous versions of code. |
Blue | VI Scripting | The property is used in VI Scripting, for more information see the related links section. |
Brown | Internal/Private | Internal or specific property which should be used with caution. The majority of these remaining will be changed to the other color types with future updates. |
I tried using the quick drop and the exact text "App.AllContexts" with no luck. Can you elaborate on what you mean with password/secret in ifile keys. Guessing that's a password ? I would love to be able to place that node!
03-14-2022 07:17 AM - edited 03-14-2022 07:19 AM
@LoopMaster wrote:
I tried using the quick drop and the exact text "App.AllContexts" with no luck.
1) select a property node
2) CTRL+Space, "Application", CTRL+B
3) CTRL+Space, "App.AllContexts", CTRL+SHIFT+B
@LoopMaster wrote:Can you elaborate on what you mean with password/secret in ifile keys. Guessing that's a password ? I would love to be able to place that node!
Sure: What exactly is SuperSecretPrivateSpecialStuff for? - LabVIEW General - LAVA (lavag.org)
You might also need to turn on scripting (in Options, VI Server).
Welcome to the twilight zone!
03-14-2022 07:24 AM
I cannot thank you enough, I hope this post is helpful to others as well! Yeah I feel like I've just learned how to summon special VI's items into existence. Definitely twilight zone territory. Wish I could give more Kudos