background image

7.8  Sample Programs

148

(2) Measure Resistance 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 char string

Dim i As Integer

MSComm1.Settings = "9600,n,8,1"

'Comm port setting

MSComm1.PortOpen = True

'Open a port

Open App.Path & "\data.csv" For Output As #1

'Open a text file for saving

MSComm1.Output = ":TRIG:SOUR IMM" & vbCrLf

'Select internal triggering

MSComm1.Output = ":INIT:CONT OFF" & vbCrLf

'Continuous measurement OFF

For i = 1 To 10
    'Wait for PC key input
    'Create a key input check routine to set InputKey() = True when a key is pressed
    Do While 1
        If InputKey() = True Then Exit Do
        DoEvents
    Loop
    
    'After confirming key input, measure once, and read the measured value
    MSComm1.Output = ":READ?" & vbCrLf 

'Send ":READ?" to measure and import the 
measurement

    recvstr = ""

'From here on, continue receiving until an LF code 
occurs

    While Right(recvstr, 1) <> Chr(10)
        recvstr = r MSComm1.Input
        DoEvents
    Wend
    recvstr = Left(recvstr, Len(recvstr) - 2) 

'Delete the terminator (CR+LF)

    Print #1, Str(i) & "," & recvstr

'Write to the file

Next

Close #1
MSComm1.PortOpen = False
End Sub

Summary of Contents for 3561

Page 1: ...BATTERY HiTESTER INSTRUCTION MANUAL 3561 3561 01 ...

Page 2: ......

Page 3: ......

Page 4: ... Judgment Results 49 4 1 9 Switching Between Measurement Value and Comparator Setting Displays 50 4 2 Trigger Function 51 4 2 1 Trigger Source Settings 51 4 2 2 Trigger Delay Settings 52 4 3 Averaging Function 53 4 4 Statistical Calculation Functions 54 4 5 Memory Function 58 4 6 Key Lock Function 60 4 7 Panel Save Function 61 4 8 Panel Load Function 62 4 9 Self Calibration 63 4 10 Measurement Val...

Page 5: ...7 2 2 GP IB Specifications Model 3561 01 only 88 7 3 Selecting the Connections and Protocol 89 7 3 1 Attaching the Connector 89 7 3 2 Selecting the Interface 91 7 4 Communication Methods 92 7 4 1 Message Format 92 7 4 2 Output Queue and Input Buffer 97 7 4 3 Status Byte Register 98 7 4 4 Event Registers 100 7 4 5 Initialization Items 103 7 4 6 Local Function 103 7 5 Message List 104 7 5 1 Standard...

Page 6: ...4 Appendix_________________________________165 Appendix 1 Precautions for Making Custom Test Leads 165 Appendix 2 AC Four terminal Method 167 Appendix 3 Synchronous Detection System 168 Appendix 4 Configuration and Extension of the Test Leads 169 Appendix 5 Effect of Eddy Currents 170 Appendix 6 Calibration Procedure 171 Appendix 7 Test Lead Options 172 Appendix 8 Rack Mounting 173 Appendix 9 Dime...

Page 7: ......

Page 8: ......

Page 9: ......

Page 10: ......

Page 11: ......

Page 12: ......

Page 13: ......

Page 14: ......

Page 15: ......

Page 16: ......

Page 17: ......

Page 18: ......

Page 19: ......

Page 20: ......

Page 21: ......

Page 22: ......

Page 23: ......

Page 24: ......

Page 25: ......

Page 26: ......

Page 27: ......

Page 28: ......

Page 29: ......

Page 30: ......

Page 31: ......

Page 32: ......

Page 33: ......

Page 34: ......

Page 35: ......

Page 36: ......

Page 37: ......

Page 38: ...H and SOURCE L is 50 Ω or more in the 300 mΩ range or 500 Ω or more in the 3 Ω range When the resistance between SENSE H and SENSE L is greater than about 20 Ω However if the capacitance of the test leads is 1 nF or higher the measurement fault may not be detected When a bad contact results from damage excessive wear or impurities on the test leads If the circuit protection fuse is blown See Secti...

Page 39: ......

Page 40: ......

Page 41: ......

Page 42: ......

Page 43: ......

Page 44: ......

Page 45: ......

Page 46: ......

Page 47: ......

Page 48: ......

Page 49: ......

Page 50: ......

Page 51: ......

Page 52: ......

Page 53: ......

Page 54: ......

Page 55: ......

Page 56: ......

Page 57: ......

Page 58: ......

Page 59: ......

Page 60: ......

Page 61: ......

Page 62: ......

Page 63: ......

Page 64: ......

Page 65: ......

Page 66: ......

Page 67: ......

Page 68: ......

Page 69: ......

Page 70: ......

Page 71: ......

Page 72: ......

Page 73: ......

Page 74: ...4 12 Reset Function 68 ...

Page 75: ......

Page 76: ......

Page 77: ......

Page 78: ... INDEX signal is output during the Trigger Wait Delay Self Calibration and Calculation states This signal is not output while measuring the resistance of test objects This signal transitions from Off to On to indicate that the test object can be removed EOC This signal indicates the end of a measurement End Of Conversion This signal indicates when comparator judgment results and ERR output when SY...

Page 79: ......

Page 80: ......

Page 81: ......

Page 82: ...Instrument Settings Page 74 When the internal trigger is selected HOLD setting EX FAST 1 ms FAST 5 ms MEDIUM 20 ms SLOW 50 ms PULSE setting Remains only for the specified pulse width 1 For details see 5 2 4 ERR Output Page 73 2 About t4 measurement time When averaging is enabled the running average is obtained with internal triggering so measurement time t4 does not change The measurement time for...

Page 83: ......

Page 84: ......

Page 85: ......

Page 86: ......

Page 87: ......

Page 88: ......

Page 89: ......

Page 90: ......

Page 91: ......

Page 92: ...9 98mOhm 16 0 2103 Ohm With erroneous measurement values 10 O F O F 11 O F O F 12 13 Invalid Invalid 14 O F 12 0097 V 15 19 82mOhm O F With the Comparator ON 95 105 80mOhm Lo 0 0000 V IN 96 213 15mOhm Hi 97 213 12mOhm IN 98 213 11mOhm Lo 99 10 0072 V Hi 100 10 0071 V IN 101 10 0070 V Lo 102 O F Hi O F Hi 103 3 11mOhm Lo O F Lo 104 With the relative value comparison method reference value and toler...

Page 93: ......

Page 94: ......

Page 95: ......

Page 96: ......

Page 97: ......

Page 98: ......

Page 99: ......

Page 100: ...n this way and if one command contains an error all subsequent messages up to the next terminator will be ignored A query error occurs if a query command is combined with an immediately following semicolon and subsequent command 2 Header Separator In a message consisting of both a header and data the header is separated from the data by a space 3 Data Separator In a message containing multiple dat...

Page 101: ......

Page 102: ......

Page 103: ......

Page 104: ......

Page 105: ......

Page 106: ...alid parameter format Received a command not supported by the instrument Bit 4 EXE Execution Error This bit is set to 1 when a received command cannot be executed for some reason The specified data value is outside of the set range The specified setting data cannot be set Execution is prevented by some other operation being performed Bit 3 DDE Device Dependent Error This bit is set to 1 when a com...

Page 107: ......

Page 108: ......

Page 109: ......

Page 110: ......

Page 111: ......

Page 112: ...ltage comparator lower threshold setting 121 CALCulate LIMit VOLTage LOWer Lower threshold Queries the voltage comparator lower threshold setting 121 CALCulate LIMit RESistance REFerence Reference value Sets the resistance comparator reference value 122 CALCulate LIMit RESistance REFerence Reference value Queries the resistance comparator reference value 122 CALCulate LIMit VOLTage REFerence Refer...

Page 113: ......

Page 114: ...2 SYSTem BACKup Backups current measurement configuration 132 Header Present SYSTem HEADer 1 0 ON OFF Sets header present 133 SYSTem HEADer ON OFF Queries the header present setting 133 ERR Output SYSTem ERRor SYNChronous ASYNchronous Sets error output timing 133 SYSTem ERRor SYNChronous ASYNchronous Queries the error output timing setting 133 Terminator SYSTem TERMinator 0 1 Sets the terminator 1...

Page 115: ......

Page 116: ......

Page 117: ......

Page 118: ...shed processing Wait for Pending Commands to Finish Syntax Command WAI Description Command The instrument waits until all prior commands finish before executing any subsequent commands Note The WAI command is supported because it is defined in IEEE 488 2 1987 but because all Model 3561 3561 01 device specific commands are sequential types this command has no actual affect Clear the Status Byte and...

Page 119: ......

Page 120: ... zero Example Command SRE 33 Set SRER bits 0 and 5 to 1 Query SRE Response 33 SRER bits 0 and 5 have been set to 1 128 64 32 16 8 4 2 1 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 unused 0 ESB MAV unused unused ESE1 ESE0 Query the Status Byte and MSS Bit Syntax Query STB Response 0 to 255 NR1 Description Query The contents of the STB are returned as an NR1 value 0 to 255 The response message h...

Page 121: ......

Page 122: ...0 to 3 1 Query RESistance RANGe Response 300 00E 3 3 0000E 0 NR3 Example Command RES RANG 120E 3 Selects the most suitable resistance measurement range for measuring 120 mΩ Query Response RES RANG 300 00E 3 The current resistance measurement range is 300 mΩ Note Changing the resistance measurement range clears stored measurement data memory function Set and Query the Voltage Measurement Range Synt...

Page 123: ......

Page 124: ...CALCulate AVERage 2 to 16 Query CALCulate AVERage Response 2 to 16 NR1 Example Command CALC AVER 10 Query CALC AVER Response 10 Set and Query the Comparator Syntax Command CALCulate LIMit STATe 1 0 ON or OFF Query CALCulate LIMit STATe Response ON or OFF Example Command CALC LIM STAT ON Query CALC LIM STAT Response ON Note When the Comparator function is enabled auto ranging is disabled Switching ...

Page 125: ......

Page 126: ... threshold is set to 2 8593 Ω Query CALC LIM RES UPP Response 28593 Note The value is sent as a whole integer count To set 120 53 mΩ with the 300 mΩ range send the following CALC LIM RES UPP 12053 Voltage Measurement Syntax Command CALCulate LIMit VOLTage UPPer Upper threshold Query CALCulate LIMit VOLTage UPPer Response Upper threshold Upper threshold 0 to 999999 NR1 Example Command CALC LIM VOLT...

Page 127: ......

Page 128: ...shold is set to 0 5076 Ω Query CALC LIM RES REF Response 5076 Note The value is sent as a whole integer count To set 120 53 mΩ with the 300 mΩ range send the following CALC LIM RES REF 12053 Voltage Measurement Syntax Command CALCulate LIMit VOLTage REFerence Reference value Query CALCulate LIMit VOLTage REFerence Response Reference value Reference value 0 to 999999 NR1 Example Command CALC LIM VO...

Page 129: ......

Page 130: ...CALC STAT STAT Response ON About the Statistical Calculation function Data samples can be acquired by the following three methods Press the TRIG key Apply an EXT I O TRIG signal Send the TRG command The CALCulates STATistics STATe command does not clear calculation results When the valid data count is zero σn 1 returns 0 Clearing calculation results does not disable the Statistical Calculation fun...

Page 131: ......

Page 132: ...imum Response Maximum value NR3 Data No of Maximum value NR1 Example Query CALC STAT VOLT MAX Response 1 3924E 0 1 Query the Minimum value Resistance Measurement Syntax Query CALCulate STATistics RESistance MINimum Response Minimum value NR3 Data No of Minimum value NR1 Example Query CALC STAT RES MIN Response 294 88E 3 8 Voltage Measurement Syntax Query CALCulate STATistics VOLTage MINimum Respon...

Page 133: ......

Page 134: ...ES CP Response 0 04 0 04 Voltage Measurement Syntax Query CALCulate STATistics VOLTage CP Response Cp NR2 CpK NR2 Example Query CALC STAT VOLT CP Response 0 91 0 00 Set and Query the Memory Function State Syntax Command MEMory STATe 1 0 ON OFF Query MEMory STATe Response ON OFF Example Command MEM STAT ON Query MEM STAT Response ON Clear Instrument Memory Syntax Command MEMory CLEAr ...

Page 135: ......

Page 136: ... 0 ON or OFF Query SYSTem DATAout Response ON or OFF ON Measured values are output automatically when a trigger occurs OFF Measured values are not output Example Command SYST DATA OFF Query SYST DATA Response OFF Note This function is convenient when you want to obtain measured values by applying EXT I O trigger input When this function is enabled and a footswitch is connected to the TRIG terminal...

Page 137: ......

Page 138: ... Load Measurement Values Syntax Command SYSTem SAVE 1 to 126 SYSTem LOAD 1 to 126 Note Attempting to load a panel number that has not been saved results in an execution error Up to 126 measurement configurations can be saved and loaded Refer to Panel Save and Load Functions for details Backup Current Measurement Configuration Syntax Command SYSTem BACKup Description Command The current measurement...

Page 139: ......

Page 140: ...t9 bit8 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 OUT9 OUT8 OUT7 OUT6 OUT5 OUT4 OUT3 OUT2 OUT1 OUT0 Pin No 36 18 35 17 34 16 33 15 32 14 EXT I O Input Syntax Query IO IN Response 0 to 31 NR1 Description Query Signals at the EXT I O IN0 to IN4 input terminals are read at the leading edge Each bit edge data is cleared upon reading by this query A bit is set when the leading edge short between each sig...

Page 141: ......

Page 142: ......

Page 143: ......

Page 144: ...r source Query Queries the trigger source selection Example Command TRIG SOUR IMM Sets the trigger source to internal triggering Query Response TRIG SOUR IMMEDIATE The trigger source is set to internal triggering Enable Disable and Query Trigger Delay Syntax Command TRIGger DELay STATe 1 0 ON or OFF Query TRIGger DELay STATe Response ON or OFF ON Trigger delay enabled OFF Trigger delay disabled Ex...

Page 145: ......

Page 146: ...nt Example Query READ Response 289 68E 3 1 3921E 0 ΩV mode Measured resistance is 289 68 mΩ and voltage is 1 3921 V Error This command causes an execution error if issued during the Continuous Measurement state after INITIATE CONTINUOUS ON Note The next command does not execute until measurement is finished When the trigger source is external the TRG command does not trigger measurement See Sectio...

Page 147: ......

Page 148: ...her as PASS FAIL This instrument judges resistance and voltage independently Also when the Comparator function is enabled ON auto ranging is disabled OFF Voltage Limiter This instrument does not include a voltage limiter function limiting open terminal voltage to 20 mV This instrument s open terminal voltage is 7 V peak dropping to a few millivolts when the test leads are connected to a test objec...

Page 149: ......

Page 150: ...o not include a decimal point Resistance measurement values consist of four digits with FAST sampling Numerical values do not include a decimal point MEASure RESistance Measured resistance Judgment result FAIL PASS OFF NG ΩV HI IN LO OFF NG Ω Resistance measurement values consist of five digits with FAST sampling Numerical values do not include a decimal point Resistance measurement values consist...

Page 151: ......

Page 152: ......

Page 153: ......

Page 154: ...utput INIT CONT OFF vbCrLf Continuous measurement OFF For i 1 To 10 Wait for PC key input Create a key input check routine to set InputKey True when a key is pressed Do While 1 If InputKey True Then Exit Do DoEvents Loop After confirming key input measure once and read the measured value MSComm1 Output READ vbCrLf Send READ to measure and import the measurement recvstr From here on continue receiv...

Page 155: ......

Page 156: ...nal triggering MSComm1 Output INIT CONT ON vbCrLf Continuous measurement ON Clear confirmation of External I O TRIG input MSComm1 Output IO IN vbCrLf recvstr While Right recvstr 1 Chr 10 recvstr recvstr MSComm1 Input DoEvents Wend For i 1 To 10 Wait for External I O TRIG input Do While 1 MSComm1 Output IO IN vbCrLf recvstr While Right recvstr 1 Chr 10 recvstr recvstr MSComm1 Input DoEvents Wend If...

Page 157: ......

Page 158: ...ate unused Dim i As Integer pad 0 Board Address 0 gpibad 1 3561 3561 01 Address 1 timeout T10s Timeout about 10s Call ibfind gpib0 0 Initialize GP IB Call ibdev pad gpibad 0 timeout 1 0 ud Call SendIFC pad Open App Path data csv For Output As 1 Open a text file for saving Call Send pad gpibad TRIG SOUR IMM NLend Select internal triggering Call Send pad gpibad INIT CONT ON NLend Continuous measurem...

Page 159: ......

Page 160: ...ad 0 Board Address 0 gpibad 1 3561 3561 01 Address 1 timeout T100s Timeout 100s because of external trigger wait state Call ibfind gpib0 0 Initialize GP IB Call ibdev pad gpibad 0 timeout 1 0 ud Call SendIFC pad Open App Path data csv For Output As 1 Open a text file for saving Call Send pad gpibad TRIG SOUR EXT NLend Select external triggering Call Send pad gpibad INIT CONT OFF NLend Continuous m...

Page 161: ......

Page 162: ...v pad gpibad 0 timeout 1 0 ud Call SendIFC pad Call Send pad gpibad FUNC RV NLend Select ΩV mode Call Send pad gpibad RES RANG 300E 3 NLend Select 300 mΩ range Call Send pad gpibad SAMP RATE SLOW NLend Select SLOW sampling Call Send pad gpibad TRIG SOUR IMM NLend Select internal triggering Call Send pad gpibad INIT CONT OFF NLend Continuous measurement OFF Call Send pad gpibad CALC LIM BEEP HL NLe...

Page 163: ......

Page 164: ... becomes stable within the measurement accuracy of the internal measurement circuitry Resistance measurement Approx 3 ms Voltage measurement Approx 3 ms Response times are nominal values Actual values depend on the impedance characteristics of the object being measured Total measurement time Overall time required for measurement Response time sampling time Zero Adjustment Zero adjustment function ...

Page 165: ......

Page 166: ...I O Input CMOS level Output Open collector 35 V 50 mA max Input signals Measurement start trigger print zero adjustment calibration manual comparator and panel load 7 bit Output signals End of measurement End measurement Comparator result resistance Hi IN Lo voltage Hi IN L AND measurement fault and General Purpose output 10 bit EXT I O control input can be disabled by a remote command RS 232C Com...

Page 167: ......

Page 168: ......

Page 169: ......

Page 170: ......

Page 171: ......

Page 172: ......

Page 173: ......

Page 174: ......

Page 175: ......

Page 176: ......

Page 177: ......

Page 178: ......

Page 179: ......

Page 180: ......

Page 181: ......

Page 182: ...Appendix 9 Dimensional Diagram 176 ...

Page 183: ......

Page 184: ...ge 26 Measurement setting state 61 Measurement settings 62 Measurement time 76 Measurement value output 64 Memory function 58 128 Menu display 13 N Noise 4 6 132 163 166 NR1 95 NR2 95 NR3 95 O OF 32 157 Operating key 9 11 65 Option 1 172 OUT 72 Output queue 97 Overflow 32 157 P Panel load function 62 Panel save function 61 Period of guaranteed accuracy 162 Photocoupler connection 77 78 Power cord ...

Page 185: ...ical calculation function 54 Sub display 9 10 Supply frequency 162 Supply voltage 6 19 162 Switch connection 77 Switching 50 Switching between measurement value and comparator setting displays 50 T Temperature coefficient 161 Terminator 94 Test lead 17 21 28 172 Threshold method 45 Timing chart 75 TRIG 51 56 58 64 71 Trigger 11 51 135 Trigger delay 11 52 Trigger source 135 U Upper and lower thresh...

Page 186: ...iv Index ...

Page 187: ......

Page 188: ......

Page 189: ...81 268 28 0568 E mail os com hioki co jp URL http www hioki co jp Printed in Japan 3561A981 01 All reasonable care has been taken in the production of this manual but if you find any points which are 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 subj...

Page 190: ...92 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 3561A981 01 06 09H Printed on recycled paper ...

Reviews: