06-21-2011 02:40 AM
Hi all,
I am trying to control a step motor to move in vertical direction by Labview2010. The specific Labview function blocks are created by the manufacturer of the step motor. Now the axis can move up/down properly but my question is that I want it to move with a time interval. For example, we set the desired position to 10mm and waiting time 1s. When I click on the start button once only the axis moves 1mm and wait 1s. Then axis moves another 1mm and wait 1s. This action will obviously repeat 10 times until the axis reaches 10mm position.
I will be very thankful if someone could give me some hints.
Best regards,
Nicky
Solved! Go to Solution.
06-21-2011 03:04 AM - edited 06-21-2011 03:07 AM
Hello!
If I understood you right, this might help you. It's created in LV2010
Note that you should put in some logic before running the forloop, since 0mm travel and 0mm resolution is not a good thing to run.
06-21-2011 03:31 AM
Thanks Even. That's exactly what I meant.
06-21-2011 03:45 AM
You're welcome
You should some more to the code so that it's more reliable. There might be some miscalculation between the travel distance and the resolution, i.e. 5mm travel and 2mm resolution will give the forloop 2,5. This should be either 2 or 3. I'm not quite sure how the for loop handles this. I think it will round to nearest. You should anyways check it out. Also avoid using 0mm.
Good look with your project