background image

12

SOURce Subsystem

124

U2300A Series USB DAQ Programming Guide

SOURce:VOLTage[:LEVel]

Syntax

SOURce:VOLTage[:LEVel] <value>, (@<ch_list>)

This command receives a voltage value, scales it to the proper binary 
value and writes a binary value to the designated analog output channel. 
This command sets the output voltage level for the specified DAC 
channels. After setting the desired level, the command closes the 
corresponding output relay and enable outputs from the specified 
channels.

SOURce:VOLTage[:LEVel]? (@<ch_list>)

The query command returns a numeric value representing the output 
voltage level in volts for the specified DAC channels on each analog 
channel specified. Multiple responses are separated by commas.

Supported Model

U2351A, U2353A, U2355A, U2356A, U2331A

Parameters

Remarks

This command is not allowed when 

"OUTPut ON"

 is set. 

Not supported for U2352A and U2354A.

Query Returned Format

<value> [V]

Item

Type

Range of Values

Default Value

<value>

Numeric

–10 V ~ +10 V (12 bits resolution)

0

<ch_list>

Numeric

201 through 202

N/A

Summary of Contents for U2300A Series

Page 1: ...Agilent Technologies Agilent U2300A Series Multifunction USB Data Acquisition Programming Guide ...

Page 2: ...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 grante...

Page 3: ...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 3 APPLy Subsystem 15 APPLy 16 APPLy SINusoid 17 APPLy SQUare 18 APPLy SAWTooth 19 APPLy TRIangle 20 APPLy NOISe 21 APPLy U...

Page 4: ...re 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...

Page 5: ...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 ...

Page 6: ... 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 SYSTe...

Page 7: ... TRIGger ATRiGger HTHReshold 143 TRIGger ATRiGger LTHReshold 144 TRIGger ATRiGger CONDition 145 TRIGger DTRiGger POLarity 146 15 WAVeform Subsystem 147 WAVeform DATA 148 WAVeform POINts 150 WAVeform STATus 152 WAVeform COMPlete 153 16 Error Messages 155 ...

Page 8: ...VIII U2300A Series USB DAQ Programming Guide Contents ...

Page 9: ... 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 ...

Page 10: ...ated 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 TEMPera...

Page 11: ...re all acceptable Other forms such as VOL and VOLTAG are not valid and will generate an error Braces enclose the parameter choices for a given command string The braces are not sent with the command string A vertical bar separates multiple parameter choices for a given command string Triangle brackets indicate that you must specify a value for the enclosed parameter For example the above syntax st...

Page 12: ...and string TRIGger SOURce EXTernal COUNT 10 is the same as sending the following two commands TRIGger SOURce EXTernal TRIGger COUNT 10 Use a colon and a semicolon to link commands from different subsystems For example in the following command string an error is generated if you do not use both the colon and semicolon ROUTe CHANnel DELAY 1 TRIGger SOURce EXTernal Using the MIN and MAX Parameters Fo...

Page 13: ...new line NL character The IEEE 488 EOI End Or Identify message is interpreted as a NL character and can be used to terminate a command string in place of a NL character A carriage return followed by a NL is also accepted Command string termination will always reset the current SCPI command path to the root level IEEE 488 2 Common Commands The IEEE 488 2 standard defines a set of common commands th...

Page 14: ...t suffixes with numeric parameters e g M K or u If only specific numeric values are accepted the instrument will automatically round the input numeric parameters The following command requires a numeric parameter for the range value VOLTage DC RANGe range MIN MAX ch_list Discrete Parameters Discrete parameters are used to program settings that have a limited number of values like BUS IMMediate EXT...

Page 15: ... or a double quote You can include the quote delimiter as part of the string by typing it twice without any characters in between The following command uses a string parameter DISPlay TEXT quoted string For example the following command displays the message SCANNING on the instrument s front panel the quotes are not displayed DISPlay TEXT SCANNING You can also display the same message using the fo...

Page 16: ...t channel in the range must be valid ROUTe CLOSe 1005 1010 2015 The Analog Bus relays numbered s911 s912 s913 etc on the multiplexer and matrix modules are ignored if they are included in a range of channels An error will be generated if an Analog Bus relay is specified as the first or last channel in a range of channels For example the following command closes all valid channels between channel 3...

Page 17: ...tion states are left unchanged when a Device Clear message is received Device Clear performs the following actions 1 If a scan is running it is aborted 2 The instrument returns to the trigger idle state 3 The instrument s input and output buffers are cleared 4 The instrument is prepared to accept a new command string An overlapped command if any will be terminated with no Operation Complete indica...

Page 18: ...1 Introduction to Programming 10 U2300A Series USB DAQ Programming Guide ...

Page 19: ...00A Series Multifunction USB DAQ Programming Guide Agilent Technologies 2 ACQuire Subsystem ACQuire SRATe 12 ACQuire POINts 13 ACQuire BURSt 14 This chapter elaborates the set of commands in ACQuire command subsystem ...

Page 20: ...nt Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks value number of entries is the maximum ADC sampling rate 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 RUN Item Type Range of Values Default Value value Numeric U2351A U2352A U...

Page 21: ... numeric value representing the acquisition count for single shot analog input Note that the single shot acquisition is initiated by the DIGitize command Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks value number of entries is equivalent to eight mega points Query Returned Format value See Also DIGitize Item Type Range of Values Default Value value Numeric Max...

Page 22: ...ition operation ACQuire BURSt The query command returns a string value representing the state of the burst mode of multiplexer DAQ device for the input channels 0 indicates OFF while 1 indicates ON Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks For multiplexing cards only U2351A U2352A U2353A U2354A U2355A U2356A U2331A Query Returned Format mode 0 1 Item Type ...

Page 23: ...ing Guide Agilent Technologies 3 APPLy Subsystem APPLy 16 APPLy SINusoid 17 APPLy SQUare 18 APPLy SAWTooth 19 APPLy TRIangle 20 APPLy NOISe 21 APPLy USER 22 This chapter explains how the APPLy command subsystem is configured to generate different waveforms ...

Page 24: ... Query Returned Format mode amplitude offset mode SIN SQU SAWT TRI NOIS USER SIN Sine wave function selected SQU Square wave function selected 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 Name Type Range of Values Default Val...

Page 25: ...plitude and DC offset The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks Amplitude must be larger than zero Amplitude Offset 10 Amplitude 1 Offset 10 Query Returned Format mode amplitude offset Name Type Range of Values Default Value amplitude Float amplitude amplitude units V 10 offset Float offset offset voltage V...

Page 26: ... amplitude and DC offset The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks Amplitude must be larger than zero Amplitude Offset 10 Amplitude 1 Offset 10 Query Returned Format mode amplitude offset Name Type Range of Values Default Value amplitude Float amplitude amplitude units V 10 offset Float offset offset voltag...

Page 27: ...d amplitude and DC offset The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks Amplitude must be larger than zero Amplitude Offset 10 Amplitude 1 Offset 10 Query Returned Format mode amplitude offset Name Type Range of Values Default Value amplitude Float amplitude amplitude units V 10 offset Float offset offset volta...

Page 28: ... amplitude and DC offset The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks Amplitude must be larger than zero Amplitude Offset 10 Amplitude 1 Offset 10 Query Returned Format mode amplitude offset Name Type Range of Values Default Value amplitude Float amplitude amplitude units V 10 offset Float offset offset voltag...

Page 29: ... amplitude and DC offset The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks Amplitude must be larger than zero Amplitude Offset 10 Amplitude 1 Offset 10 Query Returned Format mode amplitude offset Name Type Range of Values Default Value amplitude Float amplitude amplitude units V 10 offset Float offset offset voltag...

Page 30: ...rm is generated as soon as the command is executed The waveform is generated after executing the OUTPut ON command Supported Model U2351A U2353A U2355A U2356A U2331A Parameters 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 Name Type Range of Values Default Value ch_list Numeric...

Page 31: ...DAQ Programming Guide Agilent Technologies 4 CALibration Subsystem CALibration BEGin 24 This chapter explains the CALibration command subsystem that is used to carry out the calibration function on the U2300A Series multifunction USB DAQ devices ...

Page 32: ...d initiates a voltage calibration adjustment sequence for the specified DAC channel on the USB DAQ device This sequence sets both zero and gain adjustment constants for each of the DAC output Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Remarks Use the OPC command to check if the calibration is completed The calibration is complete if the returned value is 1 If the returned val...

Page 33: ...ramming Guide Agilent Technologies 5 CONFigure Subsystem CONFigure Subsystem Introduction 26 CONFigure DIGital DIRection 27 CONFigure TIMEbase SOURce 28 CONFigure TIMEbase ECLocK 29 CONFigure SSI 30 This chapter explains the CONFigure command subsystem ...

Page 34: ...r the requested measurement configuration for example the MEASure command However the measurement is not automatically started and you can change some measurement attributes before actually initiating the measurement 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...

Page 35: ...h_list The query command returns INPut or OUTPut for the specified channels Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item...

Page 36: ...ents the timebase clock source for both analog input and output channels Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode INTernal EXTernal CCG Example CONFigure TIMEbase SOURce EXTernal CONFigure TIMEbase SOURce Expected returned string is EXTernal Item Type Range of Values Default Value mode String INTernal Internal clock as the base time EXT...

Page 37: ...Figure TIMEbase ECLocK The query command returns a numeric value that is set by the user of the external clock in kHz Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format clock kHz Example CONFigure TIMEbase ECLocK 20000 Set to external clock of 20 MHz See Also CONFigure TIMEbase SOURce Item Type Range of Values Default Value clock Float 10 MHz to 48 MH...

Page 38: ...and will force all reference clock sources to synchronous serial interface SSI 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 Item Type Range of Values Default Value mode String NONE None MAST ...

Page 39: ...CONFigure Subsystem 5 U2300A Series USB DAQ Programming Guide 31 Query Returned Format mode NONE MAST SLAV See also CONFigure TIMEbase SOURce TRIGger SOURce OUTPut TRIGger SOURce ...

Page 40: ...5 CONFigure Subsystem 32 U2300A Series USB DAQ Programming Guide ...

Page 41: ...s 6 IEEE 488 Common Command CLS 34 ESE 35 ESR 38 IDN 39 OPC 40 RCL 41 RST 42 SAV 43 SRE 46 STB 48 TST 50 WAI 51 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 ...

Page 42: ...Guide CLS Syntax CLS 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 ...

Page 43: ...355A U2356A U2331A Parameters Returned Format The query command reads the enable register and returns a decimal value which corresponds to the binary weighted sum of all bits set in the register For example if bit 3 decimal value 8 and bit 7 decimal value 128 are enabled the query command will return 136 Item Type Range of Values Default Value enable_value Numeric A decimal value which corresponds...

Page 44: ...Status Byte enable register Refer to Figure 6 1 on page 37 for the status system diagram Example 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 Bit Number Decimal Value Definition 0 Not used Not used 0 is returned 1 Not used Not used 0 is returned 2 Query ...

Page 45: ...488 Common Command 6 U2300A Series USB DAQ Programming Guide 37 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 ...

Page 46: ...he register see table above For example if bit 1 decimal value 2 and bit 4 decimal value 16 are set and the corresponding bits are enabled this command will return 18 Supported Model 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 informati...

Page 47: ...strument model number serial number and firmware revision code Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Query The command returns a string with the following format Agilent Technologies U2331A Serial Number A YYYY MM DD Example The following query returns the instrument s identification string IDN Typical Response Agilent Technologies U2331A TW12345678 A 2006 10 10 See Also...

Page 48: ...rmed to synchronize your application with the instrument Return Format The command returns 1 to the output buffer Example The following command waits until the internal calibration routine is completed and the sets the returned value of OPC to 1 When the calibration routine is not completed just yet the OPC query will return a 0 In other words a return value of 1 indicates that this calibration ro...

Page 49: ...U2351A U2352A U2353A U2354A U2355A U2356A U2331A Remarks The instrument has two storage locations in the non volatile memory to store instrument states You can only recall a state from a location that contains a previously stored state Before recalling a stored state the instrument will perform the equivalent of a Factory Reset RST command A Factory Reset RST command has no effect on the configura...

Page 50: ... the instrument to the default configuration See Factory Reset State for a complete listing of the instrument s default configuration Remarks This command does not affect any previously stored instrument states see SAV command Example The following command resets the instrument RST See Also SYSTem ERRor ...

Page 51: ...locations but you can only recall a state from a location that contains a previously stored state A Factory Reset RST command does not affect the configurations stored in the memory Once a state is stored it remains until it is overwritten or specifically deleted The following parameters are saved in SAV SENSe VOLTage RANGe SENSe VOLTage POLarity SENSe VOLTage STYPe SENSe COUNter FUNCtion SENSe CO...

Page 52: ...TPut WAVeform ITERate OUTPut WAVeform SRATe OUTPut WAVeform FREQuency OUTPut TRIGger SOURce OUTPut TRIGger TYPe OUTPut TRIGger DCouNT OUTPut TRIGger ATRiGger SOURce OUTPut TRIGger ATRiGger HTHReshold OUTPut TRIGger ATRiGger LTHReshold OUTPut TRIGger ATRiGger CONDition OUTPut TRiGger DTRiGger POLarity ROUTe CHANnel RSouRCe ROUTe CHANnel RVOLtage ROUTe SCAN ROUTe CHANnel RANGe ROUTe CHANnel POLarity...

Page 53: ...OINts 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 ...

Page 54: ...t 7 decimal value 128 are enabled the query command will return 136 Parameters Remarks The following table lists the bit definitions for the Status Byte Register Name Type Range of Values Default Value enable_value Numeric A decimal value which corresponds to the binary weighted sum of the bits in the register Refer to the table below This is a required parameter Bit Number Decimal Value Definitio...

Page 55: ...ry command reads the enable register and returns a decimal value which corresponds to the binary weighted sum of all bits set in the register For example if bit 3 decimal value 8 and bit 7 decimal value 128 are enabled the query command will return 136 Example The following command enables bit 4 decimal value 16 in the enable register SRE 16 The following query returns which bits are enabled in th...

Page 56: ...t 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 Bit Number Decimal Value Definition 0 Not used Not used Always zero 1 Not used Not used Always zero 2 Error Queue 4 One or more errors have been stored in the Error Queue Use the SYSTem ERRor command to read and delete errors 3 Not used Not used Always zero 4 Message Available 16...

Page 57: ...g Guide 49 The Status Byte enable register is cleared when you execute the SRE 0 command 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 ...

Page 58: ... This command performs a self test of the instrument and returns a pass fail indication 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 ...

Page 59: ...and 6 U2300A Series USB DAQ Programming Guide 51 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 ...

Page 60: ...6 IEEE 488 Common Command 52 U2300A Series USB DAQ Programming Guide ...

Page 61: ...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 This chapter explains how the MEASure command subsystem is configured when acquiring data from the U2300A Series multifunction USB DAQ devices ...

Page 62: ... are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks If the returned value is 999 9 it is out of range Query Returned Format value V See Also SENSe VOLTage STYPe 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 U235...

Page 63: ...ode on specified counter channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Value...

Page 64: ...ed counter channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value ch_l...

Page 65: ...counter channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value ch_list Numeri...

Page 66: ... channel measured in miliseconds ms Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default ...

Page 67: ...meric value that represents the totalized value of the specified counter channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks This query requires a channel number to be stated Query Returned Format value Item Type Range of Values Default Value ch_list Numeric 301 through 302 N A ...

Page 68: ...onses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks 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 Item Type Range of Values Default Value ch_list ...

Page 69: ... Channel 501 and 502 are 8 bit while Channel 503 and 504 are 4 bit 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 Item Type Range of Values Default Value bit Numeric Channel 501...

Page 70: ...7 MEASure Subsystem 62 U2300A Series USB DAQ Programming Guide ...

Page 71: ...ut 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 This chapter explains the OUTPut command subsystem ...

Page 72: ...utput Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks 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 Name Type Range of Values Default Value mode String OFF or 0 Output predefined waveform ON...

Page 73: ...query command returns the integer value representing the iteration number of data in the buffer to output to the desired port Supported Model U2351A U2353A U2355A U2356A U2331A Parameters 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 Name Type Range of Values Default Value ...

Page 74: ... representing the updated rate of analog outputs measured in Hz Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks The range bound by 0 value 106 Must be 48x106 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 Name Type Range of Values Defa...

Page 75: ...nalog outputs OUTPut WAVeform FREQuency The query command returns a float value representing the frequency in Hz for analog outputs Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks The range of the returned value is from 10 Hz to 10000 Hz Query Returned Format value Hz Name Type Range of Values Default Value value Float 10 Hz to 10000 Hz 4000 ...

Page 76: ... SOURce The query command returns a string value representing the setting of the D A trigger control Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format mode NONE EXTD EXTA STRG Name Type Range of Values Default Value mode String NONE Immediate trigger EXTD From external digital trigger pin EXTA From external analog trigger pin STRG Clock Source by star trigger NONE...

Page 77: ...de selection of the analog output OUTPut TRIGger TYPe 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 Query Returned Format mode POST DEL Name Type Range of Values Default Value mode String POST post trigger DEL delay trigger POST ...

Page 78: ... is the duration of output after trigger signal is received OUTPut TRIGger DCouNT The query command returns an integer value representing the delay time or count Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks 0 value 0x7fffffff for counter Query Returned Format value second Name Type Range of Values Default Value value Integer 0 to 2147483647 31 bits 0 ...

Page 79: ... OUTPut TRIGger ATRiGger SOURce The query command returns a string value that indicates the trigger source of the analog output Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format mode EXTAP SONE Name Type Range of Values Default Value mode String EXTAP From external analog trigger pin SONE Source from first scanned channel for multiplexing USB DAQ device EXTAP ...

Page 80: ... the high threshold voltage of the analog trigger output OUTPut TRIGger ATRiGger HTHReshold The query command returns a float value that represents the high threshold voltage for the analog trigger output Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format value Name Type Range of Values Default Value value Float 10 V to 10 V 10 0 ...

Page 81: ...set the low threshold voltage of the analog trigger output OUTPut TRIGger ATRiGger LTHReshold The query command returns a float value This returned value is the low threshold voltage of the analog trigger output Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format value Name Type Range of Values Default Value value Float 10 V to 10 V 10 0 ...

Page 82: ...g output OUTPut TRIGger ATRiGger CONDition The query command returns a string value representing the trigger condition for the analog trigger control for the analog output Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format mode AHIG BLOW WIND Name Type Range of Values Default Value mode String AHIG Above High Level triggering BLOW Below Low Level triggering WIND In...

Page 83: ...ital trigger of the analog output OUTPut DTRiGger POLarity The query command returns a string value representing the analog trigger condition of the analog output Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format mode POS NEG Name Type Range of Values Default Value mode String POS Trigger positive edge active NEG Trigger negative edge active POS ...

Page 84: ...8 OUTPut Subsystem 76 U2300A Series USB DAQ Programming Guide ...

Page 85: ...n USB DAQ Programming Guide Agilent Technologies 9 Root Commands DIGitize 78 RUN 79 STOP 80 MODel 81 SERial 82 DATA USER 83 This chapter explains how the SYSTem root commands are utilized for the U2300A Series multifunction USB DAQ devices ...

Page 86: ...6A U2331A Remarks Use the STOP command to stop the single shot acquisition before the numer of point stated in ACQuire POINts is reached 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 ...

Page 87: ...continuous data acquisition Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Remarks Use the STOP 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 ...

Page 88: ...ot Commands 80 U2300A Series USB DAQ Programming Guide STOP Syntax STOP This command is used to stop the asynchronous analog input operation Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A ...

Page 89: ...ot Commands 9 U2300A Series USB DAQ Programming Guide 81 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 ...

Page 90: ...9 Root Commands 82 U2300A Series USB DAQ Programming Guide SERial Syntax SERial This query returns a string value indicating the serial number of the USB DAQ device ...

Page 91: ...nto the FIFO buffer Supported Model U2352A U2354A U2355A U2356A U2331A Remarks 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 ...

Page 92: ...9 Root Commands 84 U2300A Series USB DAQ Programming Guide ...

Page 93: ...uide Agilent Technologies 10 ROUTe Subsystem 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 This chapter contains information on the ROUTe command subsystem ...

Page 94: ...n list ROUTe SCAN The query command returns an integer value that indicates the specified input channel 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...

Page 95: ...imum 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 Consecutive channels can be specified using colon or comma For example 101 102 103 or 101 103 Query Returned Format ch_list ...

Page 96: ...nels Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Item 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 10 ch_list Numeric Single ended mode U235...

Page 97: ...lar the value 10 means 0 V to 10 V Whereas if the polarity is 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 ...

Page 98: ...both specified analog inputs and outputs Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Will return error code if OUTPut ON Query Returned Format mode UNIPolar BIPolar Item Type Range of Values Default Value mode String UNIPolar Unipolar polarity BIPolar Bipolar polarity BIPolar ch_list Numeric Single ended mode U2351A...

Page 99: ...ROUTe Subsystem 10 U2300A Series USB DAQ Programming Guide 91 See Also ROUTe CHANnel POLarity ROUTe CHANnel STYPe ...

Page 100: ...puts and outputs Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Item Type Range of Values Default Value mode String DIFF Differential mode 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 SING ch_list Numeric Single ended mode U2351A...

Page 101: ...B DAQ Programming Guide 93 Remarks 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 ...

Page 102: ...mand returns a string value which represents the voltage source for the specified analog output Multiple responses are separated by commas Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Query Returned Format mode INTernal EXTernal Item Type Range of Values Default Value mode String INTernal Internal reference EXTernal External reference INTernal ch_list Numeric U2351A 202 through 20...

Page 103: ...ce voltage value in volts for analog outputs Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks It will return an error code if OUTPut ON The reference voltage value cannot be set to zero Query Returned Format value V Item Type Range of Values Default Value value Numeric From 0 to 10 if the D A reference voltage source is the external reference 10 ch_list Numeric Single ended mo...

Page 104: ...10 ROUTe Subsystem 96 U2300A Series USB DAQ Programming Guide See Also ROUTe CHANnel RSouRCe ...

Page 105: ...nel electrical signal is not allowed to pass through the said channel ROUTe ENABle ch_list The query returns a 1 indicating that the specified channel is enabled and 0 if the specified channel is disabled Multiple responses are separated by commas Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Return Format 1 or 0 Example ROUTe ENABle ON 201 202 Enable channels 201 and 202 for analo...

Page 106: ...m 98 U2300A Series USB DAQ Programming Guide 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 ...

Page 107: ... 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 This chapter explains how the SENSe command subsystem is u...

Page 108: ...g input channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format range V Item Type Range of Values Default Value range Discrete U2331A 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 A...

Page 109: ...e Subsystem 11 U2300A Series USB DAQ 101 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 ...

Page 110: ...nnel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Mutually independent with ROUTe CHANnel POLarity Query Returned Format polarity UNIPolar BIPolar Item Type Range of Values Default Value polarity String UNIPolar Unipolar polarity BIPolar Bipolar polarity BIPolar ch_list Numeric Single ended mode U2351A U2352A U2353A U...

Page 111: ...SENSe Subsystem 11 U2300A Series USB DAQ 103 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 ...

Page 112: ...nel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Item Type Range of Values Default Value mode String DIFF Differential mode 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 SING ch_list Numeric Single ended mode U2351A U2352A U2353A...

Page 113: ...to DIFF mode channel 134 will be N A until channel 102 is set to back to SING mode again 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 ...

Page 114: ...ting the present measurement function on each counter channel specified Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode FREQuency PERiod PWIDth TOTalize See Also MEASure COUNter DATA Item Type Range of Values Default Value mode String FREQuency returns the measured frequency PERiod returns the measured...

Page 115: ...SENSe Subsystem 11 U2300A Series USB DAQ 107 Example SENSe COUNter FUNCtion TOTalize 301 SENSe COUNter TOTalize INITiate MEASure COUNter DATA 301 MEASure COUNter TOTalize 301 SENSe COUNter ABORt 301 ...

Page 116: ... abort a long internally gated or externally gated measurement Supported Device U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value ch...

Page 117: ...le an initiated measurement is in progress is not allowed SENSe COUNter GATE POLarity ch_list The query command returns a string value that indicates the polarity type of gate configuration on each specified counter channel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode AHI ALO Item Type Range of Valu...

Page 118: ...ample 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 ...

Page 119: ...s SENSe COUNter GATE SOURce ch_list The query command returns a string value representing the gate source setting for general purpose digital counter on each specified counter channel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode INTernal EXTernal Item Type Range of Values Default Value mode String I...

Page 120: ...ist The query command returns a string value representing the gate status on each specified counter channel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode DIS ENAB See Also SENSe COUNter TOTalize CLEar Item Type Range of Values Default Value mode String DIS Stop counter operation ENAB Start counter op...

Page 121: ...d counter channel of the general purpose digital counter Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value value Discre...

Page 122: ...fied counter channel of the general purpose digital counter Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value value Float 1 MHz to 10 MHz 0 ch_list Numeric 3...

Page 123: ...y ch_list The query command returns a string value that represents the clock polarity settings of specified counter channel of the general purpose digital counter Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode AHI ALO Item Type Range of Values Default Value mode String AHI Active High ALO Active Low A...

Page 124: ...turns a string value representing the clock source settings of the general purpose digital counter Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode INTernal EXTernal Item Type Range of Values Default Value mode String INTernal Gate is controlled by software EXTernal Gate is controlled by COUNT301_CLK CO...

Page 125: ...COUNter TOTalize IVALue ch_list The query command returns a numeric value representing the initial counter value of the general purpose digital counter Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format value Item Type Range of Values Default Value value Numeric From 0 to 2147483647 231 1 0 ch_list Numeric 301...

Page 126: ...ement on the USB DAQ device Gating begins once the counter measurement is initiated Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Example SENSe COUNter FUNCtion TOTalize 301 SENSe COUNter TOTalize INITiate 301 MEASure COUNter TOTalize 301 SENSe COUNter ABORt Item Type Range of Values Default Value ch_list Numeric 301 through 302 N A ...

Page 127: ...list This command clears all the operation of the general purpose digital counter Supported Device U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks This command clears to zero However this is not the initialization value Item Type Range of Values Default Value ch_list Numeric 301 through 302 N A ...

Page 128: ... TOTalize UDOWn SOURce ch_list The query command returns a string value that indicates the clock source of the general purpose digital counter Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode INTernal EXTernal Item Type Range of Values Default Value mode String INTernal Gate is controlled by software EXTernal Gate is controlled by COUNT301_UPDO...

Page 129: ...OWn DIRection ch_list The query command returns a string value that indicates the up or down direction count direction of each specified counter channel Multiple responses are separated by comma Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode UP DOWN Item Type Range of Values Default Value mode String UP Up counting DOWN Down counting UP ch_li...

Page 130: ...11 SENSe Subsystem 122 U2300A Series USB DAQ ...

Page 131: ...Tage 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 This chapter contains information on the SOURce command subsystem It also includes the commands on the general purpose digital counter ...

Page 132: ...responding output relay and enable outputs from the specified channels SOURce VOLTage LEVel ch_list The query command returns a numeric value representing the output voltage level in volts for the specified DAC channels on each analog channel specified Multiple responses are separated by commas Supported Model U2351A U2353A U2355A U2356A U2331A Parameters Remarks This command is not allowed when O...

Page 133: ...g value representing the polarity of the specified output channel Multiple responses are separated by commas Supported Model U2351A U2353A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value mode String UNIPolar...

Page 134: ...hat represents the reference voltage source of the output channel specified Multiple responses are separated by commas Supported Model U2351A U2353A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value mode String I...

Page 135: ...et to external SOURce VOLTage RVOLtage The query command returns a numeric value representing voltage value of the reference voltage in units of volts of the output channels Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Cannot reset to zero Not applicable for U2352A and U2354A Query Returned Format value V Item Type Range of Values Default Value value Numeric ...

Page 136: ...ATA ch_list The query returns a value representing the digital data of the specific channel Multiple responses are separated by commas Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Item Type Range of Values Default Value value Numeric Counter Channel 501 and 502 0 through 255 Counter Channel 503 and 504 0 through 15 0 ch_list Numeric U2351A U2353A U2355A U2356A U2331A...

Page 137: ...e DIO channel port has to be configured as OUTPut else a system error will be generated Using this command or query right after RST 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 ...

Page 138: ... for the specified bit within the specified channel Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Prior to using this command the DIO channel port has to be configured as OUTPut else a system error will be generated Using this command or query right after RST will also generate a system error This is because after a system reset the DIO channel port is set to ...

Page 139: ...SOURce Subsystem 12 U2300A Series USB DAQ Programming Guide 131 Query Returned Format value bit See Also CONFigure DIGital DIRection ...

Page 140: ...The query command returns a string value representing the output polarity for general purpose digital counter Multiple responses are separated by commas Supported Device U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Pulse generation for active high or active low for every event count Query Returned Format mode AHI ALO Item Type Range of Values Default Value mode String AHI Ac...

Page 141: ...U2300A Series Multifunction USB DAQ Programming Guide Agilent Technologies 13 SYSTem Subsystem SYSTem CDEScription 134 SYSTem ERRor 135 This chapter explains the SYSTem subsystem command for identification purpose ...

Page 142: ...ument chassis It identifies which slot is the module plugged into Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Remarks 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 ...

Page 143: ...e stored until you remove errors from the queue If no errors have occurred when you read the error queue the instrument responds with 0 No error SYSTem ERRor will read and clear one error from the queue Error conditions are also summarized in the Status Byte Register The interface specific and global error queues are cleared by the clear status CLS command and when power is cycled The errors are a...

Page 144: ...13 SYSTem Subsystem 136 U2300A Series USB DAQ Programming Guide Example The following query reads and clears one error SYSTem ERRor Typical Response 101 Invalid character See Also SRE ...

Page 145: ... 138 TRIGger TYPe 139 TRIGger DCouNT 140 TRIGger ATRiGger SOURce 141 TRIGger ATRiGger HTHReshold 143 TRIGger ATRiGger LTHReshold 144 TRIGger ATRiGger CONDition 145 TRIGger DTRiGger POLarity 146 This chapter contains all the TRIGger subsystem commands that are used to program the U2300A Series multifunction USB DAQ devices ...

Page 146: ...alue representing the source for A D trigger control Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Only POST trigger is allowed when trigger source is in NONE mode Query Returned Format mode NONE EXTD EXTA STRG Item Type Range of Values Default Value mode String NONE Immediate EXTD From external digital trigger source EXTA From analog trigger pin STRG Clock so...

Page 147: ...rted Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks 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 Item Type Range of Values Default Value mode String POST Post Trigger Mode PRE ...

Page 148: ... is used to set the counter value of delay trigger mode TRIGger DCouNT The query command returns an integer value of delay trigger mode Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format value Item Type Range of Values Default Value value Integer From 0 to 2147483647 231 1 0 ...

Page 149: ...rigger source is set to SONE Input range should be configured well The HTHReshold must be less than the maximum input range while the LTHReshold must be larger than minimum input range To activate SONE trigger users are required to run the DIGitize command before or after analog output OUTPut ON The SONE trigger detection only comes into effect during the DIGitize command execution The SONE parame...

Page 150: ...14 TRIGger Subsystem 142 U2300A Series USB DAQ Programming Guide See Also TRIGger SOURce TRIGger TYPe TRIGger ATRiGger HTHReshold TRIGger ATRiGger LTHReshold TRIGger ATRiGger CONDition ROUTe SCAN ...

Page 151: ...float value that represents the high threshold in volts for analog trigger cLTHResholdontrol Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 I...

Page 152: ...w threshold voltage for analog trigger control Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Only post and delay trigger modes can be used if the trigger source is SONE 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 ...

Page 153: ...enting the trigger condition of analog trigger control Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters 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 Item Type Range of Values Default Value mode String AHIG Above High L...

Page 154: ...ital trigger TRIGger DTRiGger POLarity The query command returns a string value representing the polarity of external digital trigger Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Query Returned Format mode POS NEG See Also TRIGger SOURce Item Type Range of Values Default Value mode String POS Trigger positive edge active NEG Trigger negative edge active POS ...

Page 155: ...ng Guide Agilent Technologies 15 WAVeform Subsystem WAVeform DATA 148 WAVeform POINts 150 WAVeform STATus 152 WAVeform COMPlete 153 This chapter explains the WAVeform command subsystem that is used to configure the U2300A Series multifunction USB DAQ devices ...

Page 156: ...is the LSB and the second one is the MSB The sample shows that there is a total of 100 acquisition points Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Remarks Maximum 8 Msa in DIGitize or 4 Msa in RUN The length of header is fixed at eight characters Example RST CLS ROUTe SCAN 101 Monitors only channel 101 ACQuire SRATe 30000 Set sampling rate of 30 KHz WAVeform POINts 3000 Set...

Page 157: ...WAVeform Subsystem 15 U2300A Series USB DAQ Programming Guide 149 See Also ROUTe SCAN ACQuire SRATe WAVeform POINts RUN STOP ...

Page 158: ...functions as ACQuire POINts on page 13 The only difference is that the WAVeform POINts command is meant for continuous acquisition The ACQuire POINts command is meant for single shot acquisitions Supported Model U2351A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Size of block to read Maximum 4 Msa For continuous analog input function only Example ROUTe SCAN 101 Monitors only chann...

Page 159: ...WAVeform Subsystem 15 U2300A Series USB DAQ Programming Guide 151 See Also ROUTe SCAN ACQuire SRATe WAVeform DATA RUN STOP ...

Page 160: ...5A U2356A U2331A Parameters Remarks For RUN command continuous analog input mode only Buffer block Query Returned Format mode EPTY FRAG DATA OVER Item Type Range of Values Default Value mode String EPTY Empty no data captured FRAG Fragment DAQ start to measure but memory buffer block is not complete yet DATA At least one block is complete and ready to be read back OVER Buffer is full and the acqui...

Page 161: ...1A U2352A U2353A U2354A U2355A U2356A U2331A Parameters Remarks Only for DIGitize acquisition mode The acquisition stops only if the number of points specified by the WAVeform POINts command is met or when a STOP command is sent Query Returned Format mode NO YES See Also DIGitize ACQuire SRATe WAVeform POINts Item Type Range of Values Default Value mode String NO Capturing Data YES One Shot Functi...

Page 162: ...15 WAVeform Subsystem 154 U2300A Series USB DAQ Programming Guide ...

Page 163: ...155 Agilent U2300A Series Multifunction USB DAQ Programming Guide Agilent Technologies 16 Error Messages This chapter lists the SCPI command error messages ...

Page 164: ...ment responds with 0 No error SYSTem ERRor will read and clear one error from the queue Below are the SCPI error messages 0000 No error 100 Command error 101 Invalid character 102 Syntax error 103 Invalid separator 104 Data type error 108 Parameter not allowed 109 Missing parameter 110 Command header error 111 Header separator error 112 Program mnemonic too long 113 Undefined header 114 Header suf...

Page 165: ...onflict high threshold is lower than low threshold 221 Settings conflict analog trigger level beyond range because of analog trigger source 221 Settings conflict sampling rate beyond range because of number of channel 221 Settings conflict acquisition points beyond range because of number of channel 221 Settings conflict waveform points beyond range because of number of channel 221 Settings confli...

Page 166: ...conflict trig source changed to IMM 261 Not able to execute while scan initiated 262 Not able to abort scan 263 Not able to execute while instrument is measuring 264 Not a scannable channel 281 Not able to perform on more than one channel 301 Module currently committed to scan 303 Module is not able to perform requested operation 304 Does not exist 305 Not able to perform requested operation 305 N...

Page 167: ...not able to perform requested operation currently in differential mode 309 Incorrectly formatted channel list 311 Not able to specify resolution with Auto range 521 Input buffer overflow 522 Output buffer overflow 531 Insufficient memory 532 Not able to achieve requested resolution 602 Self test failed RAM read write 626 I O processor failed self test 705 Cal aborted 706 Cal value out of range 747...

Page 168: ...16 Error Messages 160 U2300A Series USB DAQ Programming Guide ...

Page 169: ...829 4433 Canada tel 877 894 4414 fax 800 746 4866 China tel 800 810 0189 fax 800 820 2816 Europe tel 31 20 547 2111 Japan tel 81 426 56 7832 fax 81 426 56 7840 Korea tel 080 769 0800 fax 080 769 0900 Latin America tel 305 269 7500 Taiwan tel 0800 047 866 fax 0800 286 331 Other Asia Pacific Countries tel 65 6375 8100 fax 65 6755 0042 Or visit Agilent worlwide web at www agilent com find assist Prod...

Reviews: