OPEN "C"Statement
Syntax
RevisedMarch 2, 2001 (Release 5) DescriptionThis statement opens a serial communications port (the modem port or the printer port) so that your program can write to or read from a serial device. The optimal values for the various parameters depend on the device and the desired communications protocol; see the device's manual for more information. The parameters are interpreted as follows: ¥ ¥ ¥ ¥ ¥ ¥ Reading Data There are basically three ways to check whether there is any data available in the buffer:
Writing Data FB Runtime Globals
After any communications port has been opened or after you make your own call to the runtime To search all available communication ports use the folling lines. This is especially important if a USB/serial port adapter is inserted after the program has started. <code>gFBSerialportCount% = 0<br> //<spacer type="horizontal" size="58">This is for OS X<br> <b>LONG IF</b> SYSTEM(_sysVers) => 1000<br> gOSXSerialInited = _false<br> <b>END IF</b></code> Example: See AlsoCLOSE; HANDSHAKE; LOC; LOF; INPUT#; READ#; READ FILE; READ FIELD; INKEY$; PRINT#; WRITE#; WRITE FILE; WRITE FIELD |