How Do I Use an OCX File or ActiveX Custom Control in LabVIEW?

Updated May 30, 2018

Reported In

Software

  • LabVIEW

Operating System

  • Windows

Issue Details

I have an ActiveX Custom Control in the form of an OCX File. How can I use this custom control and access its properties and methods using LabVIEW?

Solution

To use an OCX file in LabVIEW, first make sure your Active X Control is registered on the system. Follow these steps to use your OCX file in LabVIEW:
  1. Open the Controls Palette and select .NET & ActiveX»ActiveX Container
  2. Right-click the container and select Insert ActiveX Object
  3. Select the desired OCX file from the list. The OCX file will appear in the list once it has been registered with the operating system.
  1. To access the properties and methods of an OCX, simply create a Property Node or an Invoke Node by right-clicking the output terminal of ActiveX Control on the  block diagram and selecting Create»Property for Class or Create»Method for Class.
 

    Additional Information

    OLE Control Extension (OCX) files are a custom file format which typically contain ActiveX custom controls. These files can be used to create and interact with custom controls in applications which support ActiveX and allow customization and reuse of user interface designs.

    WAS THIS ARTICLE HELPFUL?

    Not Helpful