LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Smoothing the output .CSV file to Stepper Motor

I'm starting with 3 motors X,Y and Z.

 

The camera is controlled by Dragonframe, this works.

 

The motors will work together (Maybe)

 

I'm scared how hard this is becoming;o)

 

It is fun!

 

I did Slew experiments that worked well:

 

 

 

 

0 Kudos
Message 31 of 33
(625 Views)

 

I hope this helps everyone interested.

 

 

I would like to thank the LabView Forum Community for teaching me so much this week!

 

I have a much better understanding of how LabView works and how you need to think.

 

The problem and help I posted as resulted in more questions than answers. It turns out that this is much harder than I thought. 

 

Thing I've learnt.

 

1) People are very interested in this project!

2) The motor I have is not the best for the job - But I have an engineer who understands it and he is helping out.

3) Move Absolute (MA) was not the best way. You can't throw a bunch of numbers at this thing. You get jerky movements. Prove that to be correct.

4) The best way is to use Slew (SL) and create a match to curve Function.

 

I tried it and used what I learned to make this:

 

screenshot_2005.jpg

 

screenshot_2009.jpg

 

This test works very smoothly.

 

This is what the motor engineer has suggested, but again it is not as easy as I would wish. That said I started to make it work with my limited knowledge of the world, life, and LabVIEW.

 

This is my notes:

 

Let’s assume you can write a function (F) in LabView that takes the following input:

·         CSV file

·         Current Time

·         Current Position of Carriage

·         Current Speed of the Carriage

The output of the function is:

·         New Speed of the Carriage

So somehow this function will compute the speed needed to “stay on the curve” of the CSV file.

I will NOT write this function for you, for it will be tons of fun to do.

 

So now you would write a loop that looks like this:

·         Read current position (send PR P) to the motor, wait for reply

·         Call function F

·         Send the new speed command to the motor (SL).

·         Wait until the next frame starts

·         Loop

 

I have started to make this, again with no idea how to do it. But it just keeps working.

 

screenshot_2010.jpg

 

(ONE THING THIS PROVES - A little knowledge is dangerous. ;o) I'm trying!

 

Most of the information it needs is there. I think to get the Current Position of Carriage

and the Current Speed of the Carriage will be the hardest.

 

This is a diagram of the slider could help work out the information needed above.

screenshot_883.png

 

screenshot_885.png

 

My Math knowledge is worse than my LabVIEW attempts so this is going to be fun.

 

If anyone is still interested in helping and learning please jump in and help.

 

Many thanks for everything so far!

 

Mike

Message 32 of 33
(615 Views)

BTW:

 

This was the math we used to adjust for the pulley and distance moved in the following diagram:

 

output*1280/9

 

screenshot_883.png

0 Kudos
Message 33 of 33
(610 Views)