beautypg.com

Ifstreamreceive, Ifserialcontrol – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 301

background image

293

Flush()


The ifStreamReceive interface provides the following:

SetLineEventPort(port As Object) As Void

SetByteEventPort(port As Object) As Void

SetReceiveEol(a As String)

SetMatcher(matcher As Object) As Boolean: Instructs the stream to use the specified matcher. This
object returns True if successful. Pass Invalid to this method to stop using the specified matcher.


The ifSerialControl interface provides the following:

SetBaudRate(baud_rate As Integer) As Boolean: Sets the baud rate of the device. The supported baud
rates are as follows: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, 19200, 38400, 57600,
115200, 230400.

SetMode(mode As String) As Boolean: Sets the serial mode in "8N1" syntax. The first character is the
number of data bits. It can be either 5, 6, 7, or 8. The second number is the parity. It can be "N"one, "O"dd, or
"E"ven. The third is the number of stop bits. It can be 1 or 2.

SetEcho(enable As Boolean) As Boolean: Enables or disables serial echo. It returns True on success and
False on failure.

SetEol(a As String)

SetInverted(inverted As Boolean) As Boolean: Inverts the signals on the player serial port. This allows
the player to communicate with most PCs that use -12v to 12v signaling. Passing True to the method enables
inversion, whereas passing False disables it.

SendBreak(duration_in_ms As Integer) as Boolean: Sends a serial break or sets the serial break
condition. This method returns True upon success and False upon failure.

a.

duration_in_ms = -1: Sends a continuous break.

b.

duration_in_ms = 0: Clears the break state.