Using the Agilent 82357B
2
82357B User’s Guide
25
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;
// Try to set timeout to 1 msec
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;
// Try to set timeout to 1
msec
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 );
Содержание 82357B
Страница 1: ...Agilent Technologies Agilent 82357B USB GPIB Interface User s Guide ...
Страница 28: ...16 82357B User s Guide 1 Installing the Agilent 82357B ...
Страница 50: ...38 82357B User s Guide 3 Troubleshooting the Agilent 82357B ...
Страница 56: ...44 82357B User s Guide 4 Product Specifications ...
Страница 58: ...46 82357B User s Guide Index ...