DIAdem Help

Property: DateTimeRepresentation for CurveChart2D

  • Updated2024-09-12
  • 2 minute(s) read

Property: DateTimeRepresentation for CurveChart2D

Specifies whether a 2D axis system system in DIAdem VIEW displays time values as absolute or relative time values.

Object.DateTimeRepresentation
ObjectCurveChart2D
Object with this property
Object.DateTimeRepresentationEnumeration with read and write access and the following selection terms:
 0
eDateTimeRepresentationLegacy
Compatible: DIAdem displays the time part of the waveform channels with a relative time axis. DIAdem displays all other time channels on an absolute time axis.
 1
eDateTimeRepresentationAbsolute 
Absolute: DIAdem displays the time part on an absolute time axis.
 2
eDateTimeRepresentationRelative 
Relative: DIAdem displays the time part on a relative time axis. DIAdem ignores the start times of all channels and plots the channels from the time zero.
 3
eDateTimeRepresentationRelativeWithOffset 
Relative with offset: DIAdem displays the time part with a relative time axis. DIAdem takes into account the relative start times of the channels. DIAdem plots the channel with the earliest start time from the time zero. If the time part of another channel begins later, DIAdem draws this channel with the corresponding offset on the time axis.

The following example generates a 2D axis system with a curve and displays the time values as absolute time values:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyCurve
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "CurveChart2D"
Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj
Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")
oMyChart.DateTimeRepresentation = eDateTimeRepresentationAbsolute