08-17-2022 06:50 AM
I have a VI, that can be started by the user, but is usually started via asyncronous call.
Is there a way to find this out? The Call chain is useless, since it does not contain the calling VI, so it gives the same result in both cases.
08-17-2022 07:30 AM
Sorry, no.
08-17-2022 07:42 AM
If this is really needed, then I would consider adding a hidden control to the connector pane, which you would set when calling the VI asynchronously. I would probably go with a timestamp or a counter to avoid having stale values.
Another thing you can try is never showing the user the VI itself and instead placing its front panel in a subpanel even when it's not running. That way you can control how you run it.
I'm not sure what the use case is for having the user run the VI directly, but I'm assuming they do exist. I expect even so it could probably be refactored for most, if not all, cases.
08-17-2022 11:41 AM