Skip to Main Content Skip to Search
Product Documentation

CompareBits - Specify number of bits that must match EOS character to complete read operation, or to assert EOI line

Description

You can configure CompareBits to be 7 or 8. If CompareBits is 7, the read operation completes when a byte that matches the low seven bits of the End-Of-String (EOS) character is received. The End Or Identify (EOI) line is asserted when a byte that matches the low seven bits of the EOS character is written. If CompareBits is 8, the read operation completes when a byte that matches all eight bits of the EOS character is received. The EOI line is asserted when a byte that matches all eight bits of the EOS character is written.

You can specify the EOS character with the EOSCharCode property. You can specify when the EOS character is used (read operation, write operation, or both) with the EOSMode property.

Characteristics

Usage

GPIB

Read only

Never

Data type

Double

Values

{8}

Compare all eight EOS bits.

7

Compare the lower seven EOS bits.

See Also

Properties

EOSCharCode, EOSMode

  


Recommended Products

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

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