LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with create multiple instant of Thorlabs APT ActiveX

Solved!
Go to solution

I am building a wrapper for Thorlabs APT ActiveX driver. I would like to create multiple instant of it to be able to control multiple KDC101 controllers at the same time. I put the activeX controller in a class and try to call multiple instant of the class, but the reference value still return the same number. I tried with Automation Open but still no success. Please let me know how should I fix this.

 

Thanks in advance.

0 Kudos
Message 1 of 3
(2,700 Views)
Solution
Accepted by topic author NTT

Yes, their motor reference starts from control (front panel element). So I guess you need to open additional instance of control. 

One way is to create a reentrant VI with Motor reference active x control and value indicator terminal and dynamically open and call it before you initialize motor. Keep both motor and VI references as class data.

See both files attached with MG17 motor. Specify path for MG17 control.vi for strict reference in test vi.

Download All
Message 2 of 3
(2,680 Views)

@Alexander: Thank you very much for your trick. It works 🙂 finally.

0 Kudos
Message 3 of 3
(2,676 Views)