ReplaceSelf (XNode Ability)
|ReplaceSelf (XNode Ability)|
|List of XNode Abilities|
This ability VI is called when you want to replace this XNode via LabVIEW's scripting API. This VI is only called when you have previously informed LabVIEW that you want to replace the XNode through a ReplaceSelf reply. Diagram is a reference to a diagram of a temporary VI. This diagram contains exactly one front panel terminal for each terminal of your XNode. Terms is an array of pairs of Term IDs and terminal references. LabVIEW will replace your XNode with code scripted into this diagram into the diagram of the VI containing your XNode and connect everything to the correct terminals. The front panel terminals that are on this diagram are special in that they can only be on the top level diagram.
Replace Self? is used to tell LabVIEW whether or not you want to copy the scripted diagram over. If there is an error and you wish not to commit the changes, then the old XNode behavior will be left unchanged. It will not be called again until you indicate that it should be through the reply on another ability VI.
You should not use the Copy scripting method to move code into the temporary VI. This will adversely affect the user's clipboard. You should use the Move scripting method instead.
Default behavior: None.
This ability does not provide UI and OS messages are not handled.