Summary of Contents for Agilent Technologies U2300A Series
Page 1
Agilent U2300A Series Multifunction USB Data Acquisition Programming Guide Agilent Technologies...
Page 2
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). U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide Introduction to Programming Introduction to the SCPI Language Syntax Conventions Command Separators Using the MIN and MAX Parameters Querying Parameter Settings SCPI Command Terminators IEEE-488.2 Common Commands SCPI Parameter Types Numeric Parameters...
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. U2300A Series USB DAQ Programming Guide...
The brackets are not sent with the command string. If you do not specify a value for an optional parameter, the instrument chooses a default value. U2300A Series USB DAQ Programming Guide...
VOLTage:DC:RANGe {<range>|MIN|MAX}[,(@<ch_list>)] Instead of selecting a specific value for the <range> parameter, you can substitute MIN to set the range to its minimum value or MAX to set the range to its maximum value. U2300A Series USB DAQ Programming Guide...
The command keyword is separated from the first parameter by a blank space. Use a semicolon ( ; ) to separate multiple commands as shown below: *RST; *CLS; *ESE 32; *OPC? U2300A Series USB DAQ Programming Guide...
You can mix upper- and lower- case letters. Query responses will always return the short form in all upper- case letters. The following command requires discrete parameters for the temperature units: UNIT:TEMPerature {C|F|K}[,(@<ch_list>)] U2300A Series USB DAQ Programming Guide...
The channel list must be preceded with the "@" symbol and must be enclosed in parentheses. The following commands use a channel list (<ch_list>) parameter: U2300A Series USB DAQ Programming Guide...
Page 16
The following command will generate an error since the Analog Bus relays cannot be specified as the first or last channel in a range of channels (none of the channels will be closed). ROUTe:CLOSe (@1005:1911) !Generates an error U2300A Series USB DAQ Programming Guide...
• The ABORt command is the recommended method to terminate a N O T E measurement. • It is recommended that you allow for a two-second wait following a Device Clear to enable the instrument to process the clear operation. U2300A Series USB DAQ Programming Guide...
Page 18
Introduction to Programming U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide ACQuire Subsystem ACQuire:SRATe ACQuire:POINts ACQuire:BURSt This chapter elaborates the set of commands in ACQuire command subsystem. Agilent Technologies...
• For U2331A, the maximum sampling rate is 3 MHz if only one channel is enabled and 1 MHz or the <number of entries> for multiple channels. Query Returned Format <value> [Hz] See Also DIGitize U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <value> Numeric Maximum of 8 Msa Remarks <value> * <number of entries> is equivalent to eight mega points. Query Returned Format <value> See Also DIGitize U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String {0|1} Remarks For multiplexing cards only (U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A). Query Returned Format <mode> ::= {0|1} U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide APPLy Subsystem APPLy? APPLy:SINusoid APPLy:SQUare APPLy:SAWTooth APPLy:TRIangle APPLy:NOISe APPLy:USER This chapter explains how the APPLy command subsystem is configured to generate different waveforms. Agilent Technologies...
SAWT: Sawtooth wave function selected TRI: Triangle wave function selected NOIS: Noise function selected USER: User defined wave pattern selected <amplitude> ::= Peak voltage of output function <offset> ::= DC offset of output function U2300A Series USB DAQ Programming Guide...
<offset>: offset voltage [V] <ch_list> Numeric U2331A: 201 through 202 Remarks • Amplitude must be larger than zero. • Amplitude + Offset ≤ 10; Amplitude * (—1) + Offset ≥ —10. Query Returned Format <mode>, <amplitude>, <offset> U2300A Series USB DAQ Programming Guide...
<offset>: offset voltage [V] <ch_list> Numeric 201 through 202 Remarks • Amplitude must be larger than zero. • Amplitude + Offset ≤ 10; Amplitude * (—1) + Offset ≥ —10. Query Returned Format <mode>, <amplitude>, <offset> U2300A Series USB DAQ Programming Guide...
<offset>: offset voltage [V] <ch_list> Numeric U2331A: 201 through 202 Remarks • Amplitude must be larger than zero. • Amplitude + Offset ≤ 10; Amplitude * (—1) + Offset ≥ —10. Query Returned Format <mode>, <amplitude>, <offset> U2300A Series USB DAQ Programming Guide...
<offset>: offset voltage [V] <ch_list> Numeric U2331A: 201 through 202 Remarks • Amplitude must be larger than zero. • Amplitude + Offset ≤ 10; Amplitude * (—1) + Offset ≥ —10. Query Returned Format <mode>, <amplitude>, <offset> U2300A Series USB DAQ Programming Guide...
<offset>: offset voltage [V] <ch_list> Numeric 201 through 202 Remarks • Amplitude must be larger than zero. • Amplitude + Offset ≤ 10; Amplitude * (–1) + Offset ≥ –10. Query Returned Format <mode>, <amplitude>, <offset> U2300A Series USB DAQ Programming Guide...
Numeric 201 through 202 Remarks • The OUTPut command will return error if channel 201 and 202 is configured to user defined and pre- defined waveform patterns at the same time. See Also DATA[:USER] U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide CALibration Subsystem CALibration:BEGin This chapter explains the CALibration command subsystem that is used to carry out the calibration function on the U2300A Series multifunction USB DAQ devices. Agilent Technologies...
Remarks *OPC? Use the command to check if the calibration is completed. The calibration is complete if the returned value is "1". If the returned value is "0", the calibration is still in progress. U2300A Series USB DAQ Programming Guide...
This enables you to incrementally change the instrument's configuration from the default conditions. The CONFigure subsystem commands are as below: • CONFigure:DIGital:DIRection • CONFigure:TIMEbase:SOURce • CONFigure:TIMEbase:ExternalCLocK • CONFifure:SSI U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <direction> String {INPut|OUTPut} INPut <ch_list> Numeric Channel 501 through 504 Query Returned Format <direction> ::= {INPut|OUTPut} Example CONFigure:DIGital:DIRection INPut, (@501) CONFigure:DIGital:DIRection? (@501) //Expected returned string is INPut See Also MEASure:DIGital? MEASure:DIGital:BIT? U2300A Series USB DAQ Programming Guide...
INTernal: Internal clock as the base time INTernal EXTernal: External clock as the base time CCG: Clock based on U2781A modular instrument chassis Query Returned Format <mode> ::= {INTernal|EXTernal|CCG} Example CONFigure:TIMEbase:SOURce EXTernal CONFigure:TIMEbase:SOURce? //Expected returned string is EXTernal U2300A Series USB DAQ Programming Guide...
Item Type Range of Values Default Value <clock> Float 10 MHz to 48 MHz 10000 kHz Query Returned Format <clock> [kHz] Example CONFigure:TIMEbase:ECLocK 20000 //Set to external clock of 20 MHz See Also CONFigure:TIMEbase:SOURce U2300A Series USB DAQ Programming Guide...
• Once a module is configured as a slave (via CONFigure:SSI:SLAV), it becomes a listener and listens for triggering signals on the backplane of the U2781A chassis. To undo this listener behavior, a CONFigure:SSI:NONE command must be applied to the slave module. U2300A Series USB DAQ Programming Guide...
Page 39
CONFigure Subsystem Query Returned Format <mode> ::= {NONE|MAST|SLAV} See also: CONFigure:TIMEbase:SOURce TRIGger:SOURce OUTPut:TRIGger:SOURce U2300A Series USB DAQ Programming Guide...
Page 40
CONFigure Subsystem U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide IEEE-488 Common Command *CLS *ESE *ESR? *IDN? *OPC? *RCL *RST *SAV *SRE *STB? *TST? *WAI This chapter gives an introduction to the IEEE-488.2 common commands. It defines a set of common commands that perform functions such as reset, self-test and status operations.
This command is used to clear the event registers in all register groups. This command also clears the error queue. Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Example The following command clears the event register bits: *CLS U2300A Series USB DAQ Programming Guide...
For example, if bit 3 (decimal value = 8) and bit 7 (decimal value = 128) are enabled, the query command will return "+136". U2300A Series USB DAQ Programming Guide...
Page 44
The following command enables bit 4 (decimal value = 16) in the enable register. If an Execution Error occurs, this condition will be reported to the Status Byte Register (bit 5 will be set to high). U2300A Series USB DAQ Programming Guide...
Page 45
IEEE-488 Common Command *ESE 16 The following query returns which bits are enabled in the register. *ESE? Typical Response: +16 See Also *ESR? Figure 6-1 Status system diagram U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Example The following command reads the event register (bits 3 and 4 are set). *ESR? Typical Response: +24 Remarks Refer to Figure 6- 1, status system diagram for more information. See Also *ESE U2300A Series USB DAQ Programming Guide...
The command returns a string with the following format: Agilent Technologies, U2331A, <Serial Number>, A.YYYY.MM.DD YYYY = Year = Month = Date Example The following query returns the instrument's identification string. *IDN? Typical Response: Agilent Technologies, U2331A, TW12345678, A.2006.10.10 See Also SYSTem:CDEScription? U2300A Series USB DAQ Programming Guide...
*OPC? query will return a 0. In other words, a return value of 1 indicates that this calibration routine has been completed. See Also CALibration:BEGin SYSTem:ERRor? U2300A Series USB DAQ Programming Guide...
Once a state is stored, it remains until it is overwritten or specifically deleted. Example The following command recalls the instrument state previously stored in location 1. *RCL 1 See Also *SAV U2300A Series USB DAQ Programming Guide...
Factory Reset State for a complete listing of the instrument's default configuration. Remarks • This command does not affect any previously- stored instrument states *SAV (see command). Example The following command resets the instrument. *RST See Also SYSTem:ERRor? U2300A Series USB DAQ Programming Guide...
Page 53
WAVeform:POINts • TRIGger:SOURce • TRIGger:TYPe • TRIGger:DCouNT • TRIGger:ATRiGger:SOURce • TRIGger:ATRiGger:CONDition • TRIGger:DTRiGger:POLarity • TRIGger:ATRiGger:HTHReshold • TRIGger:ATRiGger:LTHReshold Example The following command stores the current instrument state in location 1. *SAV 1 See Also *RCL U2300A Series USB DAQ Programming Guide...
3 Not used Not used Always zero 4 Message Available Data is available in the instrument's output buffer for single SCPI query but not for continuous acquisition output buffer U2300A Series USB DAQ Programming Guide...
Page 55
The following command enables bit 4 (decimal value = 16) in the enable register. *SRE 16 The following query returns which bits are enabled in the register. *SRE? Typical Response: +16 See Also *STB? U2300A Series USB DAQ Programming Guide...
For example, to enable bit 1 (decimal value = 2), bit 3 (decimal value = 8), and bit 6 (decimal value = 64), the corresponding decimal value would be 74 (2 + 8 + 64). U2300A Series USB DAQ Programming Guide...
Page 57
• Refer to Figure 6- 1 for the status system diagram. Example The following command reads the condition register (bits 3 and 4 are set). *STB? Typical Response: +24 See Also *CLS *SRE U2300A Series USB DAQ Programming Guide...
Return Query Format The command returns "+0" (all tests passed) or "+1" (one or more tests failed). Example The following command performs a self- test and returns a pass/fail indication. *TST? Typical Response: +0 U2300A Series USB DAQ Programming Guide...
IEEE-488 Common Command *WAI Syntax *WAI This command configures the instrument to wait for all pending operations to complete before executing any additional commands over the interface. See Also *OPC? U2300A Series USB DAQ Programming Guide...
Page 60
IEEE-488 Common Command U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide MEASure Subsystem MEASure[:VOLTage][:DC]? MEASure:COUNter:DATA? MEASure:COUNter:FREQuency? MEASure:COUNter:PERiod? MEASure:COUNter:PWIDth? MEASure:COUNter:TOTalize? MEASure:DIGital? MEASure:DIGital:BIT? This chapter explains how the MEASure command subsystem is configured when acquiring data from the U2300A Series multifunction USB DAQ devices. Agilent Technologies...
<ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 Remarks If the returned value is 999.9, it is out of range. Query Returned Format <value> [V] See Also [SENSe:]VOLTage:STYPe U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This query requires a channel number to be stated. Query Returned Format <value> Example SENSe:COUNter:FUNCtion TOTalize, (@301) SENSe:COUNter:FUNCtion FREQuency, (@301) MEASure:COUNter:DATA? (@301) See Also [SENSe:]COUNter:FUNCtion U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This query requires a channel number to be stated. Query Returned Format <value> [kHz] Example SENSe:COUNter:FUNCtion FREQuency, (@301) MEASure:COUNter:FREQuency? (@301) See Also [SENSe:]COUNter:FUNCtion MEASure:COUNter:DATA? U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This query requires a channel number to be stated. Query Returned Format <value> [ms] Example [SENSe:]COUNter:FUNCtion PERiod, (@301) MEASure:COUNter:PERiod? (@301) See Also [SENSe:]COUNter:FUNCtion MEASure:COUNter:DATA? U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This query requires a channel number to be stated. Query Returned Format <value> [ms] Example [SENSe:]COUNter:FUNCtion PWIDth, (@301) MEASure:COUNter:PWIDth? (@301) See Also [SENSe:]COUNter:FUNCtion MEASure:COUNter:DATA? U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This query requires a channel number to be stated. Query Returned Format <value> U2300A Series USB DAQ Programming Guide...
This query requires a channel number to be stated. Query Returned Format Channel 501, 502: 0 to 255 (8- bits) Channel 503, 504: 0 to 15 (4- bits) Example CONFigure:DIGital:DIRection INPut, (@501) MEASure:DIGital? (@501) See Also CONFigure:DIGital:DIRection U2300A Series USB DAQ Programming Guide...
• This query requires a channel number to be stated. Query Returned Format 0 or 1 Example CONFigure:DIGital:DIRection INPut, (@501) CONFigure:DIGital:BIT? 2, (@501) //Reads bit 2 of channel 501 MEASure:DIGital:BIT? 0, (@502) //Reads bit 0 of channel 502 See Also CONFigure:DIGital:DIRection U2300A Series USB DAQ Programming Guide...
Page 70
MEASure Subsystem U2300A Series USB DAQ Programming Guide...
• The OUTPut ON and OUTPut OFF commands cannot be executed repeatedly. • Resets the voltage level by using the SOURce:VOLTage 0 command. • Cannot generate user- defined and pre- defined waveforms at the same time. Query Returned Format <mode> ::= {0|1} U2300A Series USB DAQ Programming Guide...
0 to 16777215 (24 bits) Remarks • 0 for infinite iteration. • Positive number for iteration count. • The iteration value must be larger or equal to zero and less than 0xffffff. Query Returned Format <value> U2300A Series USB DAQ Programming Guide...
. Must be ≥ 48x10 / 0xffffff. • Default value zero implies automatic sampling configuration for SIN, SQU, SAWT, TRI, and NOIS waveform generation. • Maximum of 4096 points for one waveform. Query Returned Format <value> [Hz] U2300A Series USB DAQ Programming Guide...
Name Type Range of Values Default Value <value> Float 10 Hz to 10000 Hz 4000 Remarks The range of the returned value is from 10 Hz to 10000 Hz. Query Returned Format <value> Hz U2300A Series USB DAQ Programming Guide...
Range of Values Default Value <mode> String NONE: Immediate trigger NONE EXTD: From external digital trigger pin EXTA: From external analog trigger pin STRG: Clock Source by star trigger Query Returned Format <mode> ::= {NONE|EXTD|EXTA|STRG} U2300A Series USB DAQ Programming Guide...
The query command returns a string value that indicates the trigger mode selection of the analog output. Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <mode> String POST: post-trigger POST DEL: delay-trigger Query Returned Format <mode> ::= {POST|DEL} U2300A Series USB DAQ Programming Guide...
Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <value> Integer 0 to 2147483647 (31 bits) Remarks 0 ≤ <value> ≤ 0x7fffffff (for counter). Query Returned Format <value> [second] U2300A Series USB DAQ Programming Guide...
Parameters Name Type Range of Values Default Value <mode> String EXTAP: From external analog trigger pin EXTAP SONE: Source from first scanned channel for multiplexing USB DAQ device Query Returned Format <mode> ::= {EXTAP|SONE} U2300A Series USB DAQ Programming Guide...
Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <value> Float –10 V to 10 V 10.0 Query Returned Format <value> U2300A Series USB DAQ Programming Guide...
Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <value> Float –10 V to 10 V 10.0 Query Returned Format <value> U2300A Series USB DAQ Programming Guide...
Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <mode> String AHIG: Above-High-Level triggering BLOW BLOW: Below-Low-Level triggering WIND: Inside Region triggering Query Returned Format <mode> ::= {AHIG|BLOW|WIND} U2300A Series USB DAQ Programming Guide...
Supported Model U2351A, U2353A, U2355A, U2356A, U2331A Parameters Name Type Range of Values Default Value <mode> String POS: Trigger positive edge active NEG: Trigger negative edge active Query Returned Format <mode> ::= {POS|NEG} U2300A Series USB DAQ Programming Guide...
Page 84
OUTPut Subsystem U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide Root Commands DIGitize STOP MODel? SERial? DATA[:USER] This chapter explains how the SYSTem root commands are utilized for the U2300A Series multifunction USB DAQ devices. Agilent Technologies...
• In general condition, there are four trigger conditions; post trigger, pre- trigger, middle trigger and NONE. However, user can only select post and delay trigger modes when used in NONE trigger mode. See Also: ACQuire:POINts ACQuire:SRATe STOP WAVeform:COMPlete? WAVeform:DATA? U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Remarks STOP • Use the command to stop a complete work flow. • Post and delay trigger conditions are only supported in continuous analog input mode. See Also: ACQuire:SRATe STOP WAVeform:DATA? WAVeform:POINts WAVeform:STATus? U2300A Series USB DAQ Programming Guide...
Root Commands STOP Syntax STOP This command is used to stop the asynchronous analog input operation. Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A U2300A Series USB DAQ Programming Guide...
Root Commands MODel? Syntax MODel? This query returns the model of the USB DAQ device. The returned string can be any of the models in the U2300A Series DAQ devices. U2300A Series USB DAQ Programming Guide...
Root Commands SERial? Syntax SERial? This query returns a string value indicating the serial number of the USB DAQ device. U2300A Series USB DAQ Programming Guide...
• Binary block must use the IEEE- 488.2 binary block format. • Syntax cannot be executed while analog output is running after executing command OUTPut ON. • This is an adjunct command for APPLy:USER. Example DATA #800000200<byte1><byte2>...<byte200> See Also: OUTPut:WAVeform:ITERate OUTPut:WAVeform:SRATe U2300A Series USB DAQ Programming Guide...
Page 92
Root Commands U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide ROUTe Subsystem ROUTe:SCAN ROUTe:CHANnel:RANGe ROUTe:CHANnel:POLarity ROUTe:CHANnel:STYPe ROUTe:CHANnel:RSouRCe ROUTe:CHANnel:RVOLtage ROUTe:ENABle This chapter contains information on the ROUTe command subsystem. Agilent Technologies...
Multiple responses are separated by commas. Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 U2300A Series USB DAQ Programming Guide...
Page 95
ROUTe Subsystem Remarks • For U2300A Series DAQ device that supports multiplexing only. • The maximum channel list is 100 items. • Repeated channel assignment is allowed, for instance 101, 102, 103, 101… • This command is capable of changing the scan order without changing the properties on RANGE, POLARITY and SIGNAL TYPE.
Type Range of Values Default Value <value> Float U2331A: Unipolar mode: {10|5|4|2.5|2.0|1.0|0.5|0.4|0.1} Bipolar mode: {10|5|2.5|2.0|1.25|1.0|0.5|0.25|0.2|0.05} U2351A/U2352A/U2353A/U2354A/U2355A/ U2356A: Unipolar/Bipolar mode: {10,5,2.5,1.25} <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 U2300A Series USB DAQ Programming Guide...
Page 97
BIPolar, the value is in the range of –10 V to +10 V. • If the reference value is out of all enumeration, it will raise error code –224, "Illegal parameter value". Query Returned Format <value> [V] See Also ROUTe:CHANnel:POLarity ROUTe:CHANnel:STYPe U2300A Series USB DAQ Programming Guide...
SING: Referenced single-ended mode (16/64 ch common to ground system on board) NRS: Non-referenced single-ended mode (16/64 ch common to AISENSE pin) <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 U2300A Series USB DAQ Programming Guide...
Page 101
Some channels only support SING and NRS mode. For example, channels 108 to 116 for U2351A, U2352A, U2353A and U2354A; channels 132 to 164 for U2355A, U2356A and U2331A. Query Returned Format <mode> ::= {DIFF|SING|NRS} U2300A Series USB DAQ Programming Guide...
U2351A, U2353A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String INTernal: Internal reference INTernal EXTernal: External reference <ch_list> Numeric U2351A: 202 through 202 U2353A/U2355A/U2356A/U2331A: 201 through 202 Query Returned Format <mode> ::= {INTernal|EXTernal} U2300A Series USB DAQ Programming Guide...
U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 Remarks • It will return an error code if OUTPut ON. • The reference voltage value cannot be set to zero. Query Returned Format <value> [V] U2300A Series USB DAQ Programming Guide...
Page 104
ROUTe Subsystem See Also ROUTe:CHANnel:RSouRCe U2300A Series USB DAQ Programming Guide...
Parameters Item Type Range of Values Default Value <ch_list> Numeric 201 to 202 <mode> String OFF|0|ON|1 Return Format 1 or 0 Example ROUTe:ENABle ON, (@201:202) //Enable channels 201 and 202 for analog output ROUTe:ENABle? U2300A Series USB DAQ Programming Guide...
Page 106
ROUTe Subsystem See Also APPLy? APPLy:SINusoid APPLy:SQUare APPLy:SAWTooth APPLy:TRIangle APPLy:NOISe APPLy:USER OUTPut OUTPut:WAVeform:ITERate OUTPut:WAVeform:SRATe OUTPut:WAVeform:FREQuency U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide SENSe Subsystem [SENSe:]VOLTage:RANGe [SENSe:]VOLTage:POLarity [SENSe:]VOLTage:STYPe [SENSe:]COUNter:FUNCtion [SENSe:]COUNter:ABORt [SENSe:]COUNter:GATE:POLarity [SENSe:]COUNter:GATE:SOURce [SENSe:]COUNter:GATE:CONTrol [SENSe:]COUNter:CLocK:INTernal? [SENSe:]COUNter:CLocK:EXTernal? [SENSe:]COUNter:CLocK:POLarity [SENSe:]COUNter:CLocK:SOURce [SENSe:]COUNter:TOTalize:IVALue [SENSe:]COUNter:TOTalize:INITiate [SENSe:]COUNter:TOTalize:CLEar [SENSe:]COUNter:TOTalize:UDOWn:SOURce [SENSe:]COUNter:TOTalize:UDOWn:DIRection This chapter explains how the SENSe command subsystem is used to acquire the properties of analog input such as range, polarity, function, signal type, and others.
Default Value <range> Discrete U2331A: AUTO Unipolar mode: {AUTO|10|5|4|2.5|2.0|1.0|0.5|0.4|0.1} Bipolar mode: {AUTO|10|5|2.5|2.0|1.25|1.0|0.5|0.25| 0.2|0.05} U2351A/U2352A/U2353A/U2354A/U2355A/ U2356A: Unipolar|Bipolar mode: {AUTO|10|5|2.5|1.25} <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 Query Returned Format <range> [V] U2300A Series USB DAQ...
Page 109
SENSe Subsystem Example *RST;*CLS ROUTe:SCAN (@101) VOLTage:RANGe 10,(@101) //Bipolar with range input of –10 V to +10 V MEASure:VOLTage? (@101) See Also SOURce:VOLTage:POLarity [SENSe:]VOLTage:STYPe U2300A Series USB DAQ...
Default Value <polarity> String UNIPolar: Unipolar polarity BIPolar BIPolar: Bipolar polarity <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 Remarks • Mutually independent with ROUTe:CHANnel:POLarity. Query Returned Format <polarity> ::= {UNIPolar|BIPolar} U2300A Series USB DAQ...
Page 111
SENSe Subsystem Example [:SENSe:]VOLTage:POLarity UNIPolar, (@101) [:SENSe:]VOLTage:STYPe SING,( @101) [:SENSe:]VOLTage:RANGe 10, (@101) MEASure:VOLTage:DC? (@101) See Also [SENSe:]VOLTage:STYPe U2300A Series USB DAQ...
SING: Referenced single-ended mode (16/64 ch common to ground system on board) NRS: Non-referenced single-ended mode (16/64 ch common to AISENSE pin) <ch_list> Numeric Single-ended mode: U2351A/U2352A/U2353A/U2354A: 101-116 U2355A/U2356A/U2331A: 101-164 Differential mode: U2351A/U2352A/U2353A/U2354A: 101-108 U2355A/U2356A/U2331A: 101-132 U2300A Series USB DAQ...
Page 113
• For U2351A/U2352A/U2353A/U2354A; if Channel 101 is configured to "DIFF" mode, channel 109 will be N/A. Likewise, channel 102 and 110 are paired in "DIFF" mode. Query Returned Format <mode> ::= {DIFF|SING|NRS} Example [:SENSe:]VOLTage:POLarity UNIPolar, (@101) [:SENSe:]VOLTage:STYPe SING, (@101) [:SENSe:]VOLTage:RANGe 10, (@101) MEASure:VOLTage:DC? (@101) U2300A Series USB DAQ...
FREQuency: returns the measured frequency TOTalize PERiod: returns the measured period PWIDth: returns the measured pulse width TOTalize: returns the count on the specified totalizer channels <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {FREQuency|PERiod|PWIDth|TOTalize} See Also MEASure:COUNter:DATA? U2300A Series USB DAQ...
Page 115
SENSe Subsystem Example [:SENSe:]COUNter:FUNCtion TOTalize (@301) [:SENSe:]COUNter:TOTalize:INITiate MEASure:COUNter:DATA? (@301) MEASure:COUNter:TOTalize? (@301) [:SENSe:]COUNter:ABORt (@301) U2300A Series USB DAQ...
Parameters Item Type Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This command does not clear or invalidate any measurement in memory. Example [:SENSe:]COUNter:FUNCtion TOTalize (@301) [:SENSe:]COUNter:TOTalize:INITiate (@301) [:SENSe:]COUNter:ABORt (@301) See Also [SENSe:]COUNter:TOTalize:CLEar U2300A Series USB DAQ...
Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String AHI: Active High ALO: Active Low <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {AHI|ALO} U2300A Series USB DAQ...
Page 118
SENSe Subsystem Example [:SENSe:]COUNter:FUNCtion TOTalize,(@301) [:SENSe:]COUNter:TOTalize:INITiate (@301) [:SENSe:]COUNter:GATE:POLarity AHI,(@301) [:SENSe:]COUNter:GATE:SOURce INT,(@301) [:SENSe:]COUNter:GATE:CONTrol DIS,(@301) COUNter:GATE:CONTrol MEASure:COUNter:TOTalize? [:SENSe:]COUNter:ABORt U2300A Series USB DAQ...
Parameters Item Type Range of Values Default Value <mode> String INTernal: Gate is controlled by software INTernal EXTernal: Gate is controlled by COUNT301_GATE/ COUNT302_GATE pins <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {INTernal|EXTernal} U2300A Series USB DAQ...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String DIS: Stop counter operation ENAB: Start counter operation <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {DIS|ENAB} See Also [SENSe:]COUNter:TOTalize:CLEar U2300A Series USB DAQ...
Discrete 12000 kHz Remarks • This query has only one default value. • Refer to the Agilent U2300A Series USB Multifunction DAQ User’s Guide for more information on general purpose digital counter operations. Query Returned Format <value> [KHz] U2300A Series USB DAQ...
1 MHz to 10 MHz <ch_list> Numeric 301 through 302 Remarks Refer to the Agilent U2300A Series USB Multifunction DAQ User’s Guide for more information on general purpose digital counter operations. Query Returned Format <value> [KHz] U2300A Series USB DAQ...
Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String AHI: Active High ALO: Active Low <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {AHI|ALO} U2300A Series USB DAQ...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String INTernal: Gate is controlled by software INTernal EXTernal: Gate is controlled by COUNT301_CLK/COUNT302_CLK pin <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {INTernal|EXTernal} U2300A Series USB DAQ...
Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <value> Numeric From 0 to 2147483647 (2 - 1) <ch_list> Numeric 301 through 302 Query Returned Format <value> U2300A Series USB DAQ...
Gating begins once the counter measurement is initiated. Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <ch_list> Numeric 301 through 302 Example [:SENSe:]COUNter:FUNCtion TOTalize, (@301) [:SENSe:]COUNter:TOTalize:INITiate (@301) MEASure:COUNter:TOTalize? (@301) [:SENSe:]COUNter:ABORt U2300A Series USB DAQ...
Supported Device U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <ch_list> Numeric 301 through 302 Remarks This command clears to zero. However, this is not the initialization value. U2300A Series USB DAQ...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String INTernal: Gate is controlled by software INTernal EXTernal: Gate is controlled by COUNT301_UPDOWN/ COUNT302_UPDOWN <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {INTernal|EXTernal} U2300A Series USB DAQ...
Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String UP: Up counting DOWN: Down counting <ch_list> Numeric 301 through 302 Query Returned Format <mode> ::= {UP|DOWN} U2300A Series USB DAQ...
Agilent U2300A Series Multifunction USB DAQ Programming Guide SOURce Subsystem SOURce:VOLTage[:LEVel] SOURce:VOLTage:POLarity SOURce:VOLTage:RSouRCe SOURce:VOLTage:RVOLtage SOURce:DIGital:DATA SOURce:DIGital:DATA:BIT SOURce:COUNter:OUTPut:POLarity This chapter contains information on the SOURce command subsystem. It also includes the commands on the general purpose digital counter. Agilent Technologies...
–10 V ~ +10 V (12 bits resolution) <ch_list> Numeric 201 through 202 Remarks • This command is not allowed when "OUTPut ON" is set. • Not supported for U2352A and U2354A. Query Returned Format <value> [V] U2300A Series USB DAQ Programming Guide...
<ch_list> Numeric 201 through 202 Remarks • Will force reset voltage level to zero, if the voltage output at negative voltage. • Not supported for U2352A and U2354A. Query Returned Format <mode> ::= {UNIPolar|BIPolar} U2300A Series USB DAQ Programming Guide...
EXTernal: External reference <ch_list> Numeric 201 through 202 Remarks • Will force reset voltage level to zero once the reference source is changed. • Not applicable for U2352A and U2354A. Query Returned Format <mode> ::= {INTernal|EXTernal} U2300A Series USB DAQ Programming Guide...
Parameters Item Type Range of Values Default Value <value> Numeric Reference voltage value (0 to 10) Remarks • Cannot reset to zero. • Not applicable for U2352A and U2354A. Query Returned Format <value> [V] U2300A Series USB DAQ Programming Guide...
Counter Channel 503 and 504: 0 through 15 <ch_list> Numeric U2351A/U2353A/U2355A/U2356A/U2331A: 501 through 504 Port A: Channel 501 (8 bits) Port B: Channel 502 (8 bits) Port C: Channel 503 (4 bits) Port D: Channel 504 (4 bits) U2300A Series USB DAQ Programming Guide...
Page 137
• Using this command or query right after will also generate a system error. This is because after a system reset, the DIO channel/port is set to INPut. Query Returned Format <value> See Also: CONFigure:DIGital:DIRection U2300A Series USB DAQ Programming Guide...
OUTPut; else a system error will be generated. *RST • Using this command or query right after will also generate a system error. This is because after a system reset, the DIO channel/port is set to INPut. U2300A Series USB DAQ Programming Guide...
Page 139
SOURce Subsystem Query Returned Format <value>, <bit> See Also: CONFigure:DIGital:DIRection U2300A Series USB DAQ Programming Guide...
Default Value <mode> String AHI: Active High ALO: Active Low <ch_list> Numeric 301 through 302 Remarks Pulse generation for active high or active low for every event count. Query Returned Format <mode> ::= {AHI|ALO} U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide SYSTem Subsystem SYSTem:CDEScription? SYSTem:ERRor? This chapter explains the SYSTem subsystem command for identification purpose. Agilent Technologies...
• It is only applicable when the DAQ module is used in the modular instrument chassis. • It works in conjunction with the SYSTem:IDentity command (with the modular instrument chassis). • For more details, refer to the U2781A USB Modular Instrument Chassis User’s Guide. U2300A Series USB DAQ Programming Guide...
Return Format The command reads and clears one error string from the error queue. The error string consists of an error number and an error string enclosed in double quotes. For example: –113, "Undefined header" U2300A Series USB DAQ Programming Guide...
Page 144
SYSTem Subsystem Example The following query reads and clears one error. SYSTem:ERRor? Typical Response: –101, "Invalid character" See Also *SRE U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide TRIGger Subsystem TRIGger:SOURce TRIGger:TYPe TRIGger:DCouNT TRIGger:ATRiGger:SOURce TRIGger:ATRiGger:HTHReshold TRIGger:ATRiGger:LTHReshold TRIGger:ATRiGger:CONDition TRIGger:DTRiGger:POLarity This chapter contains all the TRIGger subsystem commands that are used to program the U2300A Series multifunction USB DAQ devices. Agilent Technologies...
EXTD: From external digital trigger source EXTA: From analog trigger pin STRG: Clock source by star trigger Remarks Only POST trigger is allowed when trigger source is in NONE mode. Query Returned Format <mode> ::= {NONE|EXTD|EXTA|STRG} U2300A Series USB DAQ Programming Guide...
• All trigger types are supported in one- shot acquisition. It is invoked by DIGitize command. • For continuous analog input and output mode, only POST and DELAY types are supported. Query Returned Format <mode> ::= {POST|PRE|MID|DEL} See Also TRIGger:SOURce U2300A Series USB DAQ Programming Guide...
The query command returns an integer value of delay trigger mode. Supported Model U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <value> Integer From 0 to 2147483647 (2 - 1) Query Returned Format <value> U2300A Series USB DAQ Programming Guide...
("OUTPut ON"). • The SONE trigger detection only comes into effect during the DIGitize command execution. • The SONE parameter refers to the first entry in ROUTe:SCAN command. Query Returned Format <src> ::= {EXTAP|SONE} U2300A Series USB DAQ Programming Guide...
Page 150
TRIGger Subsystem See Also TRIGger:SOURce TRIGger:TYPe TRIGger:ATRiGger:HTHReshold TRIGger:ATRiGger:LTHReshold TRIGger:ATRiGger:CONDition ROUTe:SCAN U2300A Series USB DAQ Programming Guide...
Remarks If SONE mode is selected by TRIGger:ATRiGger:SOURce command, the threshold will be limited by the RANGE configuration of the first channel in the scan list. Query Returned Format <value> [V] See Also TRIGger:ATRiGger:LTHReshold U2300A Series USB DAQ Programming Guide...
• If SONE mode is selected by command TRIGger:ATRiGger:SOURce, the threshold voltage will be limited by the range configuration of the first channel of the scan list. Query Returned Format <value> [V] See Also TRIGger:ATRiGger:LTHReshold U2300A Series USB DAQ Programming Guide...
String AHIG: Above-High-Level Triggering BLOW BLOW: Below-Low-Level Triggering WIND: Inside Region Triggering Remarks The value of HTHReshold must larger than value of LTHReshold. Query Returned Format <mode> ::= {AHIG|BLOW|WIND} See Also TRIGger:ATRiGger:SOURce TRIGger:ATRiGger:HTHReshold TRIGger:ATRiGger:LTHReshold U2300A Series USB DAQ Programming Guide...
U2351A, U2352A, U2353A, U2354A, U2355A, U2356A, U2331A Parameters Item Type Range of Values Default Value <mode> String POS: Trigger positive edge active NEG: Trigger negative edge active Query Returned Format <mode> ::= {POS|NEG} See Also TRIGger:SOURce U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide WAVeform Subsystem WAVeform:DATA? WAVeform:POINts WAVeform:STATus? WAVeform:COMPlete? This chapter explains the WAVeform command subsystem that is used to configure the U2300A Series multifunction USB DAQ devices. Agilent Technologies...
//Set sampling rate of 30 KHz WAVeform:POINts 3000 //Set to read/fetch 3000 points at one time WAVeform:STATus? //Expect a string returned data WAVeform:DATA? //Loop until the next STOP command is issued STOP //Acquisition stops U2300A Series USB DAQ Programming Guide...
Page 157
WAVeform Subsystem See Also ROUTe:SCAN ACQuire:SRATe WAVeform:POINts STOP U2300A Series USB DAQ Programming Guide...
• Maximum 4 Msa. • For continuous analog input function only. Example ROUTe:SCAN (@101) //Monitors only channel 101 WAVeform:POINts 100 //Sets acquisition points for channel ROUTe:SCAN (@102,103) WAVeform:POINts 200 //Both channels get 100 acquisition points each U2300A Series USB DAQ Programming Guide...
Page 159
WAVeform Subsystem See Also ROUTe:SCAN ACQuire:SRATe WAVeform:DATA? STOP U2300A Series USB DAQ Programming Guide...
DATA: At least one block is complete and ready to be read back OVER: Buffer is full and the acquisition stops Remarks • For command (continuous analog input mode) only. • Buffer block. Query Returned Format <mode> ::= {EPTY|FRAG|DATA|OVER} U2300A Series USB DAQ Programming Guide...
Only for DIGitize acquisition mode. The acquisition stops only if the WAVeform:POINts number of points specified by the command is met or when a STOP command is sent. Query Returned Format <mode> ::= {NO|YES} See Also DIGitize ACQuire:SRATe WAVeform:POINts U2300A Series USB DAQ Programming Guide...
Page 162
WAVeform Subsystem U2300A Series USB DAQ Programming Guide...
Agilent U2300A Series Multifunction USB DAQ Programming Guide Error Messages This chapter lists the SCPI command error messages. Agilent Technologies...
Page 164
-123, "Exponent too large", • -124, "Too many digits", • -128, "Numeric data not allowed", • -130, "Suffix error", • -131, "Invalid suffix", • -134, "Suffix too long", • -138, "Suffix not allowed", • U2300A Series USB DAQ Programming Guide...
Page 165
-222: Data out of range; external clock is set above instrument’s • capability -223, "Too much data", • -224, "Illegal parameter value", • -300, "Device specific error", • -310, "System error", • U2300A Series USB DAQ Programming Guide...
Page 166
305, "Not able to perform requested operation; output is running", • 305, "Not able to perform requested operation; output has stopped", • 305, "Not able to perform requested operation; function must be enabled first", U2300A Series USB DAQ Programming Guide...
Page 167
705, "Cal: aborted", • 706, "Cal: value out of range", • 747, "Calibration failed", • 748, "Cal checksum failed, internal data", • 748, "Cal: invalid while cal in progress", • 748, "Firmware and FPGA revision mismatch" U2300A Series USB DAQ Programming Guide...
Page 168
Error Messages U2300A Series USB DAQ Programming Guide...