Format fn – Measurement Computing Digital488 User Manual

Page 41

Advertising
background image

Section 3 Command Descriptions

3.11

Format Fn

The Format command determines the method by which input and output data will

be described. Six data formats are available.

F0

ASCII Hexadecimal (4 bits per character)

F1

ASCII Character (4 bits per character )

F2

ASCII Binary (1 bit per character)

F3

ASCII Decimal (8 bits per number)

F4

Binary (each byte represents 8 bits)

F5

High Speed Binary (each byte represents 8 bits)

F0 Format- ASCII Hexadecimal

In the default F0 format, the data is described in ASCII hexadecimal, with each

character having a value from 0 thru 9 or A thru F. Each ASCII character describes 4
bits of data.

F0 Character Decimal Equiv F0 Character Decimal Equiv

0

0

8

8

1

1

9

9

2

2

A

10

3

3

B

11

4

4

C

12

5

5

D

13

6

6

E

14

7

7

F

15

Data received for output to the digital ports must be contained within a prefix (D)

and a suffix (Z). If the amount of data sent is less than the number of bits programmed as
outputs, the least-significant bits will contain the data sent and the most-significant bits
will be cleared to logic zero. If the data sent is greater than the number of bits
programmed for output or selected by the Pn command, the Digital488 will generate a
conflict error and ignore the entire command string. The Data Strobe output is pulse for
approximately 50 microseconds after new data is output on the selected port(s).

Advertising
This manual is related to the following products: