EasyManua.ls Logo

Keithley 2182 - Page 167

Keithley 2182
339 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Stepping and Scanning 9-19
FOR j = 1 TO (CalcReadings)
Chan2! = Readings!(k%) - Reading!(k% + NumRdgsPerStep)
Chan2! = Chan2! / 2
DataCH2$(j) = STR$(Chan2!)
CH1pos! = 0!
CH1neg! = 0!
FOR i = 1 TO (NumRdgsPerStep - 1)
CH1pos! = CH1pos! + Reading!(k% + i)
CH1neg! = CH1neg! + Reading!(k% + i + NumRdgsPerStep)
NEXT i
Chan1! = ((CH1pos! - CH1neg!) / ((NumRdgsPerStep - 1) * 2))
DataCH1$(j) = STR$(Chan1!)
k% = k% + (NumRdgsPerStep * 2)
NEXT j
'Printing results to a file
OPEN "chan1.xls" FOR OUTPUT AS #1 'this will place chan1.xls in your
'current working directory
OPEN "chan2.xls" FOR OUTPUT AS #2 'this will place chan2.xls in your
'current working directory
FOR i = 1 TO CalcReadings
PRINT #2, DataCH2$(i)
PRINT #1, DataCH1$(i)
NEXT i
CLOSE #1 'close the chan1.xls file
CLOSE #2 'close the chan2.xls file

Table of Contents

Other manuals for Keithley 2182

Related product manuals