06-06-2009 12:31 PM
Me again 🙂
I tried to implement MZC calculations
MZC is Minimum Zone Circle, two concentric circles that just enclose the profile on both outside and inside.
Now I have 4 elements in array X: circles centre X, circles centre Y, radius outer circle, radius inner circle. Because of this 4 elements Xminimum and X maximum in cluster Bounds also need 4 elements.
In this case I have two constraints, so I put them in the array “Inequality constraint…”
It’s strange that I don’t need to add an element in the array “Inequality constraint min” and “Inequality constraint max” in the “Bounds” cluster, just like the “X” case above. Even strange is the fact that I get different results depending in the number of elements in those “Inequality” arrays?
What is the “Objective function value” for and what should I wire there?
Now I used the difference between outer radius and inner radius since this is the MZC, but is this correct?
Why do you square and sum this array?
I’m sure this is close but not correct since when I run it on some profiles I have, those MZC circles are close to the profile but never touch it.
So can you please advice a little more?
Thanks a lot
Regards
Alain
06-08-2009 01:42 PM
MZC is also working fine now
Updated version attached
Thanks DSPGuy (aka Jim, yes I read a lot this week-end ) you learned me a lot!
Regards
Alain
09-28-2011 01:18 PM
Hi, I'm also trying to write this roundness program, and this thread has been extremely helpful.
A question I have is...why did you use the X&Y graph instead of a polar plot? and how would you write this using a polar plot? I'm having a difficult time implementing a polar plot
Thanks for your help
09-30-2011 09:26 AM
Hello,
Is there a specific reason why it needs to be a polar graph?
Can you post the code you already have?