Online Development Notebook > Index > ODN > USBm DLL Programming > DLL Commands > SetReadTimeout

SetReadTimeout


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 Example

-TBD-


Hardware:  U401 USB Interface    U421 USB Interface
Programming:  USBm DLL Programming    Download Files
Application Notes:  U4x1 Application Notes    Misc Applications and Information    FAQ