# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Re: Roundness calculations

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.

Thanks a lot

Regards

Alain

Message 21 of 24
(1,038 Views)

## Re: Roundness calculations

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

Message 22 of 24
(1,002 Views)

## Re: Roundness calculations

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

Message 23 of 24
(776 Views)

## Re: Roundness calculations

Hello,

Is there a specific reason why it needs to be a polar graph?

Can you post the code you already have?

Kind Regards,
Thierry C - CLA, CTA - Staff R&D Engineer, RF Semiconductor Test - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 24 of 24
(745 Views)