07-20-2017 07:06 AM
Hi everyone,
i can not figure out how to fit-to-pane the vi inside a subpanel.
what i want, is that the subvi uses all the space available in the subpanel.
but neither invoke nodes nor property nodes seem to have what i am looking for.
attached is my test vi and a test tdms
(the path to the subvi may vary. i use the "TDMS - File Viewer.vi" from the utility library)
i would love your suggestions.
regards
07-20-2017 07:58 AM
I use a combination of "manual fitting" and "autosizing" (mainly because I'm too lazy to try to do all the programming in one fell swoop). Here are my steps:
Bob Schor
07-20-2017 08:15 AM
thx bob, for a vi that is "under my control", i will remember your way.
but in this specific case i want to use the "TDMS Viewer.vi" without the need to modify it.
still hoping there is another way.
07-20-2017 10:31 AM
07-21-2017 03:12 AM - edited 07-21-2017 03:32 AM
thx ben, also not what i was hoping for .. but i see that i have to think about a different approach than i initially thought of.
regards
07-21-2017 03:29 AM
Well you -might- be able to populate a list of controls on the FP of the sub-VI you are talking about and work out how to scale them programmatically. This is of course assuming that there is no code in the sub-VI doing the opposite......which you can't switch off since you don't own the code.
This sounds like a LOT of work for something which will be so specific that it'll only work for that ONE sub-VI and might break on a LV update because the control positions change........
07-21-2017 03:34 AM
thx for the suggestion, but as you yourself said .. very much not robust 😉
07-28-2021 09:37 AM
hi, i struggled with the same issue and found the following as a solution for me: