ALTADataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 63: Line 63:
   
   
  {{APIComment|'Add failure times to the data set.}}
  {{APIComment|'Add failure times to the data set.}}
   ADS.AddFailure(37831, 1, 274)
   ADS.AddFailure(100, 1, 190)
   ADS.AddFailure(54436, 1, 274)
   ADS.AddFailure(120, 1, 190)
   ADS.AddFailure(65819, 1, 438)
   ADS.AddFailure(130, 1, 190)
   ADS.AddFailure(65919, 1, 438)
   ADS.AddFailure(140, 1, 190)
   ADS.AddFailure(46881, 1, 438)
   ADS.AddFailure(130, 1, 274)
   ADS.AddFailure(73214, 1, 438)
   ADS.AddFailure(150, 1, 274)
   ADS.AddFailure(89541, 1, 190)
   ADS.AddFailure(70, 1, 438)
   ADS.AddFailure(38978, 1, 190)
   ADS.AddFailure(80, 1, 438)
   ADS.AddFailure(42334, 1, 190)
   ADS.AddFailure(85, 1, 438)
   ADS.AddFailure(9596, 1, 190)
   ADS.AddFailure(90, 1, 438)

Revision as of 21:03, 5 May 2014


Adds failure times to the data set, using the time at which the units failed, the number of failures at that time and the associated stress level.

Syntax

  • AddFailure( Value As Double , NumberInGroup As Integer , Stress() As Object ) Adds failure times to the data set, using the specified time, the number of failures at that time and an array of stress values/profiles for all the stresses.
  • AddFailure( Value As Double , NumberInGroup As Integer , Stress1 As Object ) Adds failure times to the data set, using the specified time, the number of failures at that time and a single stress value/profile.
  • AddFailure( Value As Double , NumberInGroup As Integer , Stress1 As Object , Stress2 As Object ) Adds failure times to the data set, using the specified time, the number of failures at that time and two stress values/profiles.

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 a new ALTADataSet object. See ALTADataSet for. 
 Dim ADS As New ALTADataSet("AddFailure_Example")
 
 'Define a new stress. See AddStressDefinition. 
 ADS.AddStressDefinition("Stress1")

 'Add failure times to the data set. 
 ADS.AddFailure(100, 1, 190)
 ADS.AddFailure(120, 1, 190)
 ADS.AddFailure(130, 1, 190)
 ADS.AddFailure(140, 1, 190)
 ADS.AddFailure(130, 1, 274)
 ADS.AddFailure(150, 1, 274)
 ADS.AddFailure(70, 1, 438)
 ADS.AddFailure(80, 1, 438)
 ADS.AddFailure(85, 1, 438)
 ADS.AddFailure(90, 1, 438)