Agilent Technologies U2300A Series Betriebsanleitung

Agilent Technologies
Agilent U2300A Series
Multifunction USB Data
Acquisition
Programming Guide

II U2300A Series USB DAQ Programming Guide
Notices
© Agilent Technologies, Inc., 2006, 2008
No part of this manual may be reproduced in
any form or by any means (including elec-
tronic storage and retrieval or translation
into a foreign language) without prior agree-
ment and written consent from Agilent
Technologies, Inc. as governed by United
States and international copyright laws.
Manual Part Number
U2351-90202
Edition
Third Edition, March 15, 2008
Printed in Malaysia
Agilent Technologies, Inc.
Bayan Lepas Free Industrial Zone,
11900 Penang, Malaysia
Warranty
The material contained in this docu-
ment is provided “as is,” and is sub-
ject to being changed, without notice,
in future editions. Further, to the max-
imum extent permitted by applicable
law, Agilent disclaims all warranties,
either express or implied, with regard
to this manual and any information
contained herein, including but not
limited to the implied warranties of
merchantability and fitness for a par-
ticular purpose. Agilent shall not be
liable for errors or for incidental or
consequential damages in connec-
tion with the furnishing, use, or per-
formance of this document or of any
information contained herein. Should
Agilent and the user have a separate
written agreement with warranty
terms covering the material in this
document that conflict with these
terms, the warranty terms in the sep-
arate agreement shall control.
Technology Licenses
The hardware and/or software described in
this document are furnished under a license
and may be used or copied only in accor-
dance with the terms of such license.
Restricted Rights Legend
U.S. Government Restricted Rights. Soft-
ware and technical data rights granted to
the federal government include only those
rights customarily provided to end user cus-
tomers. Agilent provides this customary
commercial license in Software and techni-
cal data pursuant to FAR 12.211 (Technical
Data) and 12.212 (Computer Software) and,
for the Department of Defense, DFARS
252.227-7015 (Technical Data - Commercial
Items) and DFARS 227.7202-3 (Rights in
Commercial Computer Software or Com-
puter Software Documentation).
Safety Notices
CAUTION
A CAUTION notice denotes a haz-
ard. It calls attention to an operat-
ing procedure, practice, or the like
that, if not correctly performed or
adhered to, could result in damage
to the product or loss of important
data. Do not proceed beyond a
CAUTION notice until the indicated
conditions are fully understood and
met.
WARNING
A WARNING notice denotes a
hazard. It calls attention to an
operating procedure, practice, or
the like that, if not correctly per-
formed or adhered to, could result
in personal injury or death. Do not
proceed beyond a WARNING
notice until the indicated condi-
tions are fully understood and
met.

U2300A Series USB DAQ Programming Guide III
Content
1 Introduction to Programming 1
Syntax Conventions 3
Command Separators 4
Using the MIN and MAX Parameters 4
Querying Parameter Settings 5
SCPI Command Terminators 5
IEEE-488.2 Common Commands 5
SCPI Parameter Types 6
Numeric Parameters 6
Discrete Parameters 6
Boolean Parameters 7
ASCII String Parameters 7
Channel List Parameters 7
Using Device Clear 9
2 ACQuire Subsystem 11
ACQuire:SRATe 12
ACQuire:POINts 13
ACQuire:BURSt 14
3APPLySubsystem15
APPLy? 16
APPLy:SINusoid 17
APPLy:SQUare 18
APPLy:SAWTooth 19
APPLy:TRIangle 20
APPLy:NOISe 21
APPLy:USER 22

IV U2300A Series USB DAQ Programming Guide
Contents
4 CALibration Subsystem 23
CALibration:BEGin 24
5CONFigureSubsystem25
CONFigure Subsystem Introduction 26
CONFigure:DIGital:DIRection 27
CONFigure:TIMEbase:SOURce 28
CONFigure:TIMEbase:ECLocK 29
CONFigure:SSI 30
6 IEEE-488 Common Command 33
*CLS 34
*ESE 35
*ESR? 38
*IDN? 39
*OPC? 40
*RCL 41
*RST 42
*SAV 43
*SRE 46
*STB? 48
*TST? 50
*WAI 51
7 MEASure Subsystem 53
MEASure[:VOLTage][:DC]? 54
MEASure:COUNter:DATA? 55
MEASure:COUNter:FREQuency? 56
MEASure:COUNter:PERiod? 57
MEASure:COUNter:PWIDth? 58
MEASure:COUNter:TOTalize? 59
MEASure:DIGital? 60
MEASure:DIGital:BIT? 61

Contents
U2300A Series USB DAQ Programming Guide V
8 OUTPut Subsystem 63
OUTPut 64
OUTPut:WAVeform:ITERate 65
OUTPut:WAVeform:SRATe 66
OUTPut:WAVeform:FREQuency 67
OUTPut:TRIGger:SOURce 68
OUTPut:TRIGger:TYPe 69
OUTPut:TRIGger:DCouNT 70
OUTPut:TRIGger:ATRiGger:SOURce 71
OUTPut:TRIGger:ATRiGger:HTHReshold 72
OUTPut:TRIGger:ATRiGger:LTHReshold 73
OUTPut:TRIGger:ATRiGger:CONDition 74
OUTPut:DTRiGger:POLarity 75
9 Root Commands 77
DIGitize 78
RUN 79
STOP 80
MODel? 81
SERial? 82
DATA[:USER] 83
10 ROUTe Subsystem 85
ROUTe:SCAN 86
ROUTe:CHANnel:RANGe 88
ROUTe:CHANnel:POLarity 90
ROUTe:CHANnel:STYPe 92
ROUTe:CHANnel:RSouRCe 94
ROUTe:CHANnel:RVOLtage 95
ROUTe:ENABle 97
11 SENSe Subsystem 99
[SENSe:]VOLTage:RANGe 100
[SENSe:]VOLTage:POLarity 102

VI U2300A Series USB DAQ Programming Guide
Contents
[SENSe:]VOLTage:STYPe 104
[SENSe:]COUNter:FUNCtion 106
[SENSe:]COUNter:ABORt 108
[SENSe:]COUNter:GATE:POLarity 109
[SENSe:]COUNter:GATE:SOURce 111
[SENSe:]COUNter:GATE:CONTrol 112
[SENSe:]COUNter:CLocK:INTernal? 113
[SENSe:]COUNter:CLocK:EXTernal? 114
[SENSe:]COUNter:CLocK:POLarity 115
[SENSe:]COUNter:CLocK:SOURce 116
[SENSe:]COUNter:TOTalize:IVALue 117
[SENSe:]COUNter:TOTalize:INITiate 118
[SENSe:]COUNter:TOTalize:CLEar 119
[SENSe:]COUNter:TOTalize:UDOWn:SOURce 120
[SENSe:]COUNter:TOTalize:UDOWn:DIRection 121
12 SOURce Subsystem 123
SOURce:VOLTage[:LEVel] 124
SOURce:VOLTage:POLarity 125
SOURce:VOLTage:RSouRCe 126
SOURce:VOLTage:RVOLtage 127
SOURce:DIGital:DATA 128
SOURce:DIGital:DATA:BIT 130
SOURce:COUNter:OUTPut:POLarity 132
13 SYSTem Subsystem 133
SYSTem:CDEScription? 134
SYSTem:ERRor? 135
14 TRIGger Subsystem 137
TRIGger:SOURce 138
TRIGger:TYPe 139
TRIGger:DCouNT 140
TRIGger:ATRiGger:SOURce 141

VIII U2300A Series USB DAQ Programming Guide
Contents

1
Agilent U2300A Series Multifunction USB DAQ
Programming Guide
Agilent Technologies
1
Introduction to Programming
Introduction to the SCPI Language 2
Syntax Conventions 3
Command Separators 4
Using the MIN and MAX Parameters 4
Querying Parameter Settings 5
SCPI Command Terminators 5
IEEE-488.2 Common Commands 5
SCPI Parameter Types 6
Numeric Parameters 6
Discrete Parameters 6
Boolean Parameters 7
ASCII String Parameters 7
Channel List Parameters 7
Using Device Clear 9
This chapter provides introduction to remote programming of a USB DAQ device with the
SCPI programming language.

1 Introduction to Programming
2 U2300A Series USB DAQ Programming Guide
Introduction to the SCPI Language
SCPI (Standard Commands for Programmable Instruments) is an
ASCII- based instrument command language designed for test and
measurement instruments. SCPI commands are based on a hierarchical
structure, also known as a tree system. In this system, associated
commands are grouped together under a common node or root, thus
forming subsystems. A portion of the SENSe subsystem is shown below to
illustrate the tree system.
SENSe:
VOLTage:
DC:RANGe {<range>|MIN|MAX}[,(@<ch_list>)]
DC:RANGe? [(@<ch_list>)|MIN|MAX}]
RESistance:
OCOMpensated {OFF|0|ON|1}[,(@<ch_list>)]
OCOMpensated? [(@<ch_list>)]
TEMPerature:
RJUNction? [(@<ch_list>)]
SENSe is the root keyword of the command, VOLTage, RESistance, and
TEMPerature are second- level keywords, and DC, OCOMpensated,and
RJUNction are third- level keywords. A colon (:) separates a command
keyword from a lower- level keyword.
Andere Handbücher für U2300A Series
2
Dieses Handbuch passt für folgende Modelle
7
Inhaltsverzeichnis
Andere Agilent Technologies Datenlogger Handbücher






















