HTBasic Help
×
Menu
Index

Devices

HP BASIC accesses devices through interface and device select codes. The same is true of HTBasic. However, Windows also allows access to devices as if they were files. Windows gives special names to devices, and when used in the place of a filename, access a device instead of a file. These names are called DOS Device Names and are typically: CON, AUX, COM1, COM2, PRN, LPT1, LPT2, and NUL. Often, data acquisition hardware for the PC comes with a device driver. To access such a data acquisition board, treat it as you would a file and use ASSIGN, OUTPUT, and ENTER.