beautypg.com

Data types – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 205

background image

9K. Command Descriptions

II. SOFTWARE GUIDES - 9. Driver488/SUB

II-190

Personal488 User’s Manual, Rev. 3.0

Examples

The Examples section of the command description format lists one or more short examples of the
command’s normal use. These and additional programs can be found in language or example
subdirectories of the Driver488 installation directory.

Data Types

Driver488 uses a number of data bit masks, data constants, and data structures. The following
constructions have been defined for the C language. Other languages are shown in their respective
language sections of this manual.

Arm Condition Bit Masks

Defined bit masks used in the Arm and Disarm functions:

acError

acChange

acIdle

acSRQ

acByteIn

acClear

acListen

acTalk

acByteOut

acController

acPeripheral

acTrigger

Control Line Bit Masks

The following

Control Line

functions for IEEE 488 devices:

clEOI

clSRQ

clNRFD

clNDAC

clDAV

clATN

return the following defined bit masks, as shown in the table:

The following

Control Line

functions for serial devices:

clDSR

clRI

clDCD

clCTS

clDTR

clRTS

return the following defined bit masks, as shown in the table:

For more information on the

Control Line

command, turn to “Section III: Command References” in

this manual.

Terminator Structures

Structure used by

Enter

,

Output

, and

Term

:

typedef struct {

bool EOI;

/* Do we care about or send EOI?*/

int nChar;

/* 0,1, or 2 characters to match*/

bool EightBits;

/* 7 (False) or 8 (True) bit terminator match*/

int termChar [2];

/* The actual terminating character*/

} TermT;

Control Line Bit Masks

Data Transfer (DIO) Lines

8

7

6

5

4

3

2

1

Hex Value (QuickBASIC)

&H80

&H40

&H20

&H10

&H08

&H04

&H02

&H01

Decimal Value

128

64

32

16

8

4

2

1

Bit Mask

EOI

SRQ

NRFD

NDAC

DAV

ATN

0

0

Control Line Bit Masks

Data Transfer (DIO) Lines

8

7

6

5

4

3

2

1

Hex Value (QuickBASIC)

&H80

&H40

&H20

&H10

&H08

&H04

&H02

&H01

Decimal Value

128

64

32

16

8

4

2

1

Bit Mask

0

0

DSR

RI

DCD

CTS

DTR

RTS