beautypg.com

O - output format, Tput format…… 75 – Measurement Computing DAC488 v.1 User Manual

Page 81

background image

DAC488 User’s Manual

DAC488 Commands 75

O - Output Format

TYPE

System Command

SYNTAX

On

Where

n = 0, 1

or

2

.

O0

(Default) Sets output format to volts in

±

10.0000 (fixed).

O1

Sets output format to volts in decimal bits.

O2

Sets output format to volts in hexadecimal bits.

O?

Returns current output format selected.

DESCRIPTION

The Output Format command selects the output format that the DAC488 uses when sending a voltage value to the
controller. The available output formats are: 0 to

±

10.0000 volts (fixed point), 0 to

±

4000 (decimal bits), or 0 to $0FFF

(positive hexadecimal values) and $F001 to $FFFF (negative hexadecimal values). When using the hexadecimal
format, negative voltages are specified using two's compliment form.

The bit resolution is: 250 µV/bit, 1.25 mV/bit and 2.5mV/bit for the

±

1 volt,

±

5 volt and

±

10 volt ranges respectively.

EXAMPLE 1: Volts in

±±±±

10.0000 (fixed).

PRINT#1,"CLEAR09"

Line 1: Reset the DAC488.

PRINT#1,"OUTPUT09;C0 P1 A0 R2 X"

Line 2: Select Direct Control mode, Port 1, disable autoranging,

select

±

5 volt range.

PRINT#1,"OUTPUT09;O0 V4 X"

Line 3: Select output format in

±

10.0000 (fixed), output 4 volts.

PRINT#1,"OUTPUT09;V?"

Line 4: Request the present voltage value.

PRINT#1,"ENTER09"

INPUT#2,A$

PRINT A$

Line 7: Display shows: V+04.00000.

EXAMPLE 2: Volts in Decimal Bits.

PRINT#1,"OUTPUT09;O1"

Line 1: Set output format to decimal bits.

PRINT#1,"OUTPUT09;V?"

Line 2: Request the present voltage value.

PRINT#1,"ENTER09"

INPUT#2,A$

PRINT A$

Line 5: Display shows: V#+03200 (3200 x 1.25 mV = 4 V).

EXAMPLE 3: Volts in Hexadecimal Bits.

PRINT#1,"OUTPUT09;O2X"

Line 1: Set output format in hexadecimal bits.

PRINT#1,"OUTPUT09;V?"

Line 2: Request the present voltage value.

PRINT#1,"ENTER09"

INPUT#2,A$

PRINT A$

Line 5: Display shows: V#$0C80 ($C80 = 3200).

This manual is related to the following products: