Setting Timeout Floor Values - Keysight 82357B User Manual

Usb/gpib interface
Hide thumbs Also See for 82357B:
Table of Contents

Advertisement

2
Using the Keysight 82357B

Setting timeout floor values

The 82357B has a default timeout "floor" value that is an internal requirement to
ensure reliable USB communication. The 82357B will not allow timeouts less than
the floor value. (By default, VISA/SICL timeouts are set to infinite time).
To programmatically determine the timeout floor, you can set the timeout to a
very small value, such as 1 ms, then query for the actual timeout floor value. VISA
and SICL examples are as follows:
Example: Query Timeout Floor (VISA)
tval = 1;
err = viSetAttribute(id, VI_ATTR_TMO_VALUE, tval_in);
...
err = viGetAttribute(id, VI_ATTR_TMO_VALUE, &tval_out);
...
printf("Set timeout to [%d], actual timeout that resulted
[%d]\n", tval_in, tval_out );
Example: Query Timeout Floor (SICL)
tval = 1;
err = itimeout(id, tval_in);
...
err = igettimeout(id, &tval_out);
...
printf("Set timeout to [%d], actual timeout that resulted
[%d]\n",tval_in, tval_out );
38
// Try to set timeout to 1 msec
// Try to set timeout to 1 msec
Keysight 82357B User's Guide

Advertisement

Table of Contents
loading

Table of Contents