Set the timeout for the read operation
Description:
This is a USBm.dll function that sets the value for the read timeout.
Command Syntax:
true⁄false USBm_SetReadTimeout( time )
The USBm_SetReadTimeout function syntax has these parts:
Part | Description |
time | A sixteen-bit value of milliseconds. |
Remarks:
Note: USBm_SetReadTimeout always returns TRUE.
VB Declaration (USBmAPI.bas)
Public Declare Function USBm_SetReadTimeout _ Lib “USBm.dll” _ (ByVal timeout As Integer) _ As Integer |
VB Example
USBm_SetReadTimeout 3000 |
This code fragment shows that the read timeout has been set to three seconds.
C Prototype
int USBm_SetReadTimeout( unsigned int timeout ); |
C Example
RobotBASIC
usbm_SetReadTimeout(ne_Time)
Returns true if successful, false otherwise. This function sets the timeout for all the read commands. The value should be in milliseconds. The default is 1000 msecs = 1 sec.