I want to selectively change functionality depending on the LabVIEW Version (Base,FD,Prof).
How can i get the Version at runtime into a conditional disable structure?
The App.InstalledPackage property returns a value representing the information you seek, however, this is a private property. You will need to use a case structure with this property as the selector, not a disable diagram structure. There may be a way to determine this with a different property. I won't tell you how to expose private properties beacuse I think NI frowns upon sharing this information (at least on this board [hint]).
My image attachment was messed up and i couldn't find an edit button.
Because it was already revealed in this forum, I recall by using 'SuperSecretPrivateSpecialStuff=True' in LabVIEW.ini, you could have access to method : App.License where your information is provided.
Moderators, don't hesitate to delete this post if needed.
Thanks a lot for this Informations.
The Problem is, that i want to downgrade a VI if there is no FD or Prof Installed.
I use some Math VI´s that shall not be linked if the Version is Base.
This is only possible with the disable Structure, not programmatically because the VI is not executable then.
Perhaps an extrem soluce but you could try to extract used function, make dll with your call of unsupported routine. It's long, tiring, delicate, non evolutive but perhaps helped.
No more soluce, sorry.