264
Platforms
©2000-2008 Tibbo Technology Inc.
.Send Method
Function:
For the selected serial port (selection is made through
) commits (allows sending) the data that was
previously saved into the TX buffer using the
method.
Syntax:
ser.send
Returns:
---
See Also:
Details
You can monitor the sending progress by checking the
property or
using the
event.
.Setdata Method
Function:
For the selected serial port (selection is made through
) adds the data passed in the txdata argument
to the contents of the TX buffer.
Syntax:
ser.setdata(byref txdata as string)
Returns:
---
See Also:
Three Modes of the Serial Port
,
,
,
,
Part
Description
txdata
The data to send.
Details
mode (
= 0- PL_SER_MODE_UART) the data is added
"as is". For
and
mode (ser.mode= 1-
PL_SER_MODE_WIEGAND and ser.mode= 2- PL_SER_MODE_CLOCKDATA) each
data character represents one data bit and only bit0 (least significant bit) of each
character is relevant (therefore, adding "0101" will result in the 0101 sequence of
data bits).
If the buffer doesn't have enough space to accommodate the data being added
then this data will be truncated. Newly saved data is not sent out immediately.
This only happens after the
method is used to commit the data. This
allows your application to prepare large amounts of data before sending it out.
Total amount of newly added (uncommitted) data in the buffer can be checked
through the
setting.
257
264
236
267
257
258
257
225
243
267
266
226
255
229
232
264
256