ALTAStressProfile Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 20: | Line 20: | ||
Dim ALTADS as New ALTADataSet | Dim ALTADS as New ALTADataSet | ||
{{APIComment|'Declare an ALTAStressProfile object.}} | {{APIComment|'Declare an ALTAStressProfile object and define its segments.}} | ||
Dim sp = New ALTAStressProfile("Profile1") | Dim sp = New ALTAStressProfile("Profile1") | ||
sp.RepeatCycle = True | sp.RepeatCycle = True |
Revision as of 23:05, 11 April 2014
Constructors
- ALTAStressProfile Creates a new ALTAStressProfile object.
- ALTAStressProfile( String ) Creates a new ALTAStressProfile object with the specified name.
Methods
- AddSegment( Double, Double ) Adds a new segment to the stress profile.
- GetSegments Returns an array of ALTASegment objects that define each segment in the profile.
- Clear Deletes all segments in the profile.
Properties
- Name (as string) Gets the name of the stress profile.
- RepeatCycle (as string) If set to true, cycles through the segments. Otherwise continues from the last stress.
Usage Example
'Declare an ALTADataSet object. See New ALTADataSet. Dim ALTADS as New ALTADataSet 'Declare an ALTAStressProfile object and define its segments. Dim sp = New ALTAStressProfile("Profile1") sp.RepeatCycle = True sp.AddSegment(1, 250) sp.AddSegment(2, 300) sp.AddSegment(3, 400) 'Add the stress profile. See AddStressProfile. ALTADS.AddStressProfile(sp)