www.vtiinstruments.com
EX10xxA Function Calls 233
vtex10xxA_set_communication_timeout
FUNCTION PROTOTYPE
ViStatus _VI_FUNC vtex10xxA_set_communication_timeout (ViSession vi, ViInt32 timeout);
FUNCTION PARAMETERS
vi = contains a session handle to the instrument. This handle is obtained by the function and remains valid until the
session is closed.
SETS THE TIMEOUT VALUE (IN MILLISECONDS). INDICATING HOW LONG TO WAIT FOR
INSTRUMENT TO RESPOND. IN HIGHER LATENCY NETWORK, IT IS BETTER NOT TO REDUCE
DEFAULT TIMEOUT VALUE. VALID RETURN VALUES: 1000 THROUGH (231-1). DEFAULT VALUE:
25000 (25 SECONDS).
DATA ITEM RESET VALUE
Reset will not change value of this parameter.
DESCRIPTION
This function sets the timeout value when a LAN communication error occurs. It is recommended for advanced
users only.
EXAMPLE
//sets the LAN communication timeout to 10 seconds, if a LAN communication error occurs
vtex10xxA_set_communication_timeout(vi, 10000);