Instrument BASIC Commands Specific to the Agilent 4294A
The commands given below are not carried on "HP Instrument BASIC Language
Reference" in HP Instrument BASIC User's Handbook, but they are available on HP
Instrument BASIC of the 4294A. They can be run both by use of the keyboard and within
programs. They, if used in a program, can be used in a single IF ... THEN .... line.
DATE
This function converts a date (day, month, year) into Julian seconds.
•
Examples of use
PRINT DATE("21 MAY 1991")
corresponding to May 21, 1991.
SET TIMEDATE DATE("1 Jan 1991")
Days=(DATE("1 JAN 1991")-DATE("11 NOV 1990")) DIV 86400
NOTE
Julian second is a value expressed in seconds counted since 00:00 a.m. November 24, 4713
B.C. to be used in the real time clock.
DATE$
This function converts Julian seconds into its corresponding date (day, month, year).
•
Examples of use
PRINT DATE$(TIMEDATE) ! Indicates the date set in the real time clock.
DISP DATE$(2.111510608E+11)
Chapter 11
Instrument BASIC Commands Specific to the Agilent 4294A
! Indicates Julian seconds
! Sets 00:00 a.m. January 1, 1991
! in the real time clock.
! Indicates the date corresponding to
! 2.111510608E+11 Julian seconds.
Using HP Instrument BASIC
!
159