
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
Содержание 2182
Страница 1: ...www tek com keithley Model 2182 2182A Nanovoltmeter User s Manual 2182A 900 01 Rev B May 2017...
Страница 18: ......
Страница 22: ......
Страница 23: ...1 Getting Started Getting Started...
Страница 41: ...2 VoltageandTemperature Measurements Voltageand Temperature Measurements...
Страница 68: ...2 28 Voltage and Temperature Measurements...
Страница 69: ...3 Range Digits Rate andFilter Range Digits Rate andFilter...
Страница 82: ...3 14 Range Digits Rate and Filter...
Страница 83: ...4 Relative mX b and Percent Relative mX b andPercent...
Страница 91: ...5 RatioandDelta Ratioand Delta...
Страница 117: ...6 Buffer Buffer...
Страница 123: ...7 Triggering Triggering...
Страница 140: ...7 18 Triggering...
Страница 141: ...8 Limits Limits...
Страница 149: ...9 SteppingandScanning Steppingand Scanning...
Страница 168: ...9 20 Stepping and Scanning...
Страница 169: ...10 AnalogOutput Analog Output...
Страница 175: ...11 RemoteOperation Remote Operation...
Страница 205: ...12 CommonCommands Common Commands...
Страница 221: ...13 SCPISignalOriented Measurement Commands SCPISignalOri entedMeasure ment Commands...
Страница 225: ...14 SCPIReferenceTables SCPIRefer enceTables...
Страница 239: ...15 AdditionalSCPI Commands Additional SCPICom mands...
Страница 260: ...15 22 Additional SCPI Commands...
Страница 261: ...A Specifications Specifications...
Страница 263: ...B Statusand ErrorMessages StatusandError Messages...
Страница 268: ...B 6 Status and Error Messages...
Страница 269: ...C Measurement Considerations Measurement Consider ations...
Страница 278: ...C 10 Measurement Considerations...
Страница 279: ...D Model182Emulation Commands Model182 EmulationCom mands...
Страница 284: ...D 6 Model 182 Emulation Commands...
Страница 285: ...E Example Programs ExamplePro grams...
Страница 293: ...F IEEE 488 BusOverview IEEE 488Bus Overview...
Страница 307: ...G IEEE 488andSCPI ConformanceInformation IEEE 488and SCPIConform anceInforma tion...
Страница 310: ...G 4 IEEE 488 and SCPI Conformance Information...
Страница 311: ...H Measurement Queries Measurement Queries...
Страница 316: ...H 6 Measurement Queries...
Страница 317: ...I Delta PulseDelta and DifferentialConductance Delta Pulse Deltaand Dif ferentialCon ductance...