ALTADataSet.AddFailure: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 56: Line 56:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the ALTADataSet. See [[New ALTADataSet]] for additional details.}}
{{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]] for.}}
Dim ADS As New ALTADataSet("AddFailure_Example")
  Dim ADS As New ALTADataSet("AddFailure_Example")
 
 
{{APIComment|Create a Stress Definition. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]] for additional details.}}
{{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
ADS.AddStressDefinition("Stress1")
  ADS.AddStressDefinition("Stress1")
 
   
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
  {{APIComment|'Add failure times to the data set.}}
Dim StressProfile1 As New ALTAStressProfile("StressProfile1")
  ADS.AddFailure(37831, 1, 274)
StressProfile1.RepeatCycle = True
  ADS.AddFailure(54436, 1, 274)
StressProfile1.AddSegment(2, 250)
  ADS.AddFailure(65819, 1, 438)
  StressProfile1.AddSegment(3, 400)
  ADS.AddFailure(65919, 1, 438)
  StressProfile1.AddSegment(4, 500)
  ADS.AddFailure(46881, 1, 438)
 
  ADS.AddFailure(73214, 1, 438)
{{APIComment|Add failure values to the raw data.}}
  ADS.AddFailure(89541, 1, 190)
ADS.AddFailure(37831.0019792202, 1, 274)
  ADS.AddFailure(38978, 1, 190)
ADS.AddFailure(54436.8281748317, 1, 274)
  ADS.AddFailure(42334, 1, 190)
ADS.AddFailure(65819.5877754221, 1, 438)
  ADS.AddFailure(9596, 1, 190)
ADS.AddFailure(65919.5029949395, 1, 438)
ADS.AddFailure(46881.4260078973, 1, 438)
ADS.AddFailure(73214.3647378378, 1, 438)
ADS.AddFailure(89541.7683709142, 1, 190)
ADS.AddFailure(38978.5381681186, 1, 190)
ADS.AddFailure(42334.8989069159, 1, 190)
ADS.AddFailure(9596.18143252851, 1, 190)
 
{{APIComment|Get the number of failures. In this example, number of failures will be 10. See [[ALTADataSet.FailureCount|FailureCount]] for additional details.}}
Dim FailureCount As Integer
FailureCount = ADS.FailureCount

Revision as of 20:52, 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(37831, 1, 274)
 ADS.AddFailure(54436, 1, 274)
 ADS.AddFailure(65819, 1, 438)
 ADS.AddFailure(65919, 1, 438)
 ADS.AddFailure(46881, 1, 438)
 ADS.AddFailure(73214, 1, 438)
 ADS.AddFailure(89541, 1, 190)
 ADS.AddFailure(38978, 1, 190)
 ADS.AddFailure(42334, 1, 190)
 ADS.AddFailure(9596, 1, 190)