Jump to content

Call Parent Method function: Difference between revisions

From LabVIEW Wiki
Started page
 
mNo edit summary
 
Line 1: Line 1:
{{stub}}
{{stub}}
{{TOCright}}
{{TOCright}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Cluster, Class, and Variant{{!}}Cluster, Class, and Variant palette|type=function}}
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Cluster, Class, and Variant{{!}}Cluster, Class, and Variant palette|type=function|icon=Cluster, Class, & Variant Palette - Call Parent Method.png}}


The '''Call Parent Method''' function calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI.
The '''Call Parent Method''' function calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI.

Latest revision as of 20:12, 29 June 2020

Object information
Owning palette(s) Cluster, Class, and Variant palette
Type Function
Requires Basic Development Environment
Icon

The Call Parent Method function calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI.

The parameters, or input and output terminals, of this node depend on the ancestor member VI and change to match the ancestor member VI exactly. This node adopts the VI icon of the ancestor member VI with a glyph in the bottom, left corner of the subVI to indicate the subVI is calling the ancestor member VI instead of dynamically dispatching as a dynamic subVI node does typically.

Usage

Best practice

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links