USBmicro

Your source for USB electrical device interface products.

  • Home
  • Services
    • Design
    • Contact USBmicro
  • Where to buy…
You are here: Home / Documentation / DLL Commands / SetReadTimeout

SetReadTimeout

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.

Documentation

Open all | Close all
USBmicro Products
Ordering USBmicro Products
U401 USB Interface
U401 Specifications
U401 Connector Pin Out
U401 Capabilities
U421 USB Interface
U421 Specifications
U421 PCB Pin Out
U421 Capabilities
U451 USB Relay Interface
U451 Specifications
U451 PCB Pin Out
U4x1 Installation
U4xx Troubleshooting
Programming Overview
Dynamic Link Library Programming
Visual Basic Example
C#⁄.NET Information
RobotBASIC
MSVC++ Example
Delphi Interfacing
LabView Interfacing
Raw Device Programming
General VB Example
Linux Info
Mac OSX Info
DLL Commands
About
SetReadTimeout
Version
WriteDevice
ClearRecentError
CloseDevice
Copyright
DebugString
DeviceDID
DeviceFirmwareVer
DeviceMfr
DevicePID
DeviceProd
DeviceSer
DeviceValid
DeviceVID
FindDevices
NumberOfDevices
ReadDevice
RecentError
Device Commands
InitPorts (and variations)
WriteA
WriteB
WriteABit
WriteBBit
ReadA
ReadB
SetBit
ResetBit
DirectionA (and variations)
DirectionB (and variations)
StrobeWrite
StrobeWrite2
StrobeRead
StrobeRead2
StrobeWrites
StrobeReads
ReadLatches
InitLCD
LCDCmd
LCDData
InitSPI
SPIMaster
SPISlaveWrite
SPISlaveRead
Wire2Control
Wire2Data
Stepper
Reset1Wire
Write1Wire
Read1Wire
Write1WireBit
Read1WireBit
Download Files
Application Notes
App0: Command Test
App1: Output
App2: Input
App3: LCD
App4: SPI Output
App5: SimmSticks
App6: USB Digio
App7: Stepper Motor
App8: SPI ADC
App9: 1-Wire
AppX: OSX Interface
App11: Home Domination
App12: Large LED Display
App13: Magnetic Angle Sensor
App14: 2-Wire to PCF8574
App17: REALBasic OSX
Frequently Asked Questions