02-19-2022 12:16 PM
Design a system that can plot a straight line from the coordinates of two given points
using for loop and formula from block diagram
can someone help
02-19-2022 12:53 PM
My guess that this is homework, why else would there be such specific requirements (FOR loop, formula, etc.). You don't really need any of that but it's a good learning experience.
How far did you get so far?
02-20-2022 10:24 AM - edited 02-20-2022 10:27 AM
The length component of the problem was solved a few millennia ago by a guy named Pythagoras.
It sounds like you have a point A to start at and a point B to end at already. All you need then is to figure out which way to go and how far to go that way.
That sounds like a nice continuation of the Greek theme! Maybe you could find some Math Functions that have parameters of Rho and Theta 😉
I cannot understand why you would need a loop and all the functions needed are easily available.
02-20-2022 10:34 AM
I did not see any "length" component in the problem description, but the term "plot" could of course mean many things. For simplicity, I assumed a virtual line on an xy graph, but it could easily also be about how to drive two stepper motors of an xy stage moving a real pen around. 😄
02-20-2022 10:58 AM - edited 02-20-2022 11:01 AM
@altenbach wrote:
I did not see any "length" component in the problem description, but the term "plot" could of course mean many things. For simplicity, I assumed a virtual line on an xy graph, but it could easily also be about how to drive two stepper motors of an xy stage moving a real pen around. 😄
Oh, in that case we only need M and B! Double check me but, isn't get scale (linear) on the Math pallet still? I thought that accepted an array of points as cluster <x,y>
02-20-2022 11:40 AM - edited 02-20-2022 11:43 AM
We still don't know what a "system" is (as in "... design a system ...").
All we probably need is a size=2 complex 1D array defining the two points, a wire, and a xy graph. 🙂