|
Specify the start and end dates and times for the time axis (X-axis).
Syntax 1
SetTimeRange(
startTime,
endTime
)
Parameters
startTime
|
|
Type:
|
time
|
|
Start date and time.
|
endTime
|
|
Type:
|
time
|
|
End date and time.
|
Syntax 2
SetTimeRange(
baseTime,
day,
hour,
min,
sec
[,baseTimePos = "left"]
)
(This is for setting the start time and end time using a base time and period.)
Parameters
baseTime
|
|
Type:
|
time
|
|
The reference date and time.
|
day
|
|
Type:
|
Number
|
|
Number of days
|
baseTimePos
|
|
Type:
|
Selected characters
|
|
Position of the reference date and time. Select from "left",, "center",, and "right".
If you select "left", the end time is set on the left side, that is, based on the start time.
"center" is the center, meaning that the start time and end time are set so that the reference time is exactly in the center.
If you select "right", the start time is determined based on the right side, that is, the end time.
|
Explanation
SetTimeRange provides two ways to specify the start and end dates and times of the time axis (X axis).
|
Example
Example 1 and Example 2 have the same meaning.
Example 1)
|
this.SetTimeRange("2016/01/01 00:00:00", "2016/01/02 00:00:00");
|
Example 2)
|
this.SetTimeRange("2016/01/01 00:00:00", 1, 0, 0, 0);
|
Syntax 2 is specified as follows:
Example 3)
|
this.SetTimeRange("2016/01/01 00:00:00", 1, 0, 0, 0);
|
It will be set from 2016/1/1 0:0:0 for one day, that is, 2016/1/1 0:0:0 to 2016/1/2 0:0:0. If BaseTimePos is omitted, it will be interpreted as "left".
Example 4)
|
this.SetTimeRange("2016/01/01 10:10:10", 0, 0, 0, 5, "right");
|
It will be set from 2016/01/01,10:10:10 to 5 seconds before that, that is, 2016/01/01,10:10:05 to 2016/01/01,10:10:10.
|
reference
SetProbePos
GetProbeTime
GetPenDataSource
SetPenDataSource
SetTimeRange
GetTimeRange
SetTimeSpan
Refresh
Scroll
StartRealTime
StopRealTime
|