Hioki 3801-50, 3802-50 Remote Operation Manual

REMOTE OPERATION MANUAL
3801-50 3802-50
DIGITAL HiTESTER
Contents
Contents
Introduction.................................................................................1
Symbols......................................................................................1
i
Responding Message ________________________ 9 Chapter 5
Instructions of Command Sets________________ 13
5.1 IEEE 488 Common Commands..................................13
5.2 SCPI Commands ........................................................14
ii
Contents

Introduction

Trademars

Symbols

1
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.
Visual Basic is a registered trademark of Microsoft Corporation in the United States and/or other countries.
Safety Symbol
Other symbols
The following symbols in this manual indicate the relative importance of cautions and warnings.
Indicates advisory items related to performance or correct operation of the instrument.
Indicates the reference.
Iterminology explained at the bottom of the word.
*
2
Symbols
Chapter 1 Remote Interface Overview
Remote Interface
Overview Chapter 1
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.
Procedure
1. Connect the cable to the connector or USB port.
RS-232C interface optical cable
USB optical cable
to the 9-pin Type D male connector on the computer.
Connect to the USB port on the computer.
3
2. Once the USB cable is connected and the USB driver is installed, a
virtual RS-232COM port is created on the computer. (Only when using a USB optical cable)
• The remote interface is a serial binary data interchange, which operates from 2400 to 19200 baud rate.
• The communication port of the 3801-50, 3802-50 is designed in full duplex, which makes the meter more reliable and efficient in data taking.
Cable connection for Communication
When connecting the communication cable to the meter, ensure that the label RS-232C INTERFACE label faces upwards as shown in Fig. 1.
4
Chapter 1 Remote Interface Overview
Chapter 2 Setting Remote Interface Parameters
Setting Remote Interface
Parameters Chapter 2
In order to operate the meter via a host computer or terminal, the parameters in interface wi thin t he 3801-50, 38 02-50 ha ve to mat ch the parameters in the serial inter face provided by the host or terminal.
The following procedures will guide the user to set up interface parameters within the 3801-50, 3802-50 to comply interface with the host.
The default settings of the meter at factory are 9600-baud rate, non­parity check , 8 data lengths, and 1 stop bit (9600, n, 8, 1).
5
The following table indicates the factory settings and user selectable communication parameters by using remote interface.
Remote Interface Parameters
Item Parameter
1 2 3 4 5
Baud Rate 9600 2400, 4800, 9600, 19200
parity check None None, Odd or Even
data length 8 7 or 8
response OFF ON or OFF
data output OFF ON or OFF
Factory
Setting
Selectable Parameter
response
With response ON, the meter responsees (returns) all the characters whatever it receives.
data output
• 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.
• The 3801-50, 3802-50 auto-sends the newest data to a host continuously.
• The 3801-50, 3802-50 doesn't accept any commands under data output mode.
Setup Procedures for Communication Parameter
To ensure the remote interface will operate appropriately, user may need to configure the remote interface parameters on power on option. Please refer to operation procedures of POWER-ON OPTION.
3801-50, 3802-50 instruction manual ”Power-On Options”
6
Chapter 2 Setting Remote Interface Parameters
Chapter 3 Commands Summary
Commands
Summary Chapter 3
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 488 common commands and Standard Commands for Programmable Instruments (SCPI).
• Some commands are device-specific to the 3801-50, 3802-50. They are not included in the version 1999.0 of the SCPI standard. However, these commands are designed with the SCPI format in mind and they follow the syntax rules of th e standard.
7
Common Command Format
• The IEEE 488 standard defines the common commands as commands that perform functions like reset and system query.
• Common commands usually come with the asterisk "" character, and may include parameters. Some examples of Common command like: *IDN?, *RST, *CLS, GTL, LLO.
SCPI Command Format and Query Format
• The SCPI commands control instrument functions.
• A subsystem command has a hierarchical structure that usually consists of a top-level (or root) keyword, one or more lower level keywords, and parameters.
• The following example shows a command and its associated query:
A. CONFigure:VOLTage:DC 0.5: Set the main display to the DC
voltage measurement , and select the 510.00mV range.
B. CONFigure? : Return the function of the main
display measurement.
• CONFigure is a root level keyword with the second level keyword, VOLTage, and 0.5 is the command parameter.
• The query command ends with a question mark "?".
SCPI stems from IEEE488.1 and IEEE 488.2. Although the IEEE
488.2 standard addressed some instrument measurements, it principally dealt wi th common commands and synt ax or data formats. Please refer to the IEEE488.2 and SCPI reference manual for more information.
8
Chapter 3 Commands Summary
Terminator
A terminator is a character sent by a host, which identif ie s 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
Message Chapter 4
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. The printed data are only for p ri ma ry display. The format of printed data will be shown as following:
9
<Measurement Data> + <CR> <LF>
• On the meter warning the return of the prompt will be in the fo llowing format except Xon and Xoff:
<Prompt> + <CR> <LF>
Data Types
• Returned message is the ASC II string from the meter responding t o a query.
• A query is a command followed by a question mark.
The following table is explanation for data types.
Data Types of Responding Message and Parameter
Data Type Explanation Example
<NR1>
<NR2>
An integer This numeric
representation has an explicit radix point.
+10000, -10000, 123, -100
+13.234, -.00002, 3.4567
<NR3>
<Boolean>
This representation has an explicit radix point and an exponent.
Single ASCII-encoded byte, is return fo r the setting query.
-1.20000000E+02, +9.90000000E+37*
0 or 1,OFF or ON
10
Chapter 4 Responding Message
Data T ypes of Responding Message and Parameter
Data Type Explanation Example
<Literal>
*: +9.90000000E+37 means positive overload,
-9.90000000E+37 means negative overload.
ASCII-encoded bytes corresponding to the short form of the literal used as the command parameter.
AVER, PEAK
11
Chapter 4 Responding Message
Prompts
When the meter comes up any system warnings, the meter sends a prompt string to the host through remote interface.
The meter returns one of the prompts as shown on the foll owing table.
1
Return Prompts
Prompts Description
*L *E *B
*I
*0 *1 *2 *3
*4 *5
Into local mode Remote command's error warning Battery low warning Input warning
• When a test lead is connected to the "A" terminal while the function switch is set to a function other than mA.A
• When the input voltage exceeds 1010 V during voltage measurement
Function switch position: V Function switch position: V Function switch position: mV Function switch position: Ω Function switch position: Function switch position:
*6 *7
*8
ASC(&H11) ASC(&H13)
Function switch position: μA Function switch position: mA.A
Function switch position: (Only 3 801-50) Xon: The meter is available. Xoff: The meter is busy.
• On Model 3802-50, undetermined characters suc h as 」 or 8」 may be returned when the function switch is turned from mA.A to OFF. This occurs when the meter is sending the function switch status at the moment it is switched off. This response should be ignored.
• You can confirm the input warning status from the N and O items returned in response to the STAT? command.
26p
12
Chapter 4 Responding Message
Chapter 5 Instructions of Command Sets
Instructions of
Command Sets Chapter 5

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.
13
*RST
Description Put the meter to power-on-reset state, but no affect the Output
Queue and interface parameter.
The reset operation is executed for 3 second s at least. Be sure to exe cute other commands then.
LLO
Description Put the meter into the local lockout state when in remote
control. This means no local key operation at the front panel is allowed during remote control.
GTL
Description Put the meter into the local state, clearing the remote state and
front panel lockout.
14
Chapter 5 Instructions of Command Sets

5.2 SCPI Commands

This subsection describes the SCPI subsystem commands for the meter. The meter only accepts the UPPER CASE part of command. It is unnecessary to send complete command characters.
Some SCPI Symbol Conventions
Text Symbol
[ ]
|
< >
( )
?
:
;
Option: can be omitted Exclusive OR Defined element Comment Question mark Separated two command
keywords Compound commands
Meaning
CONFigure Subsystem:
CONFigure
:CURRent
:DC [<range>] :AC [<range>] :ACDC [<range>]
: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.
Parameter • If parameter is omitted, the meter is set to auto range.
• Enter the current measurement range to <range>.
Example
The function switch is at μA measuring: 500 500
u(510.00 μA), 5000u(5100.0 μA)
The function switch is at mA.A measuring: 0.05, 0.5, 5 or 10
0.05(51.000 mA), 0.5(510.00 mA), 5(5.1000 A), 10(10.000 A)
CONF:CURR:DC : Set to DC current. CONF:CURR:AC 0.5 : Set to AC current and 510.00 mA
range.
CONF:CURR:PERC : For DCmA measurements, select the
% conversion..
u, 5000u
Chapter 5 Instructions of Command Sets
CONFigure
:VOLTage
:DC [<range>] :AC [<range>] :ACDC [<range>]]
Description Set to DC, AC or AC+DC voltage measurement. (Only 3801-
50: AC+DC) The function switch is at mV measuring or V measuring.
Parameter • If parameter is omitted, the meter is set to auto range.
• Enter the voltage measurement range to <range>: The function switch is at mV me as uring : 0.05 0.5 or 1
0.05(51.000 mV), 0.5(5 10.00 mV), 1(1000.0 m V) The function switch is at V measuring: 5, 50, 500 or 1000 5(5.1000 V), 50(51.000 V), 500(510.00 V), 1000(1000.0 V)
Example
CONF:VOLT:DC : Set to DC voltage measuring. CONF:VOLT:AC 0.5 : Set to AC voltage and 510 mV
range.
CONFigure
:FCOUnter
:PREScale<1 / 100>
Description Select frequency co unte r pres ca li ng. (Onl y 380 1- 50)
The function switch is at
Parameter 1 :Disables frequency counter prescaling (divisor = 1).
100 :Disables frequency counter prescaling (divisor = 100).
Example
CONF:FCOU:PRES 1: Disables frequency counter
prescaling (divisor = 1).
diode measuring. Range is auto range.
15
CONFigure:FREQuency
Description Frequency measurement can be selected for voltage or current
measurement. The function switch is at voltage or current measuring. The display shows both main and sub displays simultaneously. The frequency range changes when measuring frequency. (Only 3801-50) The function switch is at D(Hz).
Parameter • If parameter is omitted, the meter is set to auto range.
• Enter the resistance measurement range to <range>. (Unit:
Hz)
: 100, 1000, 10K, 100K, 1000K, 10M frequency measurement)
[<range>]
∗, or 100M∗(Only
Only 3801-50 frequency counter measurement.
Example
CONF:FREQ 10k : Set to frequency measuring and 9.9999
kHz range.
16
Chapter 5 Instructions of Command Sets
CONFigure
:PULSe
:PWIDth [<range>] :NWIDth [<range>] :PDUTycycle :NDUTycycle
Description Set to pulse width measurement, pulse duty measurement.
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>:
• Set the parameter to 5 to select the 1999.9 ms range for pulse width measurement. :0.5, 5
0.5(510.00 ms), 5(1999.9 ms)
Example
CONF:PULS:NWID 0.5 :Sets negative pulse width CONF:PULS:NDUT :Measures negative pulse duty.
measurement in the 510.00 ms range.
CONFigure:RESistance [<range>]
Description Set to 2-wire resistance measuring.
The function switch is at resistance measuring.
Parameter • If parameter is omitted, the meter is set to auto range.
• Enter the resistance measurement range to <range>. (Unit:
Example
): 500, 5K, 50K, 500K, 5M, 50M or 500M
Only 3801-50
CONF:RES 50k : Set to resistance measuring and 51.000 k
range.
CONFigure:CONTinuity [<range>]
Description Set to 2-wire resistance measuring with the continuity test.
The function switch is at resistance measuring.
Parameter • If parameter is omitted, the meter is set to auto range.
• Enter the resistance measurement range to <range>.(Unit:
): 500, 5K, 50K, 500K, 5M, 50M or 500M
∗.
Only 3801-50
Example
CONF:CONT 500 : Set to resistance measuring with the
continuity test and 510.00 range.
CONFigure:CONDuctance
Description • Set to conductance measuring . The function switch is at
resistance measuring.
Example
CONF:COND : Set to conductance measuring.
CONFigure:CAPacitance [<range>]
Description Set to capacitance measurement . The function switch is at C
measuring.
Parameter If parameter is omitted, the meter is set to auto range.
Capacitance measurement range to <range>.(Unit: F) : 10n, 100n, 1000n, 10u, 100u, 1000u, 10m or 100m
Example
CONF:CAP 100u: Set to capacitance measurement and
99.99
μF range.
17
Chapter 5 Instructions of Command Sets
CONFigure:DIODe
Description Set to diode measuring with continuity test.
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 Example CONF:TEMP K: Set to temperature of the K termocouple.
CONFigure? [@2]
Description Query the function of the primary or secondary display. Parameter If parameter is omitted, query the function of the main display. Response Return <"function range,resolution"> format string, the
Example Function Range Resolution
K, J: Termocouple sensorType K or J).
examples are as following:
VOLT +5.000000E-01,+1.000000E-05
CURR:AC +5.000000E-02,+1.000000E-06
VOLT:DBM
CPER:0-20mA +5.000000E-02,+1.000000E-06
percentage disply:
DCV
ACA
dBm
DCmA
0-20mA
FREQ +1.000000E+03,+1.000000E-02
PULS:PWID +5.000000E+00,+1.000000E-04
PULS:NDUT
CAP +1.000000E-08, +1 .000 000 E- 12 CCapacitance
RES+5.000000E+07,+1.000000E+03
Frequency
Pulse
width(Positive)
Pulse duty
ratio(Negative)
Resistance
R
510.00 mV
51.000 mA
51.000 mA
999.99
Hz
1999.9
ms
9.999 nF
51.000
M
0.01 mV
0.001 mA
0.001 mA
0.01 Hz
0.1 ms
0.001 nF
0.01 M
COND+5.000000E-07,+1.000000E-11
CONT +5.000000E+02,+1.000000E-02
DIOD
TEMP:TC K CEL
R
Conductance
Continuous)
R
Diode
Temperature
K-thermocouple
510.00 nS
510.00
0.01 nS
0.01
18
Chapter 5 Instructions of Command Sets
Example Function Range Resolution
TEMP:ENV CEL
TIME:PRES+1.000000E+05,+1.000000E+00
• If query the sub function and the sub is not set, the meter returns an error prompt to the host.
• The sub display is enabled by sending command. Origina l main function changes to sub display, and the main function is replaced by frequency or pulse function.
Temperature
ambient temperature
Elapsed time of
recording function
CONF:FREQ or CONF:PULS
100000
s
1 s
19
Chapter 5 Instructions of Command Sets
CALCulate Subsystem:
CALCulate:FUNCtion NULL
AVERage PEAKhold [,< DC | AC | PERCent >] DBM [,< DC | AC | ACDC >] DBV [,< DC | AC | ACDC >] NONE
Description Set or off the function of the calculation. Parameter NULL - Enables the relative value (REL) display function.
AVER - Recording function PEAK -Peak-hold function DBM -Set to decibel measuring. (dBm)
(Only 3801-50: AC+DC)
DBV -Set to decibel measuring. (dBV )
(Only 3801-50: AC+DC)
NONE-Disables calculation function settings.
Example
When AVERage or PEAKhold is selected, the trigger signal source changes to IMMediate.
21p
The following ca lculation functions can be combined: AVER/NULL, PEAK/ NULL, NULL/AVER,DBx/AVER (/NULL), DBx/NULL (/AVER)
CALC:FUNC AVER
CALCulate:FUNCtion?
Description Query the function of the calculation. Response Return <Literal> format string:
AVER, PEAK, NULL, DBM,
DBV or NONE.
Example Return of
relative value (REL) display functions are enabled.
AVER or NULL indicates that the recording and
CALCulate:NULL:OFFSet?
Description Query the offset value of the relative value (REL) function. Response Return <NR3> format string.
CALCulate:DBM:REFerence <numeric>
Description Set the reference impedance for the decibel (dBm) conversion
screen.
Parameter Value to be entered to <numeric> : 1-9999
Stored in non-volatile memory.
CALCulate:DBM:REFerence?
Description Query the decibel (dBm) conversion of the reference
impedance.
Response Return <NR3> format string.
20
Chapter 5 Instructions of Command Sets
CALCulate
:AVER age
:MAXimum? :MINimum? :AVERage? :PRESent? :COUNt?
Description Query the value of the dynamic recording function. Response Return <NR3> format string. Example
CALC:AVER:MAX? : Query the maximum measuring CALC:AVER:MIN? : Query the minimum measuring CALC:AVER:AVER? : Query the average measuring value.
CALC:AVER:PRES? : Query the present measuring value. CALC:AVER:COUN?: Query the sampling frequency of the
CALCulate
:PEAKhold
:MAXimum? :MINimum?
Description Query the value of the peak-hold function. Response Return <NR3> format string. Example
CALC:PEAK:MAX?: Query the maximum peak-hold value. CALC:PEAK:MIN? : Query the minimum peak-hold value.
value. value.
average mode.
21
Chapter 5 Instructions of Command Sets
TRIGger Subsystem:
TRIGger:SOURce < BUS | REFreshhold | IMMediate >
Description Select the source of the start trigger signal. Parameter
Example
• If BUS or RE F is selected when the recordin g and peak hold functions are enabled, they are disabled.
• The threshold for the refresh-hold function must be set before selec ting BUS or REF .
• When the threshold of the refresh-hold mode is zero(OFF), the parameter REF is invalid. Contrary, the parameter BUS is invalid when the threshold of the refresh-hold mode is not zero(OFF).
BUS - select a bus command and enter the trigger (hold)
mode.
REF - select a refresh-hold trigger source and enter the trigger
mode
IMM - select the internal trigger source and escape the trigger
mode.
TRIG:SOUR BUS
TRIGger:SOURce?
Description Query the type of the trigger source. Response Return <Literal> format string:
BUS, REF, IMM
TRIGger:REFreshhold:COUNt <numeric>
Description Set the threshold for the refresh hold mode. Parameter
Stored in non-volatile memory.
<numeric>: 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000.
TRIGger:REFreshhold:COUNt?
Description Query the threshold of the refresh hold mode. Response Return <NR1> format string: 0 to 1000.
ABORt
Description When the trigger hold function is enabled (TRIG HOLD
displayed), the displayed value is reset and measurement is stopped. Measurement does not resume until a subsequent INIT or READ? command is sent, or when the HOLD key is pressed.
INITiate
Description Acquires one sample when the trigger hold function is enabled
(TRIG HOLD displayed). Valid when TRIGger:SOURce is set to BUS.
22
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.
• The meter produces an Error 230 in the following case, and no result is re tu r ne d : When invalid data is present while awaiting a trigger event (such as when the range is changed while the Hold function is enabled).
Parameter If parameter is omitted, the meter returns the primary function
value. Response Return <NR3> format string. Example
• If query the sub functio n value and the su b is not set, th e meter returns an error prompt to the host.
• The sub display is enabled by sending command. Origin al main function changes to sub function, and the main function is replaced by frequency or pulse function.
FETC? @2: Return the value, e.g. +1.23450000E+00
CONF:FREQ or CONF:PULS
READ?
Description • Return the primary function value of output buffer after the
next triggered measurement is complete.
• The command provides a method of performing a operation on fresh data.
The query command is id entic al to: ABOR; INIT; FETC?. The command is like FETCh? on the immediate trigger mode.
Response Return <NR3> format string.
FETC?
Chapter 5 Instructions of Command Sets
SOURce Subsystem:
SOURce?
Description Query the set the pulse output. (Only 3801-50
Response
The function switch is at
<"function amplitude,frequency, duty ratio"> format string, the
examples are as following:
pulse output
.
23
Example Function
SQU+2.800000E+00, +1.200000E+03,+5.000000E+01
pulse output
Amplitude
2.8 V
Frequency
duty
1200 Hz
50%
SOURce:DCYCle:DECimal <numeric>
Description Set the duty ratio of the
The function switch is at
Duty ratio = numeric / 256 (Unit :%) Parameter Value to be entered to <numeric>: 1 to 255 Example
SQU:DCYC:DEC 64: The duty ratio is 25%.
pulse output (Only 3801-50)
pulse output
.
SQUare:PWIDth:DECimal <numeric>
Description Set the pulse width of the
The function switch is at
Pulse width = numeric / (frequency x 0.256) Parameter Value to be entered to <numeric>: 1 to 255. Example
SQU:PWID:DEC 64: The pulse width is approx 0.42 ms on
pulse output
pulse output
600 Hz.
.(Only 3801-50)
.
SQUare:FREQuency <numeric>
Description Set the frequency of the
The function switch is at Parameter <numeric>: 0.5, 1, 2, 5, 10, 15, 20, 25, 30, 40, 50, 60, 75, 80,
100, 120, 150, 200, 240, 300, 400, 480, 600, 800, 1200, 1600,
2400, 4800.
The other numeric is invalid value. Example
SQU:FREQ 600: Set the frequency at 600 Hz.
pulse output pulse output
.(Only 3801-50) .
24
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
Num
ber
+0
-100
-200
Error String
No error Command error Execution error
Num
ber
-213
-220
-230
Error String
Init ignoredInit Parameter e rr o r Data stale
SYSTem:VERSion?
Description Query the version of the SCPI. Response Return 1999.0 string.
SYSTem:BEEPer [< CONTinous | STOP | TONE >]
Description • Set the action of the beeper.
• Ignore the original state of the beeper.
Parameter If parameter is omitted, the meter is set to tone.
CONT- beep continuously. STOP- stop to beep. TONE- beep one tone.
Example
SYST:BEEP:beep one tone.
SYSTem:TCOMpensated <Boolean>
Description Enable or disable the "0°C" temper atu re compe ns ati on.
The function switch is at Set this after enabling temperature measurement with the TEMP command .
C measurement
.
17p
Parameter Value to be entered to <Boolean>: ON, 1: OFF, 0
SYSTem:TENVironment <Boolean>
Description Select whether to display the environment (ambient)
temperature on the sub display (measured by an internal thermal sensor). This selection is available when not measuring on the sub displa y.
Parameter Value to be entered to <Boolean>: ON, 1: OFF, 0
25
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 a uto turned off dependin g on below time se tting. To turn off backlit by this command once the time is set to "0".
SYSTem:BLIT:TIME <second>
Description Set the time of the back lit. Parameter Value to be entered to <second>: 0 to 99
(Set "0" to disable auto turning off backlit.)
Stored in non-volatile memory.
SYSTem:AOFF:TIME <minute>
Description Set the time of the auto power save function. Parameter Value to be entered to <minute>:0 to 99
(Set "0" to disable auto power save function.)
Stored in non-volatile memory.
SYSTem:CPERcent < 0-20 | 4-20 >
Description
Parameter Example
Stored in non-volatile memory.
Selects the % conversion display (4-20mA or 0-20mA) for DCmA
measurements. It is available when % conversion display is enabled
by the CONF:CURR:PERC command.
0-20: 0 mA (0 %) 20 mA (100 %)
4-20: 4 mA (0 %) 20 mA (100 %)
SYST:CPER 4 to 20
SYSTem:BATTery?
Description Query the Parameter
Example
<NR3>Outputs a formatted text string. Response from 0 to 100%
corresponds to battery voltage of 6.0 to 10.0 V.
0% (6.0 V) to 100% (10 V)
Stored in non-volatile memory.
battery level.
SYSTem:DEFAult
Description
Returns meter settings to their factory defaul ts. Internal adjustments
are unaffected. The meter resets after executing this command.
26
Chapter 5 Instructions of Command Sets
STATus Subsystem:
STATus?
Description Query the status of the meter. Response Return <"ABCDEFGHIJKLMNOPQRSTU"> format string.
Each character means as following:
Item Description
A Recordong
Relative value
B
C D E
F Percentage 0: 0-20 mA, 1: 4-20 mA
G H Refresh hold 0: off, 1: on
I
J
K
L
M
(REL)
Decibel
Unused always 0
Peak hold 0 :off, 1: on
Trigger hold I: IMM, B: BUS, R: REF
0°C temperature
compensation
Beep 0: off, 1: 1 kHz, 2: 2 kHz, 4: 4 kHz, F: 600 Hz
Auto power
savef
Back lit 0: off, 1:on
Meter mode always L
0: off, 1: on
0: off, 1: on
0: off, M: dBm, V: dBV
0: off, 1: on
0: off, 1:on
N
Input warning 0:normal, 1:warming
O
Terminal A
connection
0:Unconnected state, 1:Connected state (The test lead connects it with terminal A.)
0: ACV input 1: V input 2: voltage input & voltage output
Function switch
P
position
3: input 4: capacitance input 5: diode input 6:
μA input
7: mA.A input 8: pulse output (Only 3801-50)
Q
Output status 0:stand-by, 1:operation
R S
T
U
Rate 4:50000 counts
Battery 0:normal, 1:low
Frequency
counter divisor
0:1 1:100 (3802-50 is always 0)
Auto range 0:off, 1:on
Chapter 6 Summary of SCPI Commands
Summary of SCPI
Commands Chapter 6
Command Parameter Description
27
CONFigure? CONFigure
:VOLTage
:AC :DC :ACDC
:CURRent
:AC :DC :ACDC PERC
:FCOUnter:PREScale
[@2] Query the function of the display.
Configure the meter to perform specified measurement.
Set the voltage measurement. [<range>] [<range>] [<range>]
[<range>] [<range>] [<range>]
[<0|100>]
(Only 3801-50)
Set the current measurement.
(Only 3801-50)
Set the frequency counter prescaling. (Only
3801-50)
:FREQuency :PULSe
:PWIDth :NWIDth :PDUTycycle
:NDUTycycle :CAPacitance :RESistance
:CONTinuity
:CONDuctance :DIODe :TEMPerature
[<range>] Set the meter to frequency measurement.
Set the pulse measurement. [<range>] Positive pulse width [<range>] Negative pulse width
Positive pulse duty ratio
Negative pulse duty ratio [<range>] Set the capacitance measurement . [<range>] Set the resistance measurement.
[<range>]
[<K|J>] Set the temperature measurement.
Set the resistance measurement with the
continuity test.
Set the conductance measurement.
Set the diode measurement.
28
Chapter 6 Summary of SCPI Commands
Command Parameter Description
TRIGger
:SOURce? :SOURce :REF:COUNt?
:REF:COUNt ABORt INITiate[:IMMediate] FETCh?
READ?
CALCulate
:FUNCtion?
:FUNCtion
Trigger func tion Query the trigger source type.
<BUS|REF|IMM> Select a trigger source.
Query the threshold of the refresh-hold mode.
<numeric>: 0 to 1000 Set the threshold of the refresh-hold mode.
Reset the trigger system of the meter. Initiate the trigger system of the meter.
[@2]
Return the data any time t hat the l ast r eading i s valid.
Query the calculation function.
<function> Set the calculation function.
:NULL:OFFSet?
:DBM
:REFerence?
:REFerence
:AVERage
:MAXimum? :MINimum? :AVERage? :PRESent? :COUNt?
:PEAKhold
:MAXimum? :MINimum?
<numeric>:1 to 9999
Query the offset value of the relative (REL) function.
Query the decibel (dBm) conversion of the reference impedance.
Set the reference impedance for the decibel (dBm) conversion screen.
Query the value of the dynamic recording function.
Query the value of the peak-hold function.
Chapter 6 Summary of SCPI Commands
Command Parameter Description
29
SOURce? SQUare
:DCYCle:DECimal <numeric>: 1 to 255 :PWIDth:DECimal <numeric>: 1 to 255 :FREQuency <numeric>
SYSTem
:AOFF:TIME <minute>: 0 to 99 :BEEPer [<CONT|STOP|TONE>] :BLIT <Boolean>
:TIME <second>: 0 to 99 :CPERcent < 0-20 | 4-20 > For DCmA measurements, select the % conversion. :TCOMpensated <Boolean>
:TENVironment <Boolean>
Query the plus output function. (Only 3801-50) Set the puls output. (Only 3801-50) Set the duty ratio of the pulse output. Set the pulse width of the Set the frequency of the
pulse output
pulse output
.
.
Set the time of the auto power save function. Set the action of the beeper
Enable or disable the back lit. Set the time of the back lit.
Sets 0 temperature compensation. Selects display of environment (ambi ent)
temperature.
:DEFAult
:BATTery?
:ERRor? :VERSion?
STATus?
Returns meter settings to their fact ory defaults. Queries the remaining charge state of the
battery. Query the error message. Query the version of the SCPI. Query the status of the meter.
30
Chapter 6 Summary of SCPI Commands
Chapter 7 Remote Program Example Using Visual Basic 6
Remote Program Example Using
Visual Basic 6 Chapter 7
Acquires ten measurement values and displays the aver age value.
Private Sub Command1_Click() ' Create a form containing the followin g three objects: ' 1.TextBox - Text1 ' 2.CommandButton - Command1 ' 3. Microsoft Comm Control 6.0- MSComm1 added from Menu Bar / Project / Components ' Add from the menu bar [Project] - [Component].
31
MSComm1.CommPort = 1 ' set COM1 port MSComm1.PortOpen = True ' open COM MSComm1.Settin g s = "9600,n,8,1" ' communications settings
MSComm1.Output = "LLO" & vbCrLf ' send Local lock command MSComm1.Output = "CONF:VOLT:DC 5" & vbCrLf ' set DCV 5V function
For i = 1 To 50000 ' wait for function ready DoEvents Next i
buffer = MSComm1.Input ' clear COM input buffer Text1.Text = "" ' clear display reading = 0 ' clear average value
For i = 1 To 10 MSComm1.Output = "FETC?" & vbCrLf ' send FETCH? command buffer = "" Do buffer = buffer & MSComm1.Input Loop While InStr(buffer, vbCrLf) = 0 ' receive reading reading = reading + Val(buffer) ' sum reading Text1.Text = Text1.Text & "Reading" & i & " = " & buffer & vbCrLf
' show reading
Next i Text1.Text = Text1.Text & vbCrLf & "Average = " & (reading / 10) & vbCrLf
' show average
MSComm1.Output = "GTL" & vbCrLf ' send Goto Local command MSComm1.Port Open = False ' close COM End Sub
32
Chapter 7 Remote Program Example Using Visual Basic 6
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 URL http://www.hioki.co.jp/
Printed in Japan 3802C982-00
• All reasonable care has been taken in the production of this manual, but if you find any points which ar e unclear or in error, please contact your supplier or the International Sales and Mar­keting Department at HIOKI headquarters.
• In the interests of product development, the contents of this manual are subject to revision without prior notice.
• Unauthorized reproduction or copying of this manual is prohibited.
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
Loading...