Activating LabVIEW as an ActiveX Server

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 top pull-down menu in the Options dialog box.
  3. Place a checkmark in the ActiveX checkbox in the Protocols section of the VI Server: Configuration dialog box.
  4. Set the options in the Server Resources area of the dialog box depending on your security needs.
  5. Select VI Server: Exported VIs from the top ring control 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.

Refer to the VBToLV.frm, VBToLV.vbp, and VBToLV.vbw for an example of calling LabVIEW as an ActiveX server from Microsoft Visual Basic.