Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic motion control for 6 motors and storing the previous positions

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.

0 Kudos
Message 1 of 3
(4,872 Views)

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.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 2 of 3
(4,862 Views)

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

0 Kudos
Message 3 of 3
(4,854 Views)