ALTADataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
m (Protected "ALTADataSet.AddFailure" ([edit=sysop] (indefinite) [move=sysop] (indefinite)) [cascading])
No edit summary
Line 4: Line 4:


== Method Syntax ==
== Method Syntax ==
{{APIName|'''AddFailure'''(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByRef}}
{{APIName|Stress()}}
{{APIPrefix|As Object}}
{{APIName|)}}


{{APIName|'''AddFailure'''(}}
Template:ALTADataSet.AddFailure
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByRef}}
{{APIName|Stress1}}
{{APIPrefix|As Object}}
{{APIName|)}}
 
{{APIName|'''AddFailure'''(}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIPrefix|As Double}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|NumberInGroup}}
{{APIPrefix|As Integer}}
{{APIName|,}}
{{APIPrefix|ByRef}}
{{APIName|Stress1, Stress2}}
{{APIPrefix|As Object}}
{{APIName|)}}
{{APIComment|Adds a failure data point to the collection of data points in the data set.}}


== Parameters ==
== Parameters ==

Revision as of 23:51, 27 January 2014



Inserts a failure point to the ALTADataSet.

Method Syntax

Template:ALTADataSet.AddFailure

Parameters

Value The failure point in time.

NumberInGroup The number of units that failed at the Value time.

Stress() An array of numeric values or references to ALTAStressProfiles already entered into the ALTADataSet

Stress1 An numeric value or a reference to an ALTAStressProfile

Stress2 An numeric value or a reference to an ALTAStressProfile

Adds a failure data point to the collection of data points in the data set.

Usage Example

Declare the ALTADataSet. See New ALTADataSet for additional details.

       Dim ALTADS as New ALTADataSet

Declare an ALTAStressProfile. See ALTAStressProfile for additional details.

       Dim sp = New ALTAStressProfile("Profile1")
       sp.RepeatCycle = True
       sp.AddSegment(1, 250)
       sp.AddSegment(2, 300)
       sp.AddSegment(3, 400)

Add values to the raw data.

       ALTADS.AddFailure(1, 1, sp)
       ALTADS.AddFailure(2, 1, sp)
       ALTADS.AddFailure(3, 1, sp)

Get the number of failures. In this example, NumberOfFailures will be 3.

       Dim NumberOfFailures as Integer
       NumberOfFailures = ALTADS.FailureCount