ALTADataSet.AddSuspension: 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 ALTADS as New ALTADataSet
  Dim ADS As New ALTADataSet("AddFailure_Example")
 
 
{{APIComment|Declare an [[ALTAStressProfile Class|ALTAStressProfile]]. See [[ALTAStressProfile Class|ALTAStressProfile]] for additional details.}}
{{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}}
        Dim sp = New ALTAStressProfile("Profile1")
  ADS.AddStressDefinition("Stress1")
        sp.RepeatCycle = True
        sp.AddSegment(1, 250)
{{APIComment|'Add 5 suspensions at time  = 500 and stress  = 100 to the data set.}}
        sp.AddSegment(2, 300)
  ADS.AddSuspensions(500, 5, 100)
        sp.AddSegment(3, 400)
 
{{APIComment|Add values to the raw data.}}
        ALTADS.AddSuspension(1, 1, sp)
        ALTADS.AddSuspension(2, 1, sp)
        ALTADS.AddSuspension(3, 1, sp)
 
{{APIComment|Get the number of suspensions. In this example, NumberOfSuspension will be 3.}}
        Dim NumberOfSuspension as Integer
        NumberOfSuspension = ALTADS.SuspensionCount

Revision as of 21:00, 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)