04-20-2011 01:32 PM
I am hoping to write some code that will automate 6 motors. I have an x, y, z for the stage and then an x and y-tilts for the arm of the microscope and a z-rotation of the arm. Basically the program is suppose to move to different points of the sample and give us the best readings. We are also suppose to be able to store the position of each motor so that we can recall the ideal position of each. I am using the vi attached to run the motors but really having a hard time in knowing where to start to make it run automatically from point to point. If someone can just please give me some advice on where to start or what to research to get me started, I would greatly appreciate it. I'm hoping to give the user an option of how many points on a sample to read(16,25,36) and then be able to move to the points in a grid from there.
04-21-2011 02:55 PM
Hi reighlo,
If I were you I would just add a while or for loop and place the wait unitl loops inside of them. An auto-index terminal will make you life a little easier.
Please let us know how this turns out or if you need any additional help.
04-26-2011 11:42 AM
Thank you Joe, I have made some updates to the bottom three motors and they are now running and scanning the graph while storing their locations. As you can see on my attached vi, I have left an empty space with a case structure.....I set it up so that every point that the X, Y, Z motors move to, it then runs through the empty case structure before moving to the next point and at that time I can call a trigger function so that my Olympus pulse/receiver can send out a signal to my transducers and simultaneously at this time I would like to be able to move the top three motors(Arm x, Arm y, and Rotation).
Thanks,
Reighlo