This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

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

Updated Mar 11, 2019

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.

    ActiveX containers also have an option to create an ActiveX object from a file. The "Create Control" drop down menu has an option for "Create Object From File"

    WAS THIS ARTICLE HELPFUL?

    Not Helpful