Rice Lake iRite IDE User Manual

Page 55

Advertising
background image

920i

Programming Reference - API Reference

51

SysCode values returned:

SysInvalidPort

The port number specified for

P

is not valid.

SysInvalidRequest

The port specified for

P

is not configured for streaming.

SysOK

The function completed successfully.

Example:
StartStreaming (1);

StopStreaming

Stops data streaming for the port number specified by P.

Method Signature:
function StopStreaming (P : Integer) : SysCode;

Parameters:

[in]

P

Serial port number

SysCode values returned:

SysInvalidPort

The port number specified for

P

is not valid.

SysInvalidRequest

The port specified for

P

is not configured for streaming.

SysOK

The function completed successfully.

Example:
StopStreaming (1);

Write

Writes the text specified in the <arg-list> to the port specified by P. A subsequent Write or WriteLn
operation will begin where this Write operation ends; a carriage return is not included at the end of the data sent
to the port.

Note

This procedure cannot be used to send null characters. Use the SendChr or SendNull procedure to send
null characters.

Method Signature:
procedure Write (P : Integer; <arg-list>);

Parameters:

[in]

P

Serial port number

[in]

arg_list

Print text

Example:
Write (Port1, "This is a test.");

WriteLn

Writes the text specified in the <arg-list> to the port specified by P, followed by a carriage return and a line
feed (CR/LF). The line feed (LF) can be suppressed by setting the indicator TERMIN parameter for the specified
port to

CR

in the SERIAL menu configuration. A subsequent Write or WriteLn operation begins on the next

line.

Note

This procedure cannot be used to send null characters. Use the SendChr or SendNull procedure to send
null characters.

Method Signature:

procedure Write (P : Integer; <arg-list>);

Parameters:

[in]

P

Serial port number

[in]

arg_list

Print text

Example:

WriteLn (Port1, "This is another test.");

Advertising
This manual is related to the following products: