11-10-2005 04:52 PM
11-10-2005 04:53 PM
11-11-2005 11:11 AM
Hi Shefalika,
I developed and checked the below VBScript in DIAdem 8.1-- yes, it does matter. Your resultant calculation will run much faster and more efficiently by programmatically using the Formula Calculator. You also needed to pass the channels to the ChnAverage() function as a channel string.
Dim FChns(4), ChnStr
FChns(1) = 1
FChns(2) = 2
FChns(3) = 3
FChns(4) = 4
ChnStr = FChns(1) & "," & FChns(2) & "," & FChns(3) & "," & FChns(4)
CALL ChnAverage(ChnStr, L1)
L1 = CNo("Mean_values")
CN(L1) = "FAvg"
CC(L1) = "FORCE AVERAGE"
L3 = FChns(1)
L4 = FChns(2)
L5 = FChns(3)
L6 = FChns(4)
FormulaTxt = "Ch('StdForce'):= Sqrt("
FormulaTxt = FormulaTxt & " (Ch(L3)-Ch(L1))^2 + "
FormulaTxt = FormulaTxt & " (Ch(L4)-Ch(L1))^2 + "
FormulaTxt = FormulaTxt & " (Ch(L5)-Ch(L1))^2 + "
FormulaTxt = FormulaTxt & " (Ch(L6)-Ch(L1))^2)"
Call FormulaCalc(FormulaTxt)
L2 = CNo("StdForce")
CC(L2) = "STANDARD DEV - FORCE"
Ask if you have additional questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-07-2019 09:17 AM
Brad I hate to thread resurrect but with newer versions of DIAdem is there a function that does this?
I am looking to calculate STD DEV is the same format as the OP but I also need a +/-3 sigma
02-19-2019 02:11 PM
Hi Tim,
For many versions now, DIAdem has had a "Standard Deviation" checkbox in the "Descriptive Statistics" ANALYSIS dialog in the "Statistics" palette. Recent DIAdem versions also have "Three Sigma" and "Six Sigma" checkboxes.
Have you looked at the Statistics options lately?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-20-2019 06:18 AM
Brad
My version of DIAdem 2017 sp1 only has "Standard Deviation" checkbox.
Do the newer versions have Three and Six Sigma?
02-20-2019 12:51 PM
Hi Tim,
That's actually sufficient, you can multiply the "standard deviation" result by 3 to get "Three Sigma" and by 6 to get "Six Sigma".
Here's what it looks like in DIAdem 2018,
Brad