LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting ActiveX Objects

I have installed Labview 64 bit onto my computer and downloaded the full 4Gb driver compilation. I am trying to use labview to run a motor control for my TPZ001 Thorlabs piezo controller. When I go to "Insert ActiveX Object", in the list of controls MG17Motor is no where to be found. This is the control I need for my motor and from what I gathered from my colleages this control should appear after having installed the Thorlabs ATP config/user CD application. I have also plugged the piezo controller into my computer's USB and got the successfully installed drivers message. Even after the 4Gb driver installation the motor control in activeX cannot be found. Am I overlooking something simple? The driver set installed in \Program Files (x86)\ even though everything is 64 bit, when I tried to change the install directory it said that my choice of \Program Files\ was invalid.

 

---
Where awareness goes, energy flows.
0 Kudos
Message 1 of 15
(5,396 Views)

bump

---
Where awareness goes, energy flows.
0 Kudos
Message 2 of 15
(5,387 Views)

There's more than one way to use an ActiveX object in LabVIEW.  I may not use the correct ActiveX terminology, but there's a difference between an ActiveX control versus an ActiveX class.  Only ActiveX controls can be inserted on the front panel.  You can get access to an ActiveX class by using the "Automation Open" primitive found in the Connectivity->ActiveX palette.  Create a constant for the Automation Refnum input, then right-click on the constant and choose "Select ActiveX Class..."  See if you can then open your component there.

0 Kudos
Message 3 of 15
(5,383 Views)

 


@VedranJ wrote:

I have installed Labview 64 bit onto my computer and downloaded the full 4Gb driver compilation. I am trying to use labview to run a motor control for my TPZ001 Thorlabs piezo controller. When I go to "Insert ActiveX Object", in the list of controls MG17Motor is no where to be found. This is the control I need for my motor and from what I gathered from my colleages this control should appear after having installed the Thorlabs ATP config/user CD application. I have also plugged the piezo controller into my computer's USB and got the successfully installed drivers message. Even after the 4Gb driver installation the motor control in activeX cannot be found. Am I overlooking something simple? The driver set installed in \Program Files (x86)\ even though everything is 64 bit, when I tried to change the install directory it said that my choice of \Program Files\ was invalid.

 



Did you find a solution for this?

0 Kudos
Message 4 of 15
(5,335 Views)

 


@nathand wrote:

There's more than one way to use an ActiveX object in LabVIEW.  I may not use the correct ActiveX terminology, but there's a difference between an ActiveX control versus an ActiveX class.  Only ActiveX controls can be inserted on the front panel.  You can get access to an ActiveX class by using the "Automation Open" primitive found in the Connectivity->ActiveX palette.  Create a constant for the Automation Refnum input, then right-click on the constant and choose "Select ActiveX Class..."  See if you can then open your component there.



Hi nathand, can you explain a bit further what you mean?  I have attached my code if you weant to have a look at what it is supposed to do.

 

0 Kudos
Message 5 of 15
(5,331 Views)

@notimperial wrote:

Hi nathand, can you explain a bit further what you mean?  I have attached my code if you weant to have a look at what it is supposed to do.


What else do you need to know?  It's not your choice whether you use Automation Open or an ActiveX container, you must use whichever one is appropriate for the component you are using (and the other one won't work).  In your case you have an ActiveX control that you can place on the front panel in an ActiveX container.  There are other ActiveX components are not designed to have any direct user interaction so they provide an interface accessible only to the programmer, with no controls or indicators.  For those components you use Automation Open.

0 Kudos
Message 6 of 15
(5,306 Views)

The only solution I have found is to use the 32 bit version of LabView, for some reason it just won't work with the 64.

0 Kudos
Message 7 of 15
(5,051 Views)

Hey Phoenix,

 

This thread is pretty old, if you are still having the same problem, I would recommend making a new thread.

 

Regards!

Ian K.
Software Developer
Data Ahead AG
0 Kudos
Message 8 of 15
(5,026 Views)

Yes, the only solution was to buy a new 32-bit computer because Thorlabs software does not support 64-bit yet (and it isn't coming soon). Alternatively you can use VMware to setup a 32-bit virtual machine off a 64-bit.

---
Where awareness goes, energy flows.
0 Kudos
Message 9 of 15
(5,012 Views)

Sounds to me like it'd be enough to install LV 32 bit. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 15
(5,001 Views)