OPENCOMM$
|
Syntax: |
OPENCOMM$(<Interface>,<Parameter>,<Size
Receiving Buffer>)
|
||||||
|
|
|
||||||
|
Meaning: |
Opens
a serial port. OPENCOMM$ returns a string that contains,
separated by semi-colons, the error code and the file number of the opened
interface. The
error code is 0 if the interface could be opened successfully, otherwise –1. The file number is needed for the commands READCOMM$, WRITECOMM$ and CLOSECOMM. |
||||||
|
Parameter: |
|
||||||
|
Sample: |
H$ = OPENCOMM$("COM1","9600,n,8,1",1024) RET% = VAL(SUBSTR$(H$,";",1)) FILENR% = VAL(SUBSTR$(H$,";",2)) IF RET% <> 0 THEN ... Error ... ENDIF |
||||||
|
See also: |
|