background image

38

DME1600

SCPI Status System

Standard event register

The standard event register reports the following types of device events.

Power-on detected, command syntax errors, command execution errors, self-test (cali-
bration errors), query errors, and the execution of the *OPC command

Through the enable register, all states are reported in the standard event summary bit. To
configure the enable register mask, you need to use an *ESE command to write a decimal
value.

Standard event register bit definitions

The standard event register is cleared in the following situations.

• When you execute a *CLS command
• When you query the event register using the *ESR? command.

The enable register is cleared in the following situations.

• When you turn on the power after configuring the DME1600 using the *PSC 1 command
• When you execute an *ERE 0 command

• Unless the SYSTem:ERRor? command is used to retrieve errors from the error queue, the 

errors in the DME1600’s error queue are recorded as error states (bits 2, 3, 4, and 5 in the 
standard event register).

• Reading overload states are always reported in the standard event register (bit 3) and the 

questionable data event register (bits 0, 1, and 9). However, no error message is recorded 
in the DME1600’s error queue.

Bit

Decimal Value

Definition

0 Operation Complete

1

All commands prior to and including the *OPC com-
mand have been executed.

1 Not used

2

Set to 0

2 Query Error

4

The DME1600 tried to retrieve data from the output 
buffer, but it was empty. Or a new command was 
received before the previous query was read. Or the 
input and output buffers are full.

3 Device Error

8

There was a self-test error, calibration error, or reading 
overload.

4 Execution Error

16

An execution error occurred.

5 Command Error

32

A command syntax error occurred.

6 Not used

64

Set to 0

7 Power On

128

The power has been turned off and on since the last 
time the event register was read or cleared.

The standard event enable register is not cleared when you turn on the power after configur-
ing the DME1600 using the *PSC 0 command.

Содержание DME1600

Страница 1: ...DME1600 1 Part No IB022464 Aug 2015 Remote Interface Manual 6 1 2 Digit Multimeter DME1600 9 Setup Message Reference 1 2 A Error Messages B Sample Programs App...

Страница 2: ...www kikusui co jp en download The product that this manual covers This manual is for the DME1600 When contacting us about the product please provide us with The model written on the front panel The se...

Страница 3: ...Commands 16 Measurement Configuration Commands 18 Math Function Commands 27 Trigger Commands 30 System Commands 32 SCPI Status System 34 Status byte register 35 Standard event register 38 Questionabl...

Страница 4: ...4 DME1600 This page left blank intentionally...

Страница 5: ...Setup This chapter explains the settings that you need to configure to use the interfaces 1...

Страница 6: ...Press ENTER 6 Press PREV or NEXT to select ENABLE or DISABLE 7 Press ENTER GPIB interface Only DME1600s that are equipped with the GPIB interface card which is a factory option have support for GPIB 1...

Страница 7: ...il signal output using one of the following two methods Using the MENU key 1 Press MENU 2 Press PREV or NEXT to select INTERFACE 3 Press ENTER 4 Press PREV or NEXT to select USB 5 Press ENTER 6 Press...

Страница 8: ...Connector Pass fail output from the USB connector continued Using the CONFIG key 1 Press CONFIG 2 Press LIMITS SHIFT RATIO 3 Press PREV or NEXT to select OUTPUT 4 Press ENTER 5 Press PREV or NEXT to...

Страница 9: ...Message Reference This chapter explains the SCPI com mands 2 Message Reference...

Страница 10: ...ed for test and measuring equip ment The command structure is composed of the common roots and nodes that are the building blocks of the SCPI subsystem A command consists of a program header parame te...

Страница 11: ...s with a semicolon Example TRIG DELAY 1 COUNT 10 This compound command sends the same commands as the two following commands TRIG DELAY 1 TRIG COUNT 10 Program headers are separated by colons By using...

Страница 12: ...r when you send it When the DME1600 can only accept specific values it automatically rounds the input parameter values The following is a command that contains a numeric parameter VOLTage DC RANGe ran...

Страница 13: ...ks If you want to include a quotation mark as part of the string enter two consecutive quotation marks with no characters between them The following is a command that contains a character string param...

Страница 14: ...e measurement with the specified range and resolution settings Measured values are sent to the output buffer In AC measurement the default resolution is 5 1 2 digits Therefore only the front panel dis...

Страница 15: ...the output buffer In period measurement the DME1600 uses a single range for all input and output signals from 0 33 s to 3 3 s If no signal is applied the measured period is zero Command MEASure PERiod...

Страница 16: ...the measurement function to AC voltage measurement and sets the range and resolu tion This command does not start measurement In AC measurement the default resolution is 5 1 2 digits Therefore only th...

Страница 17: ...nt function to period measurement and sets the range and resolution This command does not start measurement In period measurement the DME1600 uses a single range for all input and output signals from...

Страница 18: ...rrently being executed function RANG Returns the range of the selected measurement function For frequency and period measure ments the range applies to the signal s input voltage not its period use FR...

Страница 19: ...igits MIN is the minimum allow able value the maximum value for the resolution MAX is the maximum allowable value the minimum value for the resolution Use one of the following character strings to ind...

Страница 20: ...ple RJUNction REAL OFFSet value MINimum MAXimum SENSe TCOuple RJUNction REAL OFFSet MINimum MAXimum Response In response to TCO RJUN REAL OFFS the DME1600 returns the offset voltage of the real refere...

Страница 21: ...MAXimum SENSe TEMPerature RTD DELTa MINimum MAXimum Response In response to TEMP RTD DELT the DME1600 returns the delta coefficient for the RTD type TEMP SPRTD RZER Sets the sensor R value at 0 degree...

Страница 22: ...1600 returns the B coefficient TEMP SPRTD CX Sets the C coefficient Command SENSe TEMPerature SPRTD CX value MINimum MAXimum SENSe TEMPerature SPRTD CX MINimum MAXimum Response In response to TEMP SPR...

Страница 23: ...eturns the gate time or aperture time for frequency measurement PER APER Sets the gate time or aperture time for period measurement to 10 ms 4 1 2 digits 100 ms default setting 5 1 2 digits or 1 s 6 1...

Страница 24: ...Command SENSe ZERO AUTO OFF ONCE ON SENSe ZERO AUTO Response In response to ZERO AUTO the DME1600 returns 1 ON or 0 OFF or ONCE GAIN AUTO Turns auto gain on or off The default setting is ON The resul...

Страница 25: ...turns the scanner card state after scanning Command ROUTe STATe Response In response to ROUT STAT the DME1600 returns 0 means it hasn t been inserted yet 1 means the 10 channel scanner card was insert...

Страница 26: ...nse In response to ROUT SCAN TIMER the DME1600 returns the scan interval ROUT SCAN COUNT Sets the scan count Command ROUTe SCAN COUNT value ROUTe SCAN COUNT Response In response to ROUT SCAN COUNT the...

Страница 27: ...or off The default setting is OFF Command CALCulate STATe OFF ON CALCulate STATe Response In response to CALC STAT the DME1600 returns 0 OFF or 1 ON CALC PERC TARG Sets the target value for the perce...

Страница 28: ...of the maximum range Command CALCulate NULL OFFSet value MINimum MAXimum CALCulate NULL OFFSet Response In response to CALC NULL OFFS the DME1600 returns the null value CALC LIM LOW Sets the lower li...

Страница 29: ...Culate DBM REFerence MINimum MAXimium Response In response to CALC DBM REF the DME1600 returns the dBm reference value DATA FEED RDG_STORE Sets whether values measured with the INITiate command are st...

Страница 30: ...ing The measured values are stored in the memory until they are retrieved Use the FETCh command to retrieve the measured values The INITiate and FETCh commands are the minimum controls necessary to tr...

Страница 31: ...measurement function range integration time and AC filter settings If you specify the delay time the auto trigger delay is automatically disabled Command TRIGger DELay AUTO OFF ON TRIGger DELay AUTO...

Страница 32: ...onse In response to DISP TEXT the DME1600 returns the message that is sent to the front panel display DISP TEXT CLE Clears the message shown on the front panel display Command DISPlay TEXT CLEar SYST...

Страница 33: ...roduct names into the character string Command SYSTEM IDNSTR quoted string DATA POIN Queries the number of measured values stored in the DME1600 s internal memory Command DATA POINts RST Resets the DM...

Страница 34: ...by commands such as ESR STAT QUES EVEN and CLS The reset command RST and the device clear command do not clear the bits in the event registers When you query an event register the DME1600 returns a de...

Страница 35: ...gister or questionable data register is queried only the cor responding bit in the summary register is cleared The enable register is cleared in the following situations When you turn on the power aft...

Страница 36: ...oes not affect the DME1600 s throughput Using the STB command to retrieve the status byte Using the STB command is similar to serial polling except that the STB command is pro cessed in the same manne...

Страница 37: ...only indicates when the first retrieval caused by the READ command occurred The MAV bit is useful for users who do not know when a trigger event such as a BUS or EXTernal event occurred After the INIT...

Страница 38: ...rors in the DME1600 s error queue are recorded as error states bits 2 3 4 and 5 in the standard event register Reading overload states are always reported in the standard event register bit 3 and the...

Страница 39: ...in the following situations When you turn on the power without using the PSC command When the STATus PRESet command is executed When the STATus QUEStionable ENABle 0 command is executed Bit Decimal V...

Страница 40: ...ing the bits set in the enable register STAT QUES EVEN Queries the questionable data event register Command STATus QUEStionable EVENt Response In response to STAT QUES EVEN the DME1600 returns a decim...

Страница 41: ...d event register enable mask are not cleared they are stored in non volatile memory 1 When the power is turned on the status byte and the standard event register enable mask are cleared Response In re...

Страница 42: ...under Status Reporting Commands ESR p 41 See ESR under Status Reporting Commands IDN p 33 See IDN under Status Reporting Commands OPC p 41 See OPC under Status Reporting Commands PSC p 41 See PSC und...

Страница 43: ...Appendix A Error Messages B Sample Programs...

Страница 44: ...d in the number specified for a parameter value 123 Numeric overflow A numeric parameter with exponent larger than 32000 was found 124 Too many digits A numeric parameter was found whose mantissa cont...

Страница 45: ...Command execution continues but all data is lost 440 Query UNTERMINATED after indefi nite response The IDN Command must be the last query command within a command string 521 Input buffer overflow 522...

Страница 46: ...As String 64 stat viOpenDefaultRM dfltRM If stat VI_SUCCESS Then Rem Error initializing VISA exiting MsgBox USBTMC resource not found vbExclamation DME1600 multimeter device test Exit Sub End If Rem...

Страница 47: ...22 ret If stat VI_SUCCESS Then MsgBox System command error meas volt dc vbExclamation DME1600 multimeter device test stat viClose fList Exit Sub End If Rem fetch the measure data stat viRead sesn rea...

Страница 48: ...List Dim desc As String VI_FIND_BUFLEN Dim nList As Long Dim ret As Long Dim readin As String 128 Dim i As Integer Array index stat viOpenDefaultRM dfltRM If stat VI_SUCCESS Then Rem Error initializin...

Страница 49: ...VI_SUCCESS Then MsgBox System command error vbExclamation DME1600 multimeter device test stat viClose fList Exit Sub End If Rem send command Select 200 Hz fast ac filter stat viWrite sesn DET BAND 20...

Страница 50: ...Sub End If Sleep 3000 wait for math processing Rem fetch the measure data stat viRead sesn readin 128 ret If stat VI_SUCCESS Then MsgBox Read in data error vbExclamation DME1600 multimeter device test...

Страница 51: ..._Timeout 7000 char pStrout Write out data buffer BYTE pStrin 64 Read in data buffer int len ULONG nWritten ULONG nRead 0 char buffer 256 char instrDescriptor 256 Load the NI VISA library for USBTMC de...

Страница 52: ...e if PviOpenDefaultRM_usb NULL PviFindRsrc_usb NULL PviClose_usb NULL PviOpen_usb NULL PviWrite_usb NULL PviRead_usb NULL PviSetAttribute_usb NULL FreeLibrary hUSBTMCLIB hUSBTMCLIB NULL MessageBox NUL...

Страница 53: ...d read the DME1600 identification string len 64 pStrout new char len ZeroMemory pStrout len strcpy pStrout idn status PviWrite_usb m_instr_usbtmc unsigned char pStrout 6 nWritten Sleep 30 if status VI...

Страница 54: ...rout 20 nWritten Sleep 3000 Fetch the DME1600 measure value screen value Set Voltage DC measure strcpy pStrout CONF VOLT DC 0 1 0 1 status PviWrite_usb m_instr_usbtmc unsigned char pStrout 21 nWritten...

Страница 55: ......

Страница 56: ...USUI ELECTRONICS CORP http www kikusui co jp en 1 1 3 Higashiyamata Tsuzuki ku Yokohama 224 0023 Japan Tel 81 45 593 7570 Fax 81 45 593 7571 Website Remote Interface Manual 6 1 2 Digit Multimeter DME1...

Отзывы: