ALTADataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 62: Line 62:
   ADS.AddStressDefinition("Stress1")
   ADS.AddStressDefinition("Stress1")
   
   
  {{APIComment|'Add 5 suspensions at time = 500 and stress = 100 to the data set.}}
  {{APIComment|'Add 5 suspensions at time = 500 and stress = 100 to the data set.}}
   ADS.AddSuspensions(500, 5, 100)
   ADS.AddSuspensions(500, 5, 100)

Revision as of 21:01, 5 May 2014


Adds suspensions to the data set, using the time at which the units were suspended, the number of suspensions at that time and the associated stress level.

Syntax

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

Parameters

Value: The suspension time.
NumberInGroup: The number of units that were suspended 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 5 suspensions at time = 500 and stress = 100 to the data set. 
 ADS.AddSuspensions(500, 5, 100)