void SetTimeouts(string, int, int)

Sets the number of milliseconds that KioWare will wait to attempt the next read or write operation.

Security

Trust Level Required: Full Trust

Parameters

Name Description
devName string
The name of the device in the Configuration Tool.
readTimeoutMs (Optional) int
The number of milliseconds that KioWare will wait for data to be read. This will return immediatley if 0 is used and there is no buffered data present. Defaults to 20.
writeTimeoutMs (Optional) int
The number of milliseconds that KioWare will wait for data to be written. Defaults to 0.

Remarks

KioWare will attempt to read until the number set in a SetReadDebounceCnt call.

The Configuration Tool will allow the user to provide a name for the device and provide a description. This name will be used for all communication between KioWare and the device. It is mandatory to use the identical string when calling into this method.

Examples


//The name of the device will be user defined in the Configuration Tool.
var devName = "device";
if(KioRawSerialDevice.IsOpen(devName))	
	KioRawSerialDevice.SetTimeouts(devName, 30, 0);
    

Requirements

KioWare for Windows version 8.11 or greater.