
Chapter 11
159
Using HP Instrument BASIC
Instrument BASIC Commands Specific to the Agilent 4294A
1
1
. Using
HP Instrument
2
. Cha
p
te
r T
itle
3
. Chap
te
r T
itle
4
. Chap
te
r T
itle
5. Chap
te
r T
itle
BASIC
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") ! Indicates Julian seconds
corresponding to May 21, 1991.
SET TIMEDATE DATE("1 Jan 1991") ! Sets 00:00 a.m. January 1, 1991
! in the real time clock.
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.11111) ! Indicates the date corresponding to
! 2.11111 Julian seconds.
Summary of Contents for 4294A
Page 4: ...4 ...
Page 18: ...18 Contents ...
Page 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Page 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Page 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Page 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Page 246: ...246 13 Application Sample Programs File Transfer Function ...
Page 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Page 507: ...Index Index 507 Index ...
Page 508: ...508 Index Index ...
Page 509: ...Index Index 509 Index ...
Page 510: ...510 Index Index ...
Page 511: ...Index Index 511 Index ...
Page 512: ...512 Index Index ...
Page 513: ...Index Index 513 Index ...
Page 514: ...514 Index Index ...
Page 515: ...Index Index 515 Index ...
Page 516: ...516 Index Index ...
Page 517: ...Index Index 517 Index ...
Page 518: ...518 Index Index ...