Stepping and Scanning
9-17
A loop program can be written to extract the data as follows:
' This is for Channel 2 Data’
Let NumRdgsPerStep = 4
; 1 Ch2 and 3 Ch1 readings stored in the buffer
/ 2400 current level.
Let CalcRdgs = 6
; Total number of positive or negative current
levels out of the 2400.
Let k = 1
For j =1 to CalcRdgs
CH2 Rdg#( j ) = Buffer Rdg#( k )- Buffer Rdg#( k + NumRdgsPerStep )
CH2 Rdg#( j ) = CH2 Rdg#( k ) / 2
k = k + ( NumRdgsPerStep * 2 )
Next j
' This for For Channel 1 Data’
Let NumRdgsPerStep = 4
Let CalcRdgs = 6
Let k = 1
For j = 1 to CalcRdgs
Let CH1 Rdg#_pos = 0
Let CH1 Rdg#_neg = 0
For m =1 to NumRdgsPerStep - 1
CH1 Rdg#_pos = CH1 Rdg#_pos + Buffer Rdg#( k +m )
CH1 Rdg#_neg = CH1 Rdg#_neg + Buffer Rdg#( k +m + NumRdgsPerStep )
Next m
CH1 Rdg#( j ) = ( CH1 Rdg#_pos - CH1 Rdg#_neg ) /
( (NumRdgsPerStep - 1) * 2)
Next j
An example program using “QBASIC ” was written that sets up an Array for all the data out
of the 2182 buffer, parses the comma separated data into the array, and calculates the DC current
reversal data for both Channel 1 and Channel 2.
CONST Addr = 7
'Represents the address of the 2182
CONST NumRdgsPerStep = 4
'Represents the total number of CH1 & CH2
'readings at each positive or negative current
'step
CONST CalcReadings = 6
'Represents number of paired positive & negative
'steps in 2400
CONST NumRdgs = (NumRdgsPerStep * 2 * CalcReadings)
'NumRdgs represents the number of readings to
'store in 2182's buffer
'The 2 accounts for positive and negative steps
DIM DataCH2$(CalcReadings)
'array represents total number of channel 2
'readings
DIM DataCH1$(CalcReadings)
'array represents total number of channel 1
'readings
FOR i = 1 TO (CalcReadings) 'allocates space for each channel reading
'DataCH2$(i) = SPACE$(18)
'DataCH1$(i) = SPACE$(18)
NEXT i
'CODE for Parsing single string of buffer response into 48 individual
readings
OneReading$ = SPACE$(20)
'represents 1 reading from buffer string
'response
OneCharacter$ = SPACE$(2)
'represents 1 character from buffer string
'response
Summary of Contents for 2182
Page 1: ...www tek com keithley Model 2182 2182A Nanovoltmeter User s Manual 2182A 900 01 Rev B May 2017...
Page 18: ......
Page 22: ......
Page 23: ...1 Getting Started Getting Started...
Page 41: ...2 VoltageandTemperature Measurements Voltageand Temperature Measurements...
Page 68: ...2 28 Voltage and Temperature Measurements...
Page 69: ...3 Range Digits Rate andFilter Range Digits Rate andFilter...
Page 82: ...3 14 Range Digits Rate and Filter...
Page 83: ...4 Relative mX b and Percent Relative mX b andPercent...
Page 91: ...5 RatioandDelta Ratioand Delta...
Page 117: ...6 Buffer Buffer...
Page 123: ...7 Triggering Triggering...
Page 140: ...7 18 Triggering...
Page 141: ...8 Limits Limits...
Page 149: ...9 SteppingandScanning Steppingand Scanning...
Page 168: ...9 20 Stepping and Scanning...
Page 169: ...10 AnalogOutput Analog Output...
Page 175: ...11 RemoteOperation Remote Operation...
Page 205: ...12 CommonCommands Common Commands...
Page 221: ...13 SCPISignalOriented Measurement Commands SCPISignalOri entedMeasure ment Commands...
Page 225: ...14 SCPIReferenceTables SCPIRefer enceTables...
Page 239: ...15 AdditionalSCPI Commands Additional SCPICom mands...
Page 260: ...15 22 Additional SCPI Commands...
Page 261: ...A Specifications Specifications...
Page 263: ...B Statusand ErrorMessages StatusandError Messages...
Page 268: ...B 6 Status and Error Messages...
Page 269: ...C Measurement Considerations Measurement Consider ations...
Page 278: ...C 10 Measurement Considerations...
Page 279: ...D Model182Emulation Commands Model182 EmulationCom mands...
Page 284: ...D 6 Model 182 Emulation Commands...
Page 285: ...E Example Programs ExamplePro grams...
Page 293: ...F IEEE 488 BusOverview IEEE 488Bus Overview...
Page 307: ...G IEEE 488andSCPI ConformanceInformation IEEE 488and SCPIConform anceInforma tion...
Page 310: ...G 4 IEEE 488 and SCPI Conformance Information...
Page 311: ...H Measurement Queries Measurement Queries...
Page 316: ...H 6 Measurement Queries...
Page 317: ...I Delta PulseDelta and DifferentialConductance Delta Pulse Deltaand Dif ferentialCon ductance...