Reference Manual - Table of Contents

Execution Control
Forms and Windows
Controls
Menus
System and Desktop
Graphic Drawing Commands

Animation
QuickTime Movies
Speech
Sound
File I/O
Printing
Serial Ports

Math Functions
String Functions
Date and Time
Memory Buffers
Error Handling
Console Text Window

Events

Direct Memory Access
Direct Mouse Access
Direct Keyboard Access
Code Resource Modules

A - Runtime Error Messages
B - Compiler Error Messages

Serial Ports

Command Summary:
SerialOpen port#, baudrate, parity, databits, stopbits
SerialClose port#
SerWrite port# , text$
SerSet port#, baudrate, parity, databits, stopbits

Function Summary:
var = SerialCheck( port# )
var = SerialAvail ( port# )
var$ = SerRead ( port# )

 

SerOpen port#, baudrate, parity, databits, stopbits

This command opens a serial port for usage and sets the data transmission parameters. You should you this command before accessing data with a serial port.

SerClose port#

This command closes a serial port.

SerWrite port# , text$

This command writes the characters in a string out to the specified serial port.

SerSet port#, baudrate, parity, databits, stopbits

This command sets the transmission parameters for the specified serial port.

 

var = SerCheck( port# )

This function returns a numeric value indicating if a serial port is available to open. A return value of 0 means the port is not available, a return value of 1 means the port is available to use.

var = SerAvail( port# )

This function returns a numeric value representing the number of characters (or bytes) that are available to be read from specified serial port. Use the SerRead function to read data from the serial port.

var$ = SerRead( port#, numOfChars )

This function returns a string containing data read from an open serial port.