Products & Services Solutions Academia Support User Community Company

Learn more about Data Acquisition Toolbox   

PortAddress - Indicate base address of parallel port

Description

The PC supports up to three parallel ports that are assigned the labels LPT1, LPT2, and LPT3. You can use any of these standard ports as long as they use the usual base addresses, which are (in hex) 378, 278, and 3BC, respectively.

Additional ports, or standard ports not assigned the usual base addresses, are not accessible by the toolbox. Note that most PCs that support MATLAB will include a single parallel printer port with base address 378 (LPT1).

Characteristics

Vendor

Parallel port

Usage

DIO, Common

Access

Read only

Data type

String

Read-only when running

Yes

Values

The value is automatically defined when the object is created.

Examples

Create a digital I/O object for parallel port LPT1 and return the PortAddress value.

dio = digitalio('parallel','LPT1');
get(dio,'PortAddress')

ans =
0x378

The returned value indicates that LPT1 uses the usual base address.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS