cdholding image

comm64 home
comm64 download
comm64 forum
buy comm64

Introduction
Install Comm64
Why Not MsComm?

Properties
   .Break
   .CDHolding
   .CommEvent
   .CommPort
   .CTSHolding
   .DSRHolding
   .DTREnable
   .EOFEnable
   .Handshaking
   .InBufferCount
   .InBufferSize
   .Input
   .InputLen
   .NullDiscard
   .OutBufferCount
   .OutBufferSize
   .OutPut
   .ParityReplace
   .PortOpen
   .RThreshold
   .RTSEnable
   .Settings
   .STHreshold


Comm64 Properties
   .RxTimeout
   .TxTimeout

Comm64 Functions
   .readBytes
   .readString

   .writeBytes
   .writeString
   .PortExists

OnComm Event

Hardware/Cables etc
Loopback test plug

SThreshold

Sets or Retrieves the minimum number of bytes in the transmit buffer below which an OnComm event is raised.

Available at design time and runtime.

MSComm32 and Comm64 have the same behavior

         Syntax object.SThreshold = value
 
  object Name of the communications control.
  value A numeric expression indicating the SThreshold number of bytes
 
  Example object.SThreshold = 0 '// No OnComm events will be raised.
       
    object.SThreshold = n '// During transmission an OnComm event will be raised
'// when less than n bytes remain in the transmit buffer.
       
    n = object.SThreshold '// Retrieves the current setting/value
       

Remarks:

If this value is set to a value larger than zero then the control will raise an OnComm (evSend) event when the number of bytes remaining in the transmit buffer falls below that number.

When using event driven communications you can program your application to fill up the transmit buffer and then continue with other processing while the data is sent by the Comm64 component in the background. Comm64 will raise an OnComm (evSend) event to tell you when less than this many bytes remain in the transmit buffer - you would respond to this event by using the Output property to queue more data into the transmit buffer.

We'd recommend using only values of 0 or 1 which would simply prevent or allow the firing of OnComm evSend events.

 
 
Copyright (c) 2010 Axis Controls Ltd