05-14-2012 11:49 AM
Hello,
I am using Thorlabs' T-Cube Piezos for a Nanomax -TS stage, which I'd like to control through LabVIEW. I've managed to hook up the piezo controls to the program, and it works well, but I'm aiming to control the piezos by means of a slider or automated control outside the ActiveX. But I've run into some trouble, I can't seem to control the piezos in any other way than through the activex container. Any ideas? Attached is the .vi
Solved! Go to Solution.
05-14-2012 01:11 PM
Unfortunately, this is something you'll have to ask Thorlabs. LabVIEW can call ActiveX either by using an ActiveX control, or by instantiating an ActiveX class. There are examples that ship with LabVIEW on programmatically creating an ActiveX class (not using an ActiveX control) and then using properties and methods. If the device can only be controlled via the control (which I doubt), then there's not much you can do at the LabVIEW end (or any other programming language for that matter). Do you know if this is the case? Have you checked the documentation for the software?
05-14-2012 01:52 PM
Thanks for the reply,
It shipped with a program written in LabWindows (which does control it outside of activex) , so I'm sure that it can be done. Their program works reasonably well, but is missing components that would allow me to see what they did. I'll check back with Thorlabs though, see what they can tell me.
05-15-2012 08:46 AM
UPDATE: No response from Thorlabs but I realized my mistake, the while loop was iterating too fast so when the slider was moved the input was reset each time it looped. Put a minor time delay in (~0.01 s) and it works beautifully.