ALTADataSet.AddFailure: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
{{Template:ALTADataSet.AddFailure}} | {{Template:ALTADataSet.AddFailure}} | ||
Parameters | |||
:''Value'': The exact time of failure. | |||
The failure | |||
:''NumberInGroup'': The number of units that failed at the ''Value'' time. | |||
The number of units that failed at the | |||
:''Stress()'': An array containing numeric stress values or references to added [[ALTAStressProfile Class|ALTAStressProfiles]]. | |||
An array | |||
:''Stress1'': A numeric stress value or reference to an added [[ALTAStressProfile Class|ALTAStressProfile]]. | |||
:''Stress2'': A numeric stress value or reference to an added [[ALTAStressProfile Class|ALTAStressProfile]]. | |||
== Usage Example == | == Usage Example == |
Revision as of 17:26, 11 February 2014
Adds failure times to the data set, using the specified time and number of failures at that time.
Syntax
- AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress() As Object )
- AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1 As Object )
- AddFailure( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1, Stress2 As Object )
Parameters
- Value: The exact time of failure.
- NumberInGroup: The number of units that failed at the Value time.
- Stress(): An array containing numeric stress values or references to added ALTAStressProfiles.
- Stress1: A numeric stress value or reference to an added ALTAStressProfile.
- Stress2: A numeric stress value or reference to an added ALTAStressProfile.
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