06-11-2015 08:36 AM
Hi. I am trying to automate the control of a Thorlabs motor, this question has been asked before but I don't think there has been a satisfactory answer. I have the motor connected to a rotation stage and I would like to be able to tell the stage to rotate by x degrees every x seconds. I have followed the instructions provided by Thorlabs on how to get started so I can control the motor via the buttons on the GUI (files attached). I have looked at the help files provided by Thorlabs but they were not much help to me (I am a fairly new to Labview). I have tried tried to use the "setcycleparams" and "getOperatingMode" Active X methods but with no success. Has anyone implemented something similar? Any help would be greatly appreciated. Thanks.
06-11-2015 10:46 AM
I like to use a little timing vi to see if the time has elapsed for a certain event. If the output is true, you can make a case structure so that it sends a command to your stages and restarts the timer.
The timer uses an uninitialized shift register, so make sure to call it once using the "start" mode before checking how much time has elapsed. You can call it many times from anywhere in your program, and wire the error lines to make sure it executes in the order you want.
06-12-2015 03:43 AM
Thanks gregoryj for your reply. I will try and modify my vi to include what you have suggested.