ALTADataSet.AddSuspension: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 56: | Line 56: | ||
== Usage Example == | == Usage Example == | ||
{{APIComment|Declare | {{APIComment|'Declare a new ALTADataSet object. See [[ALTADataSet Class|ALTADataSet]] for.}} | ||
Dim ADS As New ALTADataSet("AddFailure_Example") | |||
{{APIComment| | {{APIComment|'Define a new stress. See [[ALTADataSet.AddStressDefinition|AddStressDefinition]].}} | ||
ADS.AddStressDefinition("Stress1") | |||
{{APIComment|'Add 5 suspensions at time = 500 and stress = 100 to the data set.}} | |||
ADS.AddSuspensions(500, 5, 100) | |||
{{APIComment|Add | |||
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)