SCPI.SYSTem.DATE

Object type

Property (Read-Write)

Syntax

SCPI.SYSTem.DATE = Data

Data = SCPI.SYSTem.DATE

Description

This command sets/gets the date of the clock built in the E5071C. The login as the user name of "administrator" is required to set the time. (On Windows 7, this works under user account (Instrument account) when the UAC is set to off.)

Variable

Parameter

Data

Description

Indicates 3-element array data (date of the built-in clock).

  • Data(0) Sets year.

  • Data(1) Sets month.

  • Data(2) Sets day.

The index of the array starts from 0.

Data type

Variant type (Variant)

Range

  • Data(0) 2002 to 2037

  • Data(1) 1 to 12

  • Data(2) 1 to 31

Resolution

1

Note

If the specified variable is out of the allowable setup range, the minimum value (if the lower limit of the range is not reached) or the maximum value (if the upper limit of the range is exceeded) is set.

Examples

Dim Day As Variant
SCPI.SYSTem.DATE = Array(2005,12,10)
Day = SCPI.SYSTem.DATE

Dim Day(2) As Variant
Dim Ref As Variant
Day(0) = 2005
Day(1) = 12
Day(2) = 10
SCPI.SYSTem.DATE = Day
Ref = SCPI.SYSTem.DATE

Related objects

SCPI.SYSTem.TIME

SCPI.DISPlay.CLOCk

Equivalent key

System > Misc Setup > Clock Setup > Set Date and Time

Equivalent SCPI command

Syntax

:SYSTem:DATE <numeric 1 (year)>,<numeric 2 (month)>,<numeric 3 (day)>

:SYSTem:DATE?

Query response

{numeric 1 (year)},{numeric 2 (month)},{numeric 3 (day)}<newline><^END>

Example of use

10 OUTPUT 717;":SYST:DATE 2005,12,10"
20 OUTPUT 717;":SYST:DATE?"
30 ENTER 717;A,B,C