Introduction Introduction The Section describes how to operate the meter via an optical interface. • It also explains the detail information of all interface command sets of Standard Commands for Programmable Instruments (SCPI) used in the meter. • The remote control operation enables the user either to manually operate the meter via a terminal or to execute a host computer program automatically.
Chapter 1 Remote Interface Overview Remote Interface Chapter 1 Overview Fig. 1 shows a connection between the 3801-50/ 3802-50 and a computer via an optical cable. Either a USB or an RS-232C interface optical cable can be used for communication.
• The remote indicator of the 3801-50, 3802-50 is flashing when the meter is set to data output ON. • If the remote interface of the 3801-50, 3802-50 is under data output mode, the 3801-50, 3802-50 will print out the measured data when the measurement cycle is completed.
Chapter 3 Commands Summary Commands Chapter 3 Summary Overview of Command Type and Format • All commands must be entered in the upper case. • There are two types of the 3801-50, 3802-50 programming commands: IEEE common commands Standard Commands for Programmable Instruments (SCPI).
Page 12
Chapter 3 Commands Summary Terminator A terminator is a character sent by a host, which identifies the end of a command string. A valid terminator consists of two-byte data: <CR> (Carriage Return, ASC(&H0D)) <LF> (Line Feed, ASC(&H0A))
Chapter 4 Responding Message Responding Chapter 4 Message Return result • After the meter executes a query command the return of the result will be in the following format: <Result> + <CR> <LF> • If communication of the meter is under data output mode, the meter will print out the measured data when the measurement cycle is completed.
Page 14
Chapter 4 Responding Message Data Types of Responding Message and Parameter Data Type Explanation Example ASCII-encoded bytes corresponding to the <Literal> short form of the literal AVER, PEAK used as the command parameter. *: +9.90000000E+37 means positive overload, -9.90000000E+37 means negative overload.
Page 15
Function switch position: Function switch position: μA Function switch position: mA.A Function switch position: (Only 3801-50) ASC(&H11) Xon: The meter is available. ASC(&H13) Xoff: The meter is busy. • On Model 3802-50, undetermined characters such as 「∗」 or 「∗8」 may be returned when the function switch is turned from mA.A to OFF.
Chapter 5 Instructions of Command Sets Instructions of Chapter 5 Command Sets 5.1 IEEE 488 Common Commands *CLS Description Clear the System Error Queue. *IDN? Description Query the Meter identification. Response Returns instrument maker name, model number, serial number and firmware version. *RST Description Put the meter to power-on-reset state, but no affect the Output...
PERCent Description • Set to DC, AC or AC+DC current measurement. (Only 3801-50: AC+DC) The function switch is at current measuring. When measuring DCmA, select the % conversion. Use the SYST:CPER command to select the 4-20 mA or 0-20 mA scale.
Page 19
CONFigure :FCOUnter :PREScale<1 / 100> Description Select frequency counter prescaling. (Only 3801-50) The function switch is at diode measuring. Range is auto range. Parameter :Disables frequency counter prescaling (divisor = 1). 100 :Disables frequency counter prescaling (divisor = 100).
Page 20
This can be selected when voltage, current or frequency counter∗ (divisor = 1) measurement is selected. ∗ Only 3801-50 Parameter • If parameter is omitted, the meter is set to auto range. • Enter the pulse measurement range to <range>: •...
Page 21
The function switch is at diode measuring. CONFigure:TEMPerature <K | J> Description Set to temperature measuring with continuity test. (Only 3801-50 : J Termocouple) The function switch is at C measuring. Paramete K, J: Termocouple sensor(Type K or J). CONF:TEMP K...
Page 22
Chapter 5 Instructions of Command Sets Example Function Range Resolution Temperature TEMP:ENV CEL ambient temperature Elapsed time of 100000 TIME:PRES+1.000000E+05,+1.000000E+00 recording function • If query the sub function and the sub is not set, the meter returns an error prompt to the host. CONF:FREQ CONF:PULS •...
NULL - Enables the relative value (REL) display function. AVER - Recording function PEAK - Peak-hold function -Set to decibel measuring.(dBm) (Only 3801-50: AC+DC) -Set to decibel measuring.(dBV) (Only 3801-50: AC+DC) NONE - Disables calculation function settings. Example CALC:FUNC AVER When AVERage or PEAKhold is selected, the trigger signal source changes to IMMediate.
Page 24
Chapter 5 Instructions of Command Sets CALCulate :AVERage :MAXimum? :MINimum? :AVERage? :PRESent? :COUNt? Description Query the value of the dynamic recording function. Response Return <NR3> format string. CALC:AVER:MAX? Example : Query the maximum measuring value. CALC:AVER:MIN? : Query the minimum measuring value.
Chapter 5 Instructions of Command Sets TRIGger Subsystem: TRIGger:SOURce < BUS | REFreshhold | IMMediate > Description Select the source of the start trigger signal. Parameter - select a bus command and enter the trigger (hold) mode. - select a refresh-hold trigger source and enter the trigger mode - select the internal trigger source and escape the trigger mode.
Page 26
Chapter 5 Instructions of Command Sets Measuring Subsystem: FETCh? [@2] Description • Return the primary or secondary function value of output buffer. • Retrieves the measurements taken by the INITiate command and places them into the device's output buffer. • The query will return data any time that the last reading is valid.
Example : The duty ratio is 25%. SQUare:PWIDth:DECimal <numeric> Description Set the pulse width of the pulse output.(Only 3801-50) The function switch is at pulse output. Pulse width = numeric / (frequency x 0.256) Parameter Value to be entered to <numeric>: 1 to 255.
Chapter 5 Instructions of Command Sets SYSTem Subsystem: SYSTem:ERRor? Description Query the error message. Response Return <Number,"Error String"> format string. The following table is a list of SCPI error message that might occur during operation. The buffer size of the system error queue is one. SCPI Error Message Error String Error String...
Page 29
Chapter 5 Instructions of Command Sets SYSTem:BLIT <Boolean> Description Enable or disable the back lit. Parameter Value to be entered to <Boolean>: ON, 1: OFF, 0 The backlit will be auto turned off depending on below time setting. To turn off backlit by this command once the time is set to "0".
Description CONFigure? [@2] Query the function of the display. CONFigure Configure the meter to perform specified measurement. :VOLTage Set the voltage measurement. [<range>] [<range>] (Only 3801-50) :ACDC [<range>] :CURRent Set the current measurement. [<range>] [<range>] :ACDC [<range>] PERC (Only 3801-50) Set the frequency counter prescaling.
Page 32
Chapter 6 Summary of SCPI Commands Command Parameter Description TRIGger Trigger function :SOURce? Query the trigger source type. :SOURce <BUS|REF|IMM> Select a trigger source. :REF:COUNt? Query the threshold of the refresh-hold mode. :REF:COUNt <numeric>: 0 to 1000 Set the threshold of the refresh-hold mode. ABORt Reset the trigger system of the meter.
Page 33
Chapter 6 Summary of SCPI Commands Command Parameter Description SOURce? Query the plus output function. (Only 3801-50) SQUare Set the puls output. (Only 3801-50) :DCYCle:DECimal <numeric>: 1 to 255 Set the duty ratio of the pulse output. :PWIDth:DECimal <numeric>: 1 to 255 Set the pulse width of the pulse output.
Chapter 7 Remote Program Example Using Visual Basic 6 Remote Program Example Using Chapter 7 Visual Basic 6 Acquires ten measurement values and displays the average value. Private Sub Command1_Click() ' Create a form containing the following three objects: ' 1.TextBox - Text1 ' 2.CommandButton - Command1...
Page 36
Chapter 7 Remote Program Example Using Visual Basic 6...
Page 39
HIOKI 3801-50, 3802-50 DIGITAL HiTESTER Remote Operation Manual Publication date: November 2005 Edition 1 Edited and published by HIOKI E.E. CORPORATION Technical Support Section All inquiries to International Sales and Marketing Department 81 Koizumi, Ueda, Nagano, 386-1192, Japan TEL: +81-268-28-0562 / FAX: +81-268-28-0568 E-mail: os-com@hioki.co.jp...
Page 40
HEAD OFFICE 81 Koizumi, Ueda, Nagano 386-1192, Japan TEL +81-268-28-0562 / FAX +81-268-28-0568 E-mail: os-com@hioki.co.jp / URL http://www.hioki.co.jp/ HIOKI USA CORPORATION 6 Corporate Drive, Cranbury, NJ 08512, USA TEL +1-609-409-9109 / FAX +1-609-409-9108 3802C982-00 05-11H...
Need help?
Do you have a question about the 3801-50 and is the answer not in the manual?
Questions and answers