ALTADataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


Parameters
Parameters
:''Value'': The suspension point in time.
:''Value'': The suspension time.


:''NumberInGroup'': The number of units that were suspended at the '''Value''' time.
:''NumberInGroup'': The number of units that were suspended at the ''Value'' time.


{{Template:ALTADataSet.StressParameters.Cmt}}
{{Template:ALTADataSet.StressParameters.Cmt}}

Revision as of 18:15, 11 February 2014


Adds a suspension and associated stress level to the data set.

Syntax

  • AddSuspension( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress() As Object )
  • AddSuspension( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1 As Object )
  • AddSuspension( ByVal Value As Double , ByVal NumberInGroup As Integer , ByRef Stress1, Stress2 As Object )

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 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.AddSuspension(1, 1, sp)
       ALTADS.AddSuspension(2, 1, sp)
       ALTADS.AddSuspension(3, 1, sp)

Get the number of suspensions. In this example, NumberOfSuspension will be 3.

       Dim NumberOfSuspension as Integer
       NumberOfSuspension = ALTADS.SuspensionCount