Page 1
Melrose, MA 02176 Phone 781-665-1400 Toll Free 1-800-517-8431 Visit us at www.TestEquipmentDepot.com Communication Command Instruction Manual DM7275-01 DM7275-02 DM7275-03 DM7276-01 DM7276-02 DM7276-03 Precision DC Voltmeter This manual explains the communication commands for Model DM7275/DM7276 Precision DC Voltmeter. Please refer to the instruction manual for Model DM7275/DM7276 for details regarding command settings.
1 Introduction In this publication, items relevant only to the DM7275-01, DM7275-02, DM7275-03, DM7276-01, DM7276-02, and DM7276-03 are indicated as “the instrument.” If the communication monitoring function is used at the time of program creation, commands and responses will be conveniently displayed on the measurement screen.
Page 7
Response Messages When a query message is received, its syntax is checked and a response message is generated. If an error occurs when a query message is received, no response message is generated for that query. Command Syntax Command names are chosen to mnemonically represent their function, and can be abbreviated.
Page 8
Message Terminators This instrument recognizes the following message terminators (delimiters). [RS-232C/USB/LAN] • CR • CR+LF [GP-IB] • LF • CR+LF • EOI • LF with EOI Depending on the instrument’s interface settings, the following can be selected as the terminator for response messages.
Page 9
Data Formats The instrument uses character data, decimal numeric data and character string data depending on the command. (1) Character Data Character data always begins with an alphabetic character, and subsequent characters may be either alphabetic or numeric. Character data is not case-sensitive, although response messages from the instrument are only upper case.
Compound Command Header Omission When several commands having a common header are combined to form a compound command (e.g., :CALCulate:SCALe:PARameterA and :CALCulate:SCALe:PARameterB) if they are written together in sequence, the common portion (here, :CALCulate:SCALe) can be omitted after its initial occurrence. This common portion is called the “current path”...
Status Byte Register [GP-IB] This instrument implements the status model defined by IEEE 488.2 with regard to the serial poll function using the service request line. The term “event” refers to any occurrence that generates a service request. Standard Event Register Description Service Request Output Queue data information SRQ occurrence...
Page 12
Status Byte Register (STB) During serial polling, the contents of the 8-bit Status Byte Register are sent from the instrument to the controller. When any Status Byte Register bit enabled by the Service Request Enable Register has switched from 0 to 1, the MSS bit becomes 1.
Event Registers Status Query Resister AND output of EV and EN COND Out-of-range bit0 bit0 <1> voltage bit1 bit1 <2> Status Byte Register bit2 bit2 <4> AND output of Out-of-range bit3 bit3 <8> temperature EV and EN bit4 bit4 <16> :SYSTem:ERRor? bit0 <1>...
Page 14
Standard Event Status Register (SESR) The Standard Event Status Register is an 8-bit register. If any bit in the Standard Event Status Register is set to 1 (after masking by the Standard Event Status Enable Register), bit 5 (ESB) of the Status Byte Register is set to 1. See: “Standard Event Status Register (SESR) and Standard Event Status Enable Register (SESER)
Page 15
Standard Event Status Enable Register (SESER) Setting any bit of the Standard Event Status Enable Register to 1 enables access to the corresponding bit of the Standard Event Status Register. Standard Event Status Register (SESR) and Standard Event Status Enable Register (SESER) Status Byte Register (STB) bit6 bit5...
Page 16
Device-Specific Event Status Registers This instrument provides two Event Status Registers for controlling events. Each Event Status Register is a 16-bit register. When any bit in one of these Event Status Registers enabled by its corresponding Enable Register is set to 1, the following happens: •...
Page 17
Status Query Register Bit 15 CNT_ERR Set to 1 when a contact error occurs. Bit 14 MEM_OVR Set to 1 when the internal measurement memory is full (5000 data). Bit 13 Set to 1 when the BIN measurement result is OUT OF BIN. Bit 12 Set to 1 when the comparator result is upper threshold FAIL.
Page 18
Register Reading and Writing Register Read Write Status Byte Register *STB? Service Request Enable Register *SRE? *SRE Standard Event Status Register *ESR? Standard Event Status Enable Register *ESE? *ESE :STATus:OPERation Event register of the Standard Operation Register Group :CONDition? (Status data) :STATus:OPERation Event Register of Standard Operation Register Group...
Measurement Value Formats FETCh?, :READ?, In the measured value format settings, the measurement format that can be acquired from : MEASure[:VOLTage]:DC? can be changed. • Voltage: Unit V (When :SYSTem:COMMunicate:FORMat FIX is set) Measurement Range Measured Value ±OvrRng Measurement Fault 100 mV ±...
Command Execution Time Command execution time indicates the time for analyzing and processing long form commands. However, the command execution time for commands with data is the time described according to the data format specified in the <data portion>. • Display delays may occur depending on the frequency of communication processes and process contents. *TRG :INIT •...
2 Message List Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data Standard Commands (<Manufacturer name>,<Model name>,<Serial number>,<Software *IDN? Queries the Device ID (Identify code). version>) *OPT? (<0/GPIB>,<LAN>,<0/RS232C>) Identifies installed options. *RST Initializes the device. *TST? (<PASS/FAIL>) Initiates a self-test and queries the result.
Page 23
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data Clock :SYSTem:DATE <Year>,<Month>,<Day> Sets the system date. :SYSTem:DATE? (<Year>,<Month>,<Day>) Queries the system date. :SYSTem:TIME <Hour>,<Minute>,<Second> Sets the clock. :SYSTem:TIME? <Hour>,<Minute>,<Second> Queries the clock. Measurement Range [:SENSe:]VOLTage:DC:RANGe <Measurement range/MAX/MIN/DEFault> Sets the measurement range.
Page 24
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data :CALCulate:LIMit:UPPer[:DATA] <Upper threshold> Sets the upper threshold. :CALCulate:LIMit:UPPer[:DATA]? (<Upper threshold>) Queries the upper threshold. :CALCulate:LIMit:LOWer:ENABle <1/0/ON/OFF > Sets the lower threshold enable. :CALCulate:LIMit:LOWer:ENABle? (< 1/0 >) Queries the lower threshold enable. :CALCulate:LIMit:LOWer[:DATA] <Lower threshold>...
Page 25
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data [:SENSe:]VOLTage:DC:CONTact:CAPacitance:THRes <Threshold/MAX/MIN/DEFault> Sets the contact check threshold. hold [:SENSe:]VOLTage:DC:CONTact:CAPacitance:THRes (<Threshold>) Queries the contact check threshold. hold? [:SENSe:]VOLTage:DC:CONTact:CAPacitance:TIME <Integral time(sec)/MAX/MIN/DEFault> Sets the contact check integral time. [:SENSe:]VOLTage:DC:CONTact:CAPacitance:TIME? <Integral time(sec)> Queries the contact check integral time.
Page 26
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data Sound Settings :SYSTem:CLICk[:STATe] <1/0/ON/OFF > Sets the key clicking sound. :SYSTem:CLICk[:STATe] ? (< 1/0 >) Queries the key clicking sound. :SYSTem:HOLD:BEEPer:STATe <1/0/ON/OFF > Sets the key hold sound. :SYSTem:HOLD:BEEPer:STATe? (<...
Page 27
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data Data Output Settings Sets the measurement-synchronized data output :SYSTem:COMMunicate:DATAout <1/0/ON/OFF > function. Queries the measurement-synchronized data output :SYSTem:COMMunicate:DATAout? (< 1/0 >) function. :SYSTem:COMMunicate:DATAout:FORMat <Measurement value output>,<Date output> Sets the measurement data output format.
Page 28
Messages Data Description [ ]: Omissible [ ]: Omissible, ( ): Response data <FRTD/RTD/FTH/THER/DEFault>,<Type 2/DEFault>, :MEASure:TEMPerature? <Resolution/MAX/MIN/DEFault> Reads the temperature measurement value. (<Measurement value>) *PSC <0/1> Clears and reads the power status. *PSC? Reads the power status. *CAL? (+0) Executes automatic calibration. :HCOPy:SDUMp:DATA:FORMat Sets the image data format.
3 Message Reference Message Reference Interpretation < >: Indicates the contents (character or numeric parameters) of the data portion of a message. Character parameters are returned as all capital letters. Numeric Parameters: • NRf Number format may be any of NR1, NR2 and NR3 •...
Query Response <Manufacturer name>,<Model name>,<Serial number>,<Software version> Example *IDN? HIOKI,DM7275-01,123456789,V1.00 The Device ID is HIOKI DM7275-01, 123456789, software version 1.00. The <Model name> will be the following. For DM7275-01: DM7275-01 For DM7275-02: DM7275-02 For DM7275-03: DM7275-03 For DM7276-01: DM7276-01 For DM7276-02: DM7276-02...
Save Measurement Conditions (Panel Save) Syntax *SAV <Panel No.> Command <Panel No.> = 1 to 30 (NR1) Description Saves the current measurement conditions to the specified panel number. Example *SAV 1 The current measurement conditions are saved to panel No. 1. Note When the a panel number to which measurement conditions are already saved is specified, the data of the panel number is overwritten with the current measurement conditions.
(4) Status and Event Control Commands Clear Event Register and Status Byte Register (Except Output Queue) Syntax *CLS Command Description Clears the event status registers. The Status Byte Register bits corresponding to the event status registers are also cleared. (Standard Event Status Register, Standard Operation Register, Status Query Register) Example [RS-232C/USB]...
Write and Read Service Request Enable Register (SRER) Syntax *SRE <0 to 255 (NR1)> Command *SRE? Query Response <0 to 255 (NR1)> Description Command The SRER mask pattern is set to a numerical value from 0 to 255. Although NRf numerical values are accepted, values to the right of the decimal are rounded to the nearest integer.
Device-Specific Commands (1) Event Status Register See the following for a relationship with the Status Byte Register. • Status Byte Register (p.6) • Event Register (p.8) Query Condition Register of Standard Operation Register Group Syntax :STATus:OPERation:CONDition? Query Response <0 to 16176 (NR1)> Description bit15 bit14...
Read Most Recent Measurement Syntax :FETCh? [TEMPerature] Query (1) When TEMPerature parameter is not specified Response • When :SYST:COMM:FORM FIX is set <Voltage measurement value> • When :SYST:COMM:FORM FLOAT is set <Volatage measurement value 1>, <Voltage measurement value 2>, ..., <Voltage measurement value n>...
Measurement (waits for trigger and reads the measured values) Syntax :READ? [TEMPerature] Query (1) When TEMPerature parameter is not specified Response • When :SYST:COMM:FORM FIX is set <Voltage Measurement value> • When :SYST:COMM:FORM FLOAT is set <Volatage Measurement value 1>, <Voltage Measurement value 2>, ..., <Voltage Measurement value n>...
wait time corresponding to the sampling time, specify the talker. • With an external trigger (trigger source <EXTERNAL>), the measurement value’s response will be doubled when the data output function is ON. When using, switch the data output function OFF. •...
Read the most recent measurement :DATA:LAST? Syntax [TEMPerature] Query • When TEMPerature parameter is not specified Response <Voltage Measurement value> • When TEMPerature parameter is specified <Voltage Measurement value>,<Temperature Measurement value> See: “Measurement Value Formats” (p.24) Description Reads the most recent measurement. No trigger occurs. See: Data Exporting Methods (p.71), Triggering (p.40) Example...
(3) Self-Test Execute Self-test and Query Result Syntax :TEST:ALL? Query < PASS/FAIL > Response Example :TEST:ALL? PASS Note Same operation as *TST? (4) Clock Set and Query System Date Syntax :SYSTem:DATE Command <Year>,<Month>,<Day> :SYSTem:DATE? Query <Year>,<Month>,<Day> Response <Year> = 00 to 99 [Year] <Month>...
(7) Measurement Speed Set and Query Integral Time(PLC) Syntax [:SENSe:]VOLTage[:DC]:NPLCycles Command < Integral time(PLC)/MAX/MIN/DEFault/ SLOW/MEDium/ FAST > [:SENSe:]VOLTage[:DC]:NPLCycles? Query < Integral time(PLC) > Response < integral time(PLC) > = 0.02 to 100 [PLC] (MAX: 100, MIN: 0.02, DEFault: 10) The integral time for each speed is as follows. Speed Integral time [PLC] SLOW...
(8) Triggering Relationship between Trigger Source and Continuous Measurement Operation :INITIATE:CONTINUOUS Operation depends on continuous measurement setting ( ) (p.41) and the trigger source :TRIGGER:SOURCE setting ( ) (p.41) as follows. See: “4. Data Exporting Methods” (p.71) Measurement Continuous Measurement Command-Specific Settings Flow :INITIATE:CONTINUOUS ON :INITIATE:CONTINUOUS OFF...
Page 46
Set and Query Continuous Measurement Syntax :INITiate:CONTinuous Command < 1/0/ON/OFF > :INITiate:CONTinuous? Query < 1/0 > Response <ON> = Continuous Measurement Enabled <OFF> = Continuous Measurement Disabled Description • Continuous Measurement Enabled ([RUN state] and [EXT state]): After measurement, enters the Trigger Wait State. When there is an internal trigger (trigger source <IMMEDIATE>), the next trigger is promptly generated and enters a free-run state.
Set and Query Number of Measurements Syntax :SAMPle:COUNt Command <Number of measurements/MAX/MIN/DEFault> :SAMPle:COUNt? Query <Number of measurements> Response <Number of measurements> = 1 to 5000 (MAX: 5000, MIN: 1, DEFault: 1) Example :SAMP:COUN 500 :SAMP:COUN? Set and Query Trigger Delay Syntax :TRIGger:DELay Command...
(9) Setting Number of Digits Set and Query Voltage Measurement Value’s Number of Digits Syntax [:SENSe:]VOLTage:DIGits Command <Number of digits/MAX/MIN/DEFault> [:SENSe:]VOLTage:DIGits? Query <Number of digits> Response <Number of digits> = 4 to 8 (MAX: 8, MIN: 4, DEFault: 8) Number of Digits Screen Setting Example :VOLT:DIG 8...
(11) Comparator When making comparator settings by commands, the measurement range is not automatically selected. Execute and Query Comparator Syntax :CALCulate:LIMit[:STATe] Command < 1/0/ON/OFF > :CALCulate:LIMit[:STATe]? Query < 1/0 > Response Example :CALC:LIM:STAT ON :CALC:LIM:STAT? Note When the comparator is executed, the BIN function enters the OFF state. Set and Query Buzzer Syntax :CALCulate:LIMit:BEEPer...
(12) BIN Execute and Query BIN Measurement Syntax :CALCulate:BIN[:STATe] Command < 1/0/ON/OFF > :CALCulate:BIN[:STATe]? Query < 1/0 > Response Example :CALC:BIN:STAT ON :CALC:BIN:STAT? Note When the BIN function is executed, the comparator function switches to OFF. Set and Query Enabled Pattern Syntax :CALCulate:BIN:ENABle Command...
Query BIN Judgment Result Syntax :CALCulate:BIN:RESult? Query <NR1> Response <NR1> = 0 to 1024 “1” will be the BIN number bit for the PASS with BIN measurement. bit10 bit9 bit8 bit7 bit6 bit5 BIN9 BIN8 BIN7 BIN6 BIN5 bit4 bit3 bit2 bit1 bit0...
Save Setting File to USB Flash Drive Syntax :MMEMory:STORe:STATe Command <File name> [,ALL] Example :MMEM:STOR:STAT "SET_000.SET" :MMEM:STOR:STAT "SET_000" :MMEM:STOR:STAT "ALL_000.ALL", ALL :MMEM:STOR:STAT "ALL_000", ALL Note • When ALL is attached to the end of data, such as :MMEM:STOR:STAT <File name>, ALL, all setting data including panel data is saved to a file.
(14) Smoothing Execute and Query Smoothing Function Syntax :CALCulate:SMOothing[:STATe] Command <1/0/ON/OFF > :CALCulate:SMOothing[:STATe]? Query <1/0 > Response Example CALC:SMO ON CALC:SMO? Set and Query Smoothing Count Syntax :CALCulate:SMOothing:RESPonse Command <Count/SLOW/MEDium/FAST> :CALCulate:SMOothing:RESPonse? Query <Count> Response <Count> = 2 to 100 (NR1) If SLOW, MEDium, or FAST is specified, the following value is set.
(16) Contact Check Query Contact Check Measurement Values Syntax [:SENSe:]VOLTage:DC:CONTact:CAPacitance? Query <Contact check measurement value> Response Description Reads the most recent contact check measurement value (unit: F). The response format is as follows. ±OvrRng Measured Value Measurement Fault ± □.□□□□□□□□E±0□ ±9.90000000E+28 +9.91000000E+28 Note: The measurement value is presented as a floating-point value with eight decimal places.
(17) Switching Input Resistance Set and Query Input Resistance Syntax [:SENSe:]VOLTage[:DC]:IMPedance:AUTO Command <1/0/ON/OFF > [:SENSe:]VOLTage[:DC]:IMPedance:AUTO? Query < 1/0 > Response Example VOLT:IMP:AUTO ON VOLT:IMP:AUTO? Note When OFF is set, the input resistance is fixed to 10 MΩ. (18) Zero Adjustment (NULL Function) Execute and Query Zero Adjustment Syntax [:SENSe:]VOLTage:DC:NULL[:STATe]...
Set and Query Scaling Unit Function Syntax :CALCulate:SCALe:UNIT:STATe Command < 0 to 2 > :CALCulate:SCALe:UNIT:STATe? Query < 0 to 2 > Response 0 NONE 1 USER Example :CALC:SCAL:UNIT:STAT 2 :CALC:SCAL:UNIT:STAT? Set and Query Scaling Unit Syntax :CALCulate:SCALe:UNIT Command < Unit > :CALCulate:SCALe:UNIT? Query <Unit>...
Query Mean Value, Standard Deviation, Minimum Value, and Maximum Value Syntax :CALCulate:AVERage:ALL? Query <Mean value (NR3)>, <Standard deviation (NR3)>, <Minimum value (NR3)>, Response <Maximum value (NR3)> Example :CALC:AVER:ALL? +1.00520000E+03,+1.00512000E+03,+1.00527000E+03,+4.13500000E-01 Note When there is no valid statistical data, an execution error occurs. Query Standard Deviation Syntax :CALCulate:AVERage:SDEViation?
Set and Query Screen Color Syntax :DISPlay:TYPe <Screen color type/MAX/MIN/DEFault> Command :DISPlay:TYPe? Query <Screen color type> Response <Screen color type> = 0 to 1 (MAX: 1, MIN: 0, DEF: 0) For the screen color type, 0 is blue and 1 is gray. Example :DISP:TYP 0 :DISP:TYP?
(27) Communications Settings Return to Local Control Syntax :SYSTem:LOCal Command Description Disables communications remote control and re-enables local control. The panel keys are re-enabled. Example :SYST:LOC Set and Query Communications Interface Syntax :SYSTem:COMMunicate < USB/LAN/RS232c/GPIB/KEYBD/PRINter/MMEMory > Command :SYSTem:COMMunicate? Query < USB/LAN/RS232C/GPIB > Response Note The interface is changed when the command is received.
Set and Query Baud Rate [RS-232C] Syntax :SYSTem:COMMunicate:RS232C:SPEED <Baud rate> Command :SYSTem:COMMunicate:RS232C:SPEED? Query <Baud rate> Response <Baud rate> = 9600/19200/38400 Example When the command is accepted, the specified baud rate is immediately reflected. Set and Query IP Address [LAN] Syntax :SYSTem:COMMunicate:LAN:IPADdress <IP address>...
Set and Query Default Gateway [LAN] Syntax :SYSTem:COMMunicate:LAN:GATeway <Address> Command :SYSTem:COMMunicate:LAN:GATeway? Query <Address> Response <Address> = nnn,nnn,nnn,nnn Example :SYST:COMM:LAN:GAT 192,168,0,100 :SYST:COMM:LAN:UPD :SYST:COMM:LAN:GAT? 192,168,0,100 Note When the default gateway is changed by :SYSTem:COMMunicate:LAN:GATeway, the change is not reflected until :SYSTem:COMMunicate:LAN:UPDate is executed. Reflect LAN Settings [LAN] Syntax :SYSTem:COMMunicate:LAN:UPDate...
(28) Data Output Settings Set and Query Measurement-Synchronized Data Output Function Syntax :SYSTem:COMMunicate:DATAout <1/0/ON/OFF > Command :SYSTem:COMMunicate:DATAout? Query < 1/0 > Response Description <ON> = With an external trigger (trigger source <EXTERNAL>), measurement values are automatically sent when trigger measurements are completed. When there is an internal trigger (trigger source <IMMEDIATE>, measurement values are automatically sent when the [TRIG] key is pressed or TRIG signal is input from the external I/O.
Set and Query Date Delimiter Format Syntax :SYSTem:LOCAle:DATE:SEParator <Delimiter format> Command :SYSTem:LOCAle:DATE:SEParator? Query <Delimiter format> Response <Delimiter format> = 0 to 2 [0: ‘/’ (Slash), 1: ‘-’ (Hyphen), 2: ‘.’ (Period) Set and Query Decimal-Point Character Format Syntax :SYSTem:LOCAle:NUMeric:DOT <Character format> Command :SYSTem:LOCAle:NUMeric:DOT? Query...
(29) Memory Function Measurement Value (Memory Data) Format :R?, :DATA:REMove? response Voltage: Unit V Measured Value Measurement Fault ±OvrRng ± □.□□□□□□□□E±0□ ±9.90000000E+37 +9.91000000E+37 Note: The measured value is presented as a floating-point value with eight decimal places. Query Memory Data Syntax <Number of read data>...
Set and Query Memory Data Count to Generate Event Syntax :DATA:POINts:EVENt:THReshold Command <Count> :DATA:POINts:EVENt:THReshold? Query <Count> = 1 to 5000 Response Description Set the event register bit 9 of the Standard Operation Register Group to 1 when the memory data counts reach the specified number.
(30) EXT I/O Query NPN/PNP Switch Status Syntax :IO:MODE? Query <NPN/ PNP > Response Example :IO:MODE? Execute and Query TRIG/PRINT Signal Filter Function Syntax :IO:FILTer:STATe Command <1/0/ON/OFF> :IO:FILTer:STATe? Query < 1/ 0 > Response Example :IO:FILT:STAT ON :IO:FILT:STAT? Set and Query TRIG/PRINT Signal Filter Time Syntax :IO:FILTer:TIME Command...
Query External I/O Input Syntax :IO:INPut? Query 0 to 3 (NR1) Response Description Reads the ON edge of the TRIG of the EXT I/O and the PRINT terminal, and then clears them. When the edge is detected, the bits are set. When reading is performed using this query, it is cleared to 0.
Command <Character string> = Maximum 127-character string SYST:IDNS "Aaa,Bbb,Ccc,Ddd" Example *IDN? Aaa,Bbb,Ccc,Ddd SYST:IDNS "" *IDN? HIOKI,DM7275-01,123456789,V1.00 Note • Specify only the characters that can be used for the instrument. "" • When is specified for <Character string>, HIOKI,... is set.
Read Error Information Syntax :SYSTem:ERRor[:NEXT]? Query <Error No.>,<Error name> Response <Error No.> = <Error name> = Reads error No. and clears the error. Example List of response 0,"" 1,"Lower limit is higher than Upper limit." 4,"Unable to change the setting during auto-hold." 5,"Unable to set NULL due to an abnormal measurement value."...
The following functions are not installed on this instrument, however, commands are accepted. Clear and Read Power Status Syntax *PSC Command < 1 > *PSC? Query Response Description Command No function. Returns fixed value 1. Query Example *PSC 1 *PSC? Execute Automatic Calibration Syntax *CAL?
4 Data Exporting Methods Basic Data Exporting Methods Flexible data exporting is available depending on the application. Export Free-Run Data :INITiate:CONTinuous ON Default Setting (continuous measurement enable) :TRIGger:SOURce IMMediate (internal triggering) :FETCh? Exporting Imports the most recent measurement. Export by Controller (PC, PLC) Triggering :INITiate:CONTinuous OFF Default Setting (continuous measurement disable)
Page 77
Using the :FETCh? Command during Continuous Measurement with Internal Triggering Measuring Measuring Measuring Measuring Measuring Measurement Processing Measurement Measurement Measurement Measurement Measurement value value value value value Measured Value Update Command Processing Returns the last measured value to the PC Response This is the simplest method for exporting measured values.
5 Sample Programs These programs can be created using Visual Basic 5.0, 6.0 or Visual Basic 2010. Visual Basic is a registered trademark of Microsoft Corporation. Using Visual Basic 5.0 or 6.0 These sample programs are created with Microsoft Visual Basic 5.0 and 6.0. The following are used for communication: For RS-232C/USB communication: MSComm from Visual Basic Professional...
Measurement Voltage by PC Key Measures and imports by key input on the PC, and saves measurements in a text file. Private Sub MeasureReadSubRS() Dim recvstr As String 'Receiving character string Dim i As Integer MSComm1.CommPort = 1 'COM1 (Check a communication port) MSComm1.Settings = "9600,n,8,1"...
External Trigger Measurement 1 Measures and imports according to external triggering ([TRIG] key or TRIG signal input), or by PC key input, and saves measurements in a text file. Private Sub MeasureTrigSubRS() Dim recvstr As String 'Receiving character string Dim i As Integer MSComm1.CommPort = 1 'COM1 (Check a communication port)
External Trigger Measurement 2 Measures and imports according to external triggering ([TRIG] key or TRIG signal input), and saves measurements in a text file. (The instrument imports the most recent measurement by trigger input timing with the continuous measurement state.) Private Sub MeasureTrig2SubRS() Dim recvstr As String 'Receiving character string...
Set Measurement Conditions Sets up the measurement setting state. ' Measurement Setting Configuration ' Configures instrument settings for measurement 'Range: 1Ω 'Sampling: FAST 'Trigger: External trigger ' Comparator enabled, upper threshold 1V, lower threshold 0.5V, beep upon Hi or Lo Private Sub SettingsSubRS() MSComm1.CommPort = 1 'COM1 (Check a communication port)
GP-IB Communications (Using National Instruments GP-IB Board) Simple Voltage Measurement Imports measured values 10 times, and saves measurements in a text file. Private Sub MeasureSub() Dim buffer As String * 20 'Receiving buffer Dim recvstr As String 'Receiving character string Dim pad As Integer 'Controller Address Dim gpibad As Integer...
Measurement Voltage by PC Key Measures and imports by key input on the PC, and saves measurements in a text file. Private Sub MeasureReadSub() Dim buffer As String * 20 'Receiving buffer Dim recvstr As String 'Receiving character string Dim pad As Integer 'Controller Address Dim gpibad As Integer...
External Trigger Measurement 1 Measures and imports according to external triggering ([TRIG] key or TRIG signal input), and saves measurements in a text file. Private Sub MeasureTrigSub() Dim buffer As String * 20 'Receiving buffer Dim recvstr As String 'Receiving character string Dim pad As Integer 'Controller Address...
External Trigger Measurement 2 Imports according to external triggering ([TRIG] key or TRIG signal input), and saves measurements in a text file. (The instrument imports the most recent measurement by trigger input timing with the continuous measurement state.) Private Sub MeasureTrig2Sub() Dim buffer As String * 20 'Receiving buffer Dim recvstr As String...
Set Measurement Conditions Sets up the measurement setting state. ' Measurement Setting Configuration ' Configures instrument settings for measurement 'Range: 1Ω 'Sampling: FAST 'Trigger: External trigger ' Comparator enabled, upper threshold 1V, lower threshold 0.5V, beep upon Hi or Lo Private Sub SettingsSub() Dim pad As Integer 'Controller Address...
Using Visual Basic2010 This section describes an example of how to use the Windows development language Visual Basic2010 Express Edition to operate the instrument unit from a PC via RS-232C/USB, incorporate measurement values, and save measurement values to a file. Visual Basic2010 is referred to as VB2010 hereafter.
Page 89
2. Place a button. 1. Click [Button] from [Common Controls] of [Toolbox]. 2. Drag and drop the button onto the form layout screen. 3. Change [Text] to “Start Measurement” from the Properties window.
Page 90
4. The [Start Measurement] is placed on the form. 3. Place a serial communication component. 1. Click [SerialPort] from [Components] of [Toolbox]. 2. Drag and drop the [SerialPort] component onto the form layout screen.
Page 91
3. Change [PortName] to the port name to use for communication from the properties window. Check the port to use for communication beforehand. 4. Describe the code. 1. Double-click the placed button to display the code editor.
Page 92
2. Enter the sample program into the code editor. 3. Select [Save All] from the [File] menu. 4. Confirm the save location and then click [Save].
Page 93
Shown below is a sample program which uses VB2010 to enact RS-232C/USB communication, set the instrument measurement conditions, read measurement results and then save them to file. The sample program will be written in the following manner. Description of creation procedure Description in sample program Button created to begin measurement Button1...
Page 94
(a) During communication the [Begin Measurement] and [Close] buttons cannot be pressed. (b) Matches the instrument communication conditions and the computer usage conditions. The port to be used on the computer: 1 Transmission speed: 9600 bps Parity: none Data length: 8-bit Stop bit: 1-bit (not required with USB) (c) Sets CR + LF as the terminator indicating the end of the sending and receiving character string.
6 Device Compliance Statement [GP-IB] “Information on compliance to standards” based on the IEEE 488.2 standard Item Description 1.IEEE 488.1 interface functions See: “GP-IB Specifications (Interface Functions) 2. Operation with a device address other than 0 through 30 A setting outside the 0 to 30 range cannot be made. 3.
Page 96
Item Description 6. Summary of functional elements for use when The followings can be used: constructing device specific commands, and whether • Program message compound commands or program headers can be used • Program message terminator • Program message unit •...
Page 97
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176 TestEquipmentDepot.com...
Need help?
Do you have a question about the DM7275-01 and is the answer not in the manual?
Questions and answers