beautypg.com

Measure subsystem, Measure:digital:data n[:type] [:value – HP E1459A User Manual

Page 50

background image

HP E1459A SCPI Command Reference

49

MEASure Subsystem

The MEASure commands are used for the Isolated Digital Input part of the HP
E1459A. These commands return data corresponding to the current value of the
input signals. Refer to Chapter 2 for more examples of using the MEASure
Subsystem.

Syntax

MEASure:DIGital:DATA

n[:type][:VALue]?

page 49

:DIGital:DATA

n[:type]:BITm?

page 50

MEASure:DIGital:DATA

n[:type] [:VALue]?

Returns the current data for the specified Port n as a signed integer.

Parameters

Comments

For TYPE WORD, the data is returned as a signed 16 bit integer. Example

values returned include: +0, +1, +32767, -32768. Specify port as either
DATA0, DATA1, DATA2, or DATA3.

For TYPE LWORd, the data is returned as a signed 32 bit integer with Port 0 or

Port 2 in the least significant bytes. Specify port as DATA0 or DATA2.

Default is Port 0. :DATA is equivalent to :DATA0.

Example

MEAS:DIG:DATA 1:WORD:VAL?

Queries 16-bit data from Port 1

MEAS:DIG:DATA 0:LWORD:VAL?

Queries 32-bit word from Ports 0 and 1

Parameter Name

Parameter Type

Range of Values

Default

DATA

n

TYPE

Numeric

discrete

0,1, 2, 3 for type WORD; 0, 2 for LWORd

WORD (Ports 0, 1, 2, or 3)

LWORd (for Ports 0 or 2)

0

WORD

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com