ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Normal Distribution

Hello there,

 

I'm trying to calculate the normal distribution for a channel in DIAdem, without much luck.  I've seen the example at the location below but I don't understand it. Does anybody have a simple/commented example that you wouldn't mind sharing please?

 

http://forums.ni.com/t5/DIAdem/DIAdem-2010-Advanced-Edition/td-p/1622394

 

Thank you,

 

 

Martin

 

http://forums.ni.com/t5/DIAdem/DIAdem-2010-Advanced-Edition/td-p/1622394

0 Kudos
Message 1 of 4
(5,698 Views)

This is what I have so far, I'd be pleased to hear any feedback.

Thank you,

Martin

 

 

'Create the histogram classes
ClassNo          = 40
ClassBegin       = -5
ClassEnd         = 40
ClassWidth       = 1.125
ClassRangeWidth  = 45
ClassChn         = "[1]/Noname"
Call ChnHistogram("/On Time","/ClassMean","/SampleCount","NoBeginEnd","absolute")

 

'Build the CDF:
formula =  "Ch(""/Result"")=  SND( (Ch(""/ClassMean"") - mean ) / stdev)"
symbols(1) = "mean"
symbols(2) = "stdev"
values(1) = Data.Root.ActiveChannelGroup.Channels("On Time").Properties("ResultStatArithMean").Value
values(2) = Data.Root.ActiveChannelGroup.Channels("On Time").Properties("ResultStatDeviation").Value
Call Calculate ( formula, symbols, values )

 

'Differentiate to get the PDF
Call ChnDifferentiate("/ClassMean","/Result","/DifferentiatedX","/DifferentiatedY")

0 Kudos
Message 2 of 4
(5,687 Views)

Hi MartinMcD,

 

Are you looking for this:

 

2013-02-15 08 09 14.png

 

2013-02-15 08 09 30.png

 

Greetings

Walter

 

 

0 Kudos
Message 3 of 4
(5,676 Views)

Great, thank you Walter.

 

All the best,

 

Martin

0 Kudos
Message 4 of 4
(5,670 Views)