ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Serial/Parallel Ports functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
sCloseCloses the specified serial port, parallel port or infrared port.
sEndEventDisables the detection of an event on a serial port.
sEscapeRuns different functions that directly affect the bits of serial port, parallel port or infrared port, independently of the communication protocol.
sEventBranches an event on a serial port.
sInEntryQueueRetrieves the number of pending bytes in the input buffer of a specified serial port or infrared port.
sInExitQueueRetrieves the number of bytes waiting to be transferred in the output buffer of the specified serial port or parallel port.
sListPortReturns the list of serial and parallel ports on the computer.
sOpenOpens and initializes:
  • a serial port.
  • a parallel port.
  • an infrared port.
sParameterDefines or modifies the parameters for configuring the specified serial port, parallel port or infrared port.
sReadReads a character string in the entry buffer of the specified serial port.
sWriteWrites a character string to the output buffer of the specified serial port, parallel port or infrared port.
Other linked functions:
sComputeCrc16Checks a character string before and after transmission between WINDEV applications and WEBDEVsites.
sComputeCrc32Calculates the Cyclical Redundancy Check (CRC) of buffer.
Related Examples:
Direct print 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.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help