Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 5 out of 5   

How Can I Access an ActiveX Server in LabVIEW?



Primary Software:
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have an ActiveX Server that I would like to access from LabVIEW. How can I configure and call this Server from LabVIEW?

Solution:
In LabVIEW you can use an Automation Open.vi to open the ActiveX Server. A reference to the ActiveX Class is obtained by configuring the Automation Refnum constant or control and passing this value to the Automation Open.vi.

Configuring the Automation Refnum to Reference the ActiveX Class:
  1. Right-click on the Automation Refnum constant or control
  2. Click Select ActiveX Class»Browse


  3. Click Browse and navigate to the ActiveX Class



  4. Select the ActiveX Class and Click OK

Accessing the Methods or Properties in the Server:
  • Use the ActiveX Invoke Node to access methods in the Server
  • Use the ActiveX Property Node to access properties in the Server


Related Links:
KnowledgeBase 1V18J38M: What ActiveX Features Does LabWindows/CVI Support?
White Paper: Building ActiveX Servers in LabWindows/CVI

Attachments:





Report Date: 01/27/2009
Last Updated: 02/09/2017
Document ID: 4TQCMI5F

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit