Virus scan in progress. Please wait to download attachments.
This is a simple example program for using a LabVIEW Executable as an ActiveX server.
An ActiveX control is a component program object that can be re-used by many application programs within a computer or among computers in a network. In this example you create a LabVIEW executable that will act as an ActiveX server publishing data retrieved by an ActiveX client.
To create the executable and activate the .tlb file.
1. Open the ActiveX Server VI or create a VI with at least one front panel object that will host your data (numeric indicator, string indicator, etc.)
2. Create a new Build Specification and include your VI
3. Go to the Advanced section of the Build Specifications and select "Enable ActiveX Server"
4. Build the executable (EXE)
LabVIEW 2012 (or compatible)
LabVIEW 2012 Application Builder (or compatible)
Steps to Implement or Execute Code
1- Open the project "ActiveX Server-Client_LV2012_NI Verified"
2- Browse to the location where you stored the executable and right click the application then click on Run as Administrator 2- Go to the block Diagram of ActiveX Client VI and right-click the ActiveXServer._Application Reference. 3- Select ActiveX Class » Browse... » Browse.. and select the .tlb file of your executable 4- Click Show Creatable Objects Only, then click _Application and click OK 5- Right Click the _Application Invoke Node and click on relink 6- Run the VI
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Dan Richards Certified LabVIEW Developer
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.