
Chapter 11
161
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
TIME
This function indicates the elapsed time from 00:00 a.m. in seconds.
•
Examples of use
Seconds=TIME("8:37:20") ! The elapsed time expressed in seconds
! from 00:00 a.m. to 08:37:20 a.m.
SET TIME TIME("8:37:20") ! Sets the real time clock to 08:37:20.
ON TIME TIME("12:10") GOSUB Lunch ! Jumps to Lunch when 12:10 comes.
TIME$
This function returns the elapsed time from 00:00 a.m. in the form of HH:MM:SS.
•
Examples of use
DISP "The time is: ";TIME$(TIMEDATE) ! Current time set in the real
! time clock.
PRINT TIME$(45296) ! The time after an elapse of
! 45296 seconds from 00:00 a.m.
WRITEIO
This statement writes data either to I/O ports or to the registers for the EXECUTE
command.
Syntax: WRITEIO <numeric 1>,<numeric 2>; <numeric 3>
•
Examples of use
WRITEIO 15,0;12 ! Writes 12 to the 8 bit I/O port.
Parameter
Description
Range of setting
<numeric 1>
Select code
One of 15, and 16
15: 8-bit I/O port
16: 24-bit I/O prot
<numeric 2>
Register number
With the select coded set to 15: 0 only
With the select code set to 16: 0 to 7
<numeric 3>
Data in the register
With the select code set to 15: 0 to 255
With the select code set to 16:
0 to 16777215
Содержание 4294A
Страница 4: ...4 ...
Страница 18: ...18 Contents ...
Страница 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Страница 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Страница 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Страница 130: ...130 Chapter9 Communication with External Equipment Using the I O Ports Sample Program to Use the I O Port ...
Страница 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Страница 246: ...246 13 Application Sample Programs File Transfer Function ...
Страница 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Страница 507: ...Index Index 507 Index ...
Страница 508: ...508 Index Index ...
Страница 509: ...Index Index 509 Index ...
Страница 510: ...510 Index Index ...
Страница 511: ...Index Index 511 Index ...
Страница 512: ...512 Index Index ...
Страница 513: ...Index Index 513 Index ...
Страница 514: ...514 Index Index ...
Страница 515: ...Index Index 515 Index ...
Страница 516: ...516 Index Index ...
Страница 517: ...Index Index 517 Index ...
Страница 518: ...518 Index Index ...