Constructor Node

Creates an instance of a .NET object. This node identifies the constructor from which to create a .NET object.


icon

Inputs/Outputs

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • ignrn.png new reference

    new reference returns the reference to a .NET object.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • When you place this node on the block diagram, LabVIEW displays the Select .NET Constructor dialog box. You also can double-click the node to display the dialog box. Some constructors can contain initialization parameters you can use to create a .NET object in a particular state. Not all constructors have initialization parameters.

    Tip If you encounter problems loading a particular assembly or accessing objects in an assembly, debug the assembly call or use the .NET Assemblies in Memory dialog box to verify that the correct version of the assembly is in memory.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Connectivity\Dot NET\Calling a Private .NET Assembly.vi
    • labview\examples\Connectivity\Dot NET\Task Monitor Using .NET Objects.vi