0% found this document useful (0 votes)
23 views

Adding ActiveX Control

There are two ways to add an ActiveX control to LabVIEW: 1. Add an ActiveX container by inserting the control into it from the toolbox. Then wire the container to an Automation Open block and add Invoke Methods. 2. Import the control directly to the palette without a container. Save the CTL file, select the control in the Automation Open block, and add Invoke Methods. Feel free to contact Optronic Laboratories for assistance or questions when adding ActiveX controls to LabVIEW.

Uploaded by

PAUL BALLARTA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Adding ActiveX Control

There are two ways to add an ActiveX control to LabVIEW: 1. Add an ActiveX container by inserting the control into it from the toolbox. Then wire the container to an Automation Open block and add Invoke Methods. 2. Import the control directly to the palette without a container. Save the CTL file, select the control in the Automation Open block, and add Invoke Methods. Feel free to contact Optronic Laboratories for assistance or questions when adding ActiveX controls to LabVIEW.

Uploaded by

PAUL BALLARTA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Adding an ActiveX Control Software Development

Kit to LabVIEW 8.5 and Up

Most of our software development kits include an ActiveX Control for development. Users
regularly need to interact with our instrumentation in LabVIEW. However, adding an ActiveX
Control to LabVIEW can be a little confusing sometimes, especially if you are not very familiar with
LabVIEW. There are two ways to go about this:

First way and easiest way is to add an ActiveX Container:


• Add an Automation Open block to the diagram
• Go to the front panel (Window Show Panel from the diagram menu)
• Right-click to popup the toolbox
• Choose .NET and ActiveX then choose ActiveX Container.
• Right-click on the container item added and choose Insert ActiveX Object…
• From the dialog that pops up, choose the desired SDK ActiveX Control from the list
• Go to the block diagram for the VI and wire the newly created automation item in the
diagram to the Automation Open block
• Add Invoke Methods to the diagram and wire them to the Automation Open

There is also s second, more complex way if you don’t want to create a container:

• Drop in an Automation Open block


• Go to your top menu bar and choose Tools
• Choose Import
• Choose ActiveX Controls to Palette…
• Scroll down the Add ActiveX Controls to Palette list and choose the desired SDK ActiveX
Control
• Click OK
• When prompted to save a CTL file, save out that file, which creates a LabVIEW wrapper file
for the ActiveX Control
• Right-click on the Automation Open block and click on Choose ActiveX Class
• Click on the ActiveX item that appears above the Browse… item
• Add an Invoke Method block to the diagram and wire it to the Automation Open

As always, feel free to contact our offices for further assistance or with any questions you may
have.

Optronic Laboratories LLC 4632 36th Street, Orlando, FL 32811 Information Sheet (IS56) / Rev. 8-09
Tel: 1 407 422 3171 Fax: 1 407 648 5412 Email: [email protected]

You might also like