Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Activating LabVIEW as an ActiveX Server

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

When you activate LabVIEW as an ActiveX server, LabVIEW exports two classes: an application class and a virtual instrument class. The application class opens a reference to the virtual instrument class.

Complete the following steps to activate LabVIEW as an ActiveX server.

  1. Select Tools»Options to display the Options dialog box.
  2. Select VI Server: Configuration from the Category list.
  3. Place a checkmark in the ActiveX checkbox in the Protocols section of the VI Server: Configuration page.
  4. Set the options in the Accessible Server Resources area of the page depending on your security needs.
  5. Select VI Server: Exported VIs from the Category list of the Options dialog box.
  6. Allow or deny access to VIs from external clients depending on your security needs.
  7. Click the OK button.

If you want to call a stand-alone application from an ActiveX automation client such as Visual Basic, you must enable the ActiveX server for the application when you build the application. To do so, place a checkmark in the Enable ActiveX server checkbox on the Advanced page of the Application Properties dialog box.

Refer to the VBToLV.frm, VBToLV.vbp, and VBToLV.vbw files in labview\examples\comm for an example of calling LabVIEW as an ActiveX server from Microsoft Visual Basic.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit