Hi,
I propose that we allow the 'This VI' VI Server object inside inlined VIs. Currently dropping a 'This VI' object into an inlined VI breaks it.
The reason for this suggestion is so I can build inlined VIs that automatically gets a valid VI refnum to the caller VI instead of forcing the caller to supply this refnum to me. I.e. instead of having to do this:
I'd very much like just to inline my subVI and stuff the 'This VI' object inside that subVI, in which case that inlined subVI could be dropped into any caller and automatically get the caller's VI refnum (due to the inlining). The above call would just look like this instead:
Surely we could just make the inlined subVI use this piece of code instead of the 'This VI' object then, as that is allowed inside an inlined VI:
...but unfortunately we can't as the above isn't a sound way to get a VI refnum to a clone of a reentrant VI for instance. If you obtain a VI references to a clone by any other means than the 'This VI' object you can get into all sorts of trouble. LabVIEW isn't designed to support this, so it can easily become unstable and crash. Hence, please allow the 'This VI' object inside inlined VIs.
Cheers,
Steen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.