Error, Fill – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual
Page 307

15A. Driver488/DRV Commands
III. COMMAND REFERENCES - 15. Command References
III-292
Personal488 User’s Manual, Rev. 3.0
EXAMPLES
PRINT#1,"EOL DMM CR LF"
Set both input and output terminators to
carriage-return line-feed.
PRINT#1,"EOLTIMER OUT CR LF"
Set output terminator to CR LF.
PRINT#1,"EOLTIMER IN CR"
Set input terminator to CR only.
PRINT#1,"EOL DVM $0"
Set both terminators to an ASCII NULL.
PRINT#1,"EOL WAVE IN NONE"
Configure for no input terminator.
The
EOL
command sets the end-of-line terminators for input to the user’s program, output to Driver488,
or both. All output to Driver488, except
OUTPUT #count
, must be terminated by the
EOL
output
terminator. All input to the user’s program, except
ENTER #count
, is terminated by the
EOL
input
terminator. The default terminators for both input and output are set by
INSTALL
and are normally
CR LF
, which is appropriate for most languages.
ERROR
SYNTAX
ERROR {ON|OFF}
RESPONSE
None
MODE
Any
BUS STATES
None
SEE ALSO
STATUS; OnEvent, GetError, GetErrorList (Sub-Chapter 15B)
EXAMPLES
PRINT#1,"ERROR OFF"
Disable on-screen error message display.
PRINT#1,"ERROR ON"
Re-enable error message display.
The
ERROR
command enables or disables automatic on-screen display of Driver488 error messages.
ERROR ON
enables error message display, and
ERROR OFF
disables it.
ERROR ON
is the default
condition.
FILL
SYNTAX
FILL [name] {OFF|ERROR|CR|LF|$char|’X}
name
is the name of an external device. If name is not specified, then
EOL
acts on
the I/O adapter
OFF
prevents response if none is available.
ERROR
enables
SEQUENCE - NO DATA AVAILABLE
errors.
CR, LF, $char,
or
‘X
specify the character with which to “fill” the response.
RESPONSE
None
MODE
Any
BUS STATES
None
SEE ALSO
ENTER, OUTPUT, EOL
EXAMPLES
PRINT#1,"FILL OFF"
Do not detect NO DATA AVAILABLE errors. Do not
return fill characters.
INT#1,"FILL ERROR"
Detect NO DATA AVAILABLE errors.Do not return
fill characters.
PRINT#1,"FILL $000"
Do not detect NO DATA AVAILABLE errors. Fill
requests with nulls.
The
FILL
command controls the response of Driver488 to a request for data when none is available.
This type of request can occur in three ways: (1) a program error, such as a missing
ENTER
command,
results in a request for a response without first setting up Driver488 to provide that response; (2) the
I/O procedures supplied with the user’s programming language request more data than is actually
available; or (3) the
OPEN
command for input from Driver488 tries to read one character from
Driver488 to confirm that data is available even before any commands have been issued.
When such a request occurs, Driver488 can respond in three ways: (1) it can respond to the calling
routine that no data is available, (2) it can immediately signal an error, or (3) it can satisfy the request
by returning some specified character repeated as many times as necessary. The
FILL
command