![]() ![]() |
|
OPENSERSerial IO to the com ports on NT and to device files on Unix can be achieved using the sequential file statements. In addition certain control operations can be performed using the IOCTL function. Serial IO can be handled via the OPENSEQ statement however the OPENSER statement has also been provided.
COMMAND SYNTAXOPENSER Path,DevInfo| PIPE TO FileVar THEN | ELSE Statements
SYNTAX ELEMENTSPath is the pathname of the required device. DevInfo consists of the following:
PIPE specifies the file is to be opened to a PIPE for reading.
NOTESThe PIPE functionality allows a process to open a PIPE, once opened then the process can execute a command via the WRITESEQ/SEND statement and then received the result back via the GET/READSEQ statements.
EXAMPLE
|