Chapter 6
Summary of SCPI Commands ________________ 27
Chapter 7
Remote Program Example Using Visual Basic 6 _ 31
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
OverviewChapter 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
ParametersChapter 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, nonparity 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
ItemParameter
1
2
3
4
5
Baud Rate96002400, 4800, 9600, 19200
parity checkNoneNone, Odd or Even
data length87 or 8
responseOFFON or OFF
data outputOFFON 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.
• 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:
• 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 TypeExplanationExample
<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 TypeExplanationExample
<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
PromptsDescription
*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 SetsChapter 5
5.1IEEE 488 Common Commands
*CLS
DescriptionClear the System Error Queue.
*IDN?
DescriptionQuery the Meter identification.
ResponseReturns instrument maker name, model number, serial number
and firmware version.
13
*RST
DescriptionPut 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
DescriptionPut 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
DescriptionPut the meter into the local state, clearing the remote state and
front panel lockout.
14
Chapter 5 Instructions of Command Sets
5.2SCPI 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>]]
DescriptionSet 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>
DescriptionSelect frequency co unte r pres ca li ng. (Onl y 380 1- 50)
The function switch is at
Parameter1: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
DescriptionFrequency 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
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>]
DescriptionSet 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>]
DescriptionSet to capacitance measurement . The function switch is at C
measuring.
ParameterIf 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
DescriptionSet to diode measuring with continuity test.
The function switch is at diode measuring.
CONFigure:TEMPerature <K | J>
DescriptionSet to temperature measuring with continuity test.
(Only 3801-50 : J Termocouple)
The function switch is at C measuring.
Paramete
ExampleCONF:TEMP K: Set to temperature of the K termocouple.
CONFigure? [@2]
DescriptionQuery the function of the primary or secondary display.
ParameterIf parameter is omitted, query the function of the main display.
ResponseReturn <"function range,resolution"> format string, the
ExampleFunctionRangeResolution
K, J: Termocouple sensor(Type 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- 12C(Capacitance)
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
ExampleFunctionRangeResolution
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
DescriptionSet or off the function of the calculation.
ParameterNULL - 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?
DescriptionQuery the function of the calculation.
ResponseReturn <Literal> format string:
AVER, PEAK, NULL, DBM,
DBV or NONE.
ExampleReturn of
relative value (REL) display functions are enabled.
AVER or NULL indicates that the recording and
CALCulate:NULL:OFFSet?
DescriptionQuery the offset value of the relative value (REL) function.
ResponseReturn <NR3> format string.
CALCulate:DBM:REFerence <numeric>
DescriptionSet the reference impedance for the decibel (dBm) conversion
screen.
ParameterValue to be entered to <numeric> : 1-9999
Stored in non-volatile memory.
CALCulate:DBM:REFerence?
DescriptionQuery the decibel (dBm) conversion of the reference
impedance.
ResponseReturn <NR3> format string.
20
Chapter 5 Instructions of Command Sets
CALCulate
:AVER age
:MAXimum?
:MINimum?
:AVERage?
:PRESent?
:COUNt?
DescriptionQuery the value of the dynamic recording function.
ResponseReturn <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?
DescriptionQuery the value of the peak-hold function.
ResponseReturn <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 >
DescriptionSelect 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?
DescriptionQuery the type of the trigger source.
ResponseReturn <Literal> format string:
BUS, REF, IMM
TRIGger:REFreshhold:COUNt <numeric>
DescriptionSet the threshold for the refresh hold mode.
Parameter
DescriptionQuery the threshold of the refresh hold mode.
ResponseReturn <NR1> format string: 0 to 1000.
ABORt
DescriptionWhen 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
DescriptionAcquires 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).
ParameterIf parameter is omitted, the meter returns the primary function
value.
ResponseReturn <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.
ResponseReturn <NR3> format string.
FETC?
Chapter 5 Instructions of Command Sets
SOURce Subsystem:
SOURce?
DescriptionQuery 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
ExampleFunction
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>
DescriptionSet the duty ratio of the
The function switch is at
Duty ratio = numeric / 256 (Unit :%)
ParameterValue 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>
DescriptionSet the pulse width of the
The function switch is at
Pulse width = numeric / (frequency x 0.256)
ParameterValue 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>
DescriptionSet 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,
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 status0:stand-by, 1:operation
R
S
T
U
Rate4:50000 counts
Battery0:normal, 1:low
Frequency
counter divisor
0:1 1:100 (3802-50 is always 0)
Auto range0:off, 1:on
Chapter 6 Summary of SCPI Commands
Summary of SCPI
CommandsChapter 6
CommandParameterDescription
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
CommandParameterDescription
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 1000Set 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
CommandParameterDescription
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 6Chapter 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 Marketing 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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.