LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Position a motion stage at different per-defined positions

I want to control my linear stage for various defined position. lets say, step of 20mm and 10sec time delay between the steps. I am a beginner, after reading Labview manuals and watching youtube, I have managed to create a code which initialises the stage and move the stage to first set position.  But I want it to move to different predefined positions. I have tried While and For loop but no success. Therefore, I need help or hint to solve the problem. Find the code in the attachment (i know it is messy but will improve it with experience 😉

 

System details are.....

Hardware: PI high precision motion stage (M-414.3PD) (total travel distance 300mm)

Controller: Mercury C-863 DC motor controller

 

Thanks. 

 

0 Kudos
Message 1 of 3
(1,840 Views)

Ho Rodekro,

 

I would suggest a state machine for your requirement.

Some state could be INIT, GOTO, WAIT.

Then all you need is an input array containing desired positions and wait times…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,834 Views)

Hi GerdW, I will try state machine and let you know the result! 

0 Kudos
Message 3 of 3
(1,792 Views)