Agilent Technologies E1300B User Manual

Page 19

Advertising
background image

Example: Reading the Time

This program reads and prints the time from the System Instrument’s internal
clock. The computer used in the example is an Agilent Series 200/300 computer
with Agilent BASIC as the program language. The computer interfaces to the
mainframe using the General Purpose Interface Bus (GPIB). The GPIB
interface select code is 7, the GPIB primary address is 09, and the GPIB
secondary address is 00 (System Instrument). Resulting in a combined address
of 70900.

10 OUTPUT 70900;"* RST"

Reset System Instrument using
Common Command

20 OUTPUT 70900;"SYST:TIME?"

Send SCPI query command to
return time

30 ENTER 70900; H,M,S

Place hour in H, minutes in M,
seconds in S

40 PRINT H,M,S

Print time

50 END

Typical response: + 16, + 15, + 30 (4:15:30 PM)

Example: Setting the Time

Set the clock using the 24 hour hour,minute,second format. Execute the
following line to set the time to 14,00,00 (i.e., 2:00:00 PM).

SYST:TIME 14,00,00

Example: Reading the Date

This program reads and prints the date stored in the mainframe’s internal
calendar.

10 OUTPUT 70900;"SYST:DATE?"

Send SCPI query command to
return date

20 ENTER 70900; Y,M,D

Place year in Y, month in M,
day in D

30 PRINT Y,M,D

Print date

40 END

Typical response: + 1989, + 9, + 16 (September 16, 1989)

Example: Setting the Date

Set the date using the YYYY,MM,DD format. Executing the following line sets
the date to 1990,1,13 (January 13, 1990).

SYST:DATE 1990,1,13

Getting Started 1-5

Advertising
This manual is related to the following products: