KB 0021
How To Use Automated Solutions ActiveX Controls inside LabVIEW


CATEGORY

ActiveX Controls

 

SUMMARY

This article describes how to use Automated Solutions ActiveX Controls inside LabVIEW.

 

DETAILS

The general steps for using Automated Solutions ActiveX Controls inside of LabVIEW are outlined below:

1. Add an ActiveX Container to your LabVIEW panel.

The image below shows a LabVIEW front panel with an empty ActiveX Container

Labview

 

2. Select ActiveX Control to add to container.

The image below shows the result of right-clicking the empty container and selecting 'Insert ActiveX object...'. In this example, Automated Solutions Asadserial Control is selected. 

Labview

 

3.  The resulting object and the proper way to save the VI (virtual instrument, or program).

The image below shows the resulting object and the proper way to save the VI using the 'File, Save All' menu item. It is important to note that any time a VI is saved, it must be saved using the 'File, Save All' menu item. 

If 'File, Save' is used, ActiveX Control properties will not be saved and the ActiveX Control will revert to its default property values after closing and re-opening. LabVIEW will still be able to interact with the ActiveX control using data access methods, but since it is no longer communicating with the PLC the values are invalid.

To ensure data integrity, the ActiveX Control's Result property should always be tested prior to reading values using data access methods.

Labview

 

4. Using the resulting ActiveX Control on the 'Block Diagram'.

The image below shows how to use the ActiveX object on the 'Block Diagram'.

Labview