OpenSerial (Statement)
openserial open_file_number, port_name
openserial open_file_number, port_name, baud_rate
openserial open_file_number, port_name, baud_rate, data_bits
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits, parity
openserial open_file_number, port_name, baud_rate, data_bits, stop_bits, parity, flow_control
Description
This statement opens a serial port on your computer for inoput and output. It uses the same file numbering as open and openb and most of the file control statements can be used to get and send data to a serial port.
Baud Rates
300 |
1200 |
9600 | DEFAULT |
19200 |
38400 |
Others are possible |
Data Bits
Stop Bits
Parity
0 | None | DEFAULT |
1 | Odd |
2 | Even |
3 | Space |
4 | Mark |
Flow Control
0 | None | DEFAULT |
1 | Hardware |
2 | Software |
Note
BASIC256 may have up to 8 files open at a single time. The files are numbered from 0 to 7. Opening a file to a number while another is already open to that number will close the open file.
See Also
Changedir, Close, Currentdir, Dir, Eof, Exists, Freefile, Kill, mkdir, Open, Openb, OpenFileDialog, OpenSerial, Read, Readbyte, Readline, Reset, rmdir, SaveFileDialog, Seek, Size, Write, Writebyte, Writeline
History