Access Properties or Methods of an Image Display Within a SubVI in LabVIEW

Updated Mar 23, 2026

Environment

Software

  • LabVIEW
  • Vision Development Module

Driver

  • NI-IMAQdx
  • NI-IMAQ

In LabVIEW, I want to programmatically control the properties or methods of an Image Display. I can do that in my Main VI by creating a reference and connecting a Property Node. But when creating a SubVI to handle all Image Display-related Methods or Properties, I can’t find a way to access the ImageControl reference. How can I access the ImageControl reference?

To successfully handle all Image Display-related Methods or Properties in a SubVI, you need to create a Generic Control reference on the SubVI's Front Panel and then use the To More Specific Class to cast it to an ImageControl type.

To access the ImageControl reference in your SubVI follow the steps below:
 

  1. Create a Generic Control reference on the SubVIs Front Panel.
  2. Connect the Generic Control reference to the Connector Pane of the SubVI
  3. Place a To More Specific Class function on the SubVI's Block Diagram. Connect the Generic Control reference to the input.
  4. Right-click on the Target Class input of the To More Specific Class, and then click Create Constant.
  5. This creates a Generic Class constant. Change it to Generic->GObject->Control->ImageControl.

Now you are able to use a SubVI to handle all Image Display-related methods or properties in your Main VI.