Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline CraigC  
#1 Posted : 02 July 2020 21:32:43(UTC)
CraigC

Rank: Newbie

Groups: Registered
Joined: 02/07/2020(UTC)
Posts: 4
Canada
Location: Winnipeg

I am using the ± operator on some of my variables to include tolerances on a variable. This is an example:
Tolerance.png

When I combine this plus other variables with their own tolerances I end up with resulting variable which contains several entries. I can access each element as if it is a vector element, but I cannot use the variable itself as a vector which would allow me to use the built-in functions. To date I have been manually counting how many elements are in a variable and then using a for loop to convert the elements into a single column matrix, and then performing a min/max function on the resultant matrix. This can be error prone if I add or remove terms in the preceding formula, either creating an error as the for loop is referencing elements that don't exist or even worse, not including elements which should be included!

Is there a way to get the min/max values? If not is there a way to get the number of elements so I can auto-update by for loops.

I'm also interested in know what variable type this is.

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Jean Giraud  
#2 Posted : 03 July 2020 01:49:35(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
From reading your request, your approach is not correct.
In some way, each component belong to the Engineering result.
Then the resulting ± error is the square root of the sum of the
components expressed in term of result.
As an example: for a T/C [Thermocouple]
we sum the T/C itself + wire extension + converter
then take the square root of that sum.

Stat Incertitude.sm (22kb) downloaded 16 time(s).
Offline CraigC  
#3 Posted : 03 July 2020 07:07:20(UTC)
CraigC

Rank: Newbie

Groups: Registered
Joined: 02/07/2020(UTC)
Posts: 4
Canada
Location: Winnipeg

Thanks for your reply, it sent me into a deep dive into statistical tolerance research and though I've only just touched the surface I'm looking forward to reading more!

I think I understand what you are saying. Instead of using the tolerance directly in the calculations itself, I should be calculating the inaccuracy as it's own term. More importantly the analysis I was performing previously was the worst case instead of the statistical case.

In the example below I performed the RSS (Root Sum Squares) on the tolerance terms which I returned to the nominal calculation at the end. I wasn't sure how to perform it to the inductor/capacitor values themselves and retain proper dimensions so I opted to do it on the percent tolerance instead. The result was the min/max terms I am looking for. Does this look correct to you?

Tolerance examples.sm (11kb) downloaded 17 time(s).
Offline Razonar  
#4 Posted : 03 July 2020 09:12:16(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: CraigC Go to Quoted Post
Thanks for your reply, it sent me into a deep dive into statistical tolerance research and though I've only just touched the surface I'm looking forward to reading more!


Hi. This isn't the statistical procedure, but it's the usual propagation of errors using the gradient of the functional dependency. (Actually, the absolute values of the gradient components). With only one measure, I'm not sure that you can apply other method.

Tolerance examples.pdf (109kb) downloaded 26 time(s).
Tolerance examples.sm (26kb) downloaded 22 time(s).

Best regards.
Alvaro.
thanks 1 user thanked Razonar for this useful post.
on 03/07/2020(UTC)
Offline Jean Giraud  
#5 Posted : 03 July 2020 15:23:18(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
The technical approach from Alvaro is the right one.
It may turn out horrible in some/most cases.
Measuring the mass-flow via orifice plate is the best example.
All those complexities are included in the ISO-5167.
It results to ± 0.06% of the reading, as long as the remaining
of the installation is all conformed ...
pipe length, roughness, fabrication, XTR [transmitter] ... etc.
Once your circuit will be wired, carry enough frequency measurements,
plot the histogram, attempt a PDF fit.
Denser the histogram, more reliable the attempted PDF will be.

Cheers ... Jean
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.