01-23-2019 10:05 AM
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.
Solved! Go to Solution.
01-23-2019 11:09 AM
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.
01-23-2019 11:36 AM
@Alexander: Thank you very much for your trick. It works 🙂 finally.