S Mode Functions
Chapter 5
GPIB-232CT User Manual
5-54
© National Instruments Corp.
If you want to change only the timeout value for serial polls, a
comma must precede the serial poll timeout value.
If you call
tmo
without an argument, the GPIB-232CT returns
a numeric string representing the current timeout settings. It
records the EARG error if you specify a time value outside the
range .00001 to 3600.
The assignment made by this function remains in effect until
you call
tmo
again, call
onl
, or turn off the GPIB-232CT.
See Also:
rsp
.
Examples:
1.
PRINT #1,"tmo 30"
'Set timeout for I/O
'operations to 30 seconds.
2.
PRINT #1,"tmo"
'Print current timeout
'settings.
response:
30,.1<CR><LF>
3.
PRINT #1,"tmo ,1"
'Set serial poll timeout
'for one second; leave I/O
'timeout unchanged.