ALTADataSet.AddSuspension: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:APIClass|ALTADataSet Class|ALTADataSet}} Inserts a suspension point to the ALTADataSet. == Method Syntax == {{APIName|AddSuspension(}} {{APIPrefix|ByVal}} {{APIName|…')
 
No edit summary
Line 4: Line 4:


== Method Syntax ==
== Method Syntax ==
{{APIName|AddSuspension(}}
{{APIName|'''AddSuspension'''(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIName|Value}}
Line 18: Line 18:
{{APIName|)}}
{{APIName|)}}


{{APIName|AddSuspension(}}
{{APIName|'''AddSuspension'''(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIName|Value}}
Line 32: Line 32:
{{APIName|)}}
{{APIName|)}}


{{APIName|AddSuspension(}}
{{APIName|'''AddSuspension'''(}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|Value}}
{{APIName|Value}}
Line 45: Line 45:
{{APIPrefix|As Object}}
{{APIPrefix|As Object}}
{{APIName|)}}
{{APIName|)}}
<br> {{APIComment|Adds a suspension data point to the collection of data points in the data set.}}
{{APIComment|Adds a suspension data point to the collection of data points in the data set.}}


== Parameters ==
== Parameters ==

Revision as of 15:51, 24 September 2013



Inserts a suspension point to the ALTADataSet.

Method 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 )

Adds a suspension data point to the collection of data points in the data set.

Parameters

Value The suspension point in time.

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

Stress() An array of numeric values or references to ALTAStressProfiles already entered into the ALTADataSet

Stress1 An numeric value or a reference to an ALTAStressProfile

Stress2 An numeric value or a reference to an ALTAStressProfile

Adds a suspension data point to the collection of data points in the data set.

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