LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculate the number of steps for a step-step motor before finishing the original routine, Labview and Arduino

sending a single step it was option, but it was very slow, i will give it a go again.

i appreciated the help.

0 Kudos
Message 11 of 14
(1,935 Views)

@Marckus wrote:

sending a single step it was option, but it was very slow, i will give it a go again.

i appreciated the help.


Well honestly you should not have to do this every time you move the stepper or even run the program.

 

Finding the number of steps to full extension and calculating the half way point should be a "calibration routine" that you run once to get your numbers. Then use those numbers until it falls out of acceptable operation and calibrate it again.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 12 of 14
(1,931 Views)

i have rewrote the code counting every single step, and it looks alright.

the final routine where i need to repeat the steps back and forward will have the 2 end stops sensors on to check the steps consistency.

thanks for the suggestions.

Cheers,

Marco

0 Kudos
Message 13 of 14
(1,917 Views)

You really need to go back to the tutorials. Most of your code is just plain silly!

 

Example (focus on the green stuff!):

 

altenbach_0-1604001845590.png

 

(Also NEVER EVER delete the labels of controls and indicators (e.g. your booleans). You can hide them on the front panel (right-click...visible items...) if you don't want to see them.

 

0 Kudos
Message 14 of 14
(1,909 Views)