Removing Workers

The Create/Add Worker tool cannot yet remove Workers that it adds to your applications. But it is simple enough to remove a statically linked Worker yourself by deleting the items that the Create/Add Worker tool created by following the steps below.

Let's take an example where we want to remove Worker B from Worker A.

Step 1: Remove Worker Object Constant from subWorkers.ctl

Remove Worker B's object constant from Worker A's subWorkers.ctl.

If only one Worker exists in a Worker's subWorkers.ctl, you will need to also delete subWorkers.ctl from the Manager, since LabVIEW does not allow empty clusters to exist.

Step 2: Delete Set Initialization Data - XXX.vi

Delete Set Initialization Data - Worker B.vi from Worker A.

Step 3: Delete Setup subWorker - XXX.vi

Delete Setup subWorker - Worker B.vi from Worker A.

Step 4: Delete Worker's Main VI from Manager's Main VI

Delete Worker B's Main VI (Main.vi or Main NR.vi) from the block diagram of Worker A's Main VI.

Step 5: Final cleanup

You have now removed the statically linked subWorker but you might still have to clean up a few broken wires now that you have removed and deleted the VIs above. The Worker should now be removed from its Manager.

Last updated