Using Static .NET Properties and Methods in LabVIEW

LabVIEW supports static .NET properties and methods. You can execute static properties and methods on classes without wiring a .NET object reference to the Property Node or Invoke Node.

If you are using .NET Framework objects in LabVIEW, understand specific requirements for .NET Framework.

LabVIEW indicates static properties and static methods with a [S] at the beginning of the property name or method name.

To use static properties or static methods with a .NET object, complete the following steps.

  1. Add one of the following nodes to the block diagram:
  2. Right-click the node and select an option.
    • Select Class » .NET Core » Browse
    • Select Class » .NET Framework » Browse
    The Select Object From Assembly dialog box appears.
  3. Select a class from the Assembly pull-down menu.
  4. Select an object from the Objects listbox.
  5. Click OK.
  6. Right-click the Property Node or Invoke Node and select a static property or static method from the shortcut menu.
Note If you resize the Property Node to include properties that are not static, you must do the following:
  1. Use a Constructor Node to create a .NET object.
  2. Wire a .NET server reference to the Property Node.