ALTASegment Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) No edit summary |
Chris Kahn (talk | contribs) |
||
Line 18: | Line 18: | ||
{{APIComment|'Get segments.}} | {{APIComment|'Get segments.}} | ||
Dim StressSegments() As | Dim StressSegments() As ALTASegment | ||
StressSegments = SP.GetSegments | StressSegments = SP.GetSegments | ||
Revision as of 23:03, 11 April 2014
Used with the ALTAStressProfile.GetSegments method to define each segment of a stress profile.
Properties
- SegmentStart (as double) The segment's start time.
- SegmentEnd (as double) The segment's end time.
- Stress (as double) The stress level throughout the segment.
Usage Example
'Declare an ALTAStressProfile object. See ALTAStressProfile. Dim SP As New ALTAStressProfile("Profile1") 'Add segments. SP.AddSegment(1, 250) SP.AddSegment(2, 300) SP.AddSegment(3, 400) 'Get segments. Dim StressSegments() As ALTASegment StressSegments = SP.GetSegments 'Get the start time of the first segment. Dim SegStart As Double SegStart = StressSegments(0).SegmentStart