Agilent Technologies E1300B User Manual page 19

75000 series b mainframes
Hide thumbs Also See for E1300B:
Table of Contents

Advertisement

Example: Reading the Time
Example: Setting the Time
Example: Reading the Date
Example: Setting the Date
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"
20 OUTPUT 70900;"SYST:TIME?"
30 ENTER 70900; H,M,S
40 PRINT H,M,S
50 END
Typical response: + 16, + 15, + 30
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
This program reads and prints the date stored in the mainframe's internal
calendar.
10 OUTPUT 70900;"SYST:DATE?"
20 ENTER 70900; Y,M,D
30 PRINT Y,M,D
40 END
Typical response: + 1989, + 9, + 16
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
Reset System Instrument using
Common Command
Send SCPI query command to
return time
Place hour in H, minutes in M,
seconds in S
Print time
(4:15:30 PM)
Send SCPI query command to
return date
Place year in Y, month in M,
day in D
Print date
(September 16, 1989)
Getting Started
1-5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

E1301b75000 series b

Table of Contents