
160
Chapter 11
Using HP Instrument BASIC
Instrument BASIC Commands Specific to the Agilent 4294A
READIO
This command reads the content of I/O ports.
Syntax: READIO(<numerical 1>,<numerical 2>)
•
Example of use
Ioport=READIO(15,0) ! Assigns data in the 8-bit I/O port to
! the variable Ioport.
SET TIME
This statement changes nothing but the time set in the real time clock (internal clock).
•
Examples of use
SET TIME TIME("22:00:30") ! Changes the time set in
! the real time clock to 22:00:30.
SET TIME Hours*3600+Minutes*60 ! Changes the time set in
! the real time clock to Hours:Minutes.
SET TIMEDATE
This statement changes Julian seconds set in the real time clock (internal clock).
•
Example of use
SET TIMEDATE DATE("4 JAN 1993")+TIME("10:00:00") ! Set the real time
! clock to 10 a.m.
! January 4, 1993.
SET TIMEDATE T86400 ! Sets the real time
! clock forward one day.
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 port
<numeric 2>
Register number
With the select code set to 15: 0 only
With the select code set to 16: 2 to 4
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 ...