Agilent Technologies 4294A Service Manual Page 161

  • Download
  • Add to my manuals
  • Print
  • Page
    / 518
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 160
Chapter 11 161
Using HP Instrument BASIC
Instrument BASIC Commands Specific to the Agilent 4294A
11. Using HP Instrument
2. Chapter Title 3. Chapter Title
4. Chapter Title
5. Chapter Title
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
Page view 160
1 2 ... 156 157 158 159 160 161 162 163 164 165 166 ... 517 518

Comments to this Manuals

No comments