06-23-2021 12:11 AM
Hi everyone,
I would like to detect at edit time the usage of a specific VI (ie. being able to perform an action each time that this VI is dropped on another VI block diagram, or each time he is deleted for an existing VI block diagram). I thought that this could be handled by XControl that are interactive even at Edit Time but it wasn't successful since the init is only launched the first time that the XControled is load in memory as the close
Is anyone aware of some trick that could do help me ?
Best regards
06-23-2021 07:30 AM
AFAIK, nothing can detect it's own deletion.
You can course poll for this information in a parallel process. Detect the VI activation event, then pull either the callers list of the DUT, or travers the VI of the DUT (maybe the Selection change event can be used to avoid polling).
IIRC, there are ways to get snippets of code in the palette. That might do what you want, but we don't know what you want... Or rather, we don't know why.
06-23-2021 08:53 AM
Well you can get halfway there with an Express VI. It's configuration VI runs every time it is dropped,