LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect VI drop on BD or deleted on BD at Edit Time

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

0 Kudos
Message 1 of 3
(1,547 Views)

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.

0 Kudos
Message 2 of 3
(1,506 Views)

Well you can get halfway there with an Express VI.  It's configuration VI runs every time it is dropped,

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 3
(1,501 Views)