|
|
|
|
|
Serial and parallel port functions
| | sClose | Closes the specified serial port, parallel port or infrared port. | sEndEvent | Disables the detection of an event on a serial port. | sEscape | Runs different functions that directly affect the bits of serial port, parallel port or infrared port, independently of the communication protocol. | sEvent | Branches an event on a serial port. | sInEntryQueue | Retrieves the number of pending bytes in the input buffer of a specified serial port or infrared port. | sInExitQueue | Retrieves the number of bytes waiting to be transferred in the output buffer of the specified serial port or parallel port. | sListPort | Returns the list of serial and parallel ports on the computer. | sOpen | Opens and initializes:- a serial port.
- a parallel port.
- an infrared port.
| sParameter | Defines or modifies the parameters for configuring the specified serial port, parallel port or infrared port. | sRead | Reads a character string in the entry buffer of the specified serial port. | sWrite | Writes a character string to the output buffer of the specified serial port, parallel port or infrared port. |
Other linked functions:
| | sComputeCrc16 | Checks a character string before and after transmission between WINDEV applications and WEBDEVsites. | sComputeCrc32 | Calculates the Cyclical Redundancy Check (CRC) of buffer. |
Related Examples:
|
Unit examples (WINDEV): Direct print
[ + ] Direct print on a dot-matrix printer with the WLanguage functions. The following topics are presented in this example: 1/ the functions for managing the communication ports 2/ sending sequences to a printer. This example powered by WINDEV is used to directly print on the dot-matrix printer connected to the parallel port of your choice. This example is using the WLanguage "sWrite" function. This feature is very useful for the applications exploiting cash registers. This example is not suited for a laser printer ; in this case, we recommend that you use the report editor of WINDEV.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|