Model 2651A High Power System SourceMeter® Instrument User's Manual Section 7: Increasing SMU current sourcing ability
--[[
Function: PrintDualSmuRdsonData()
Description:
This function processes the data stored in the SMU reading buffers by
function DualSmuRdson() and prints back the individual SMU data and the
combined SMU data and Rds(on) readings in a format that is copy and paste
compatible with Microsoft Excel.
]]
function PrintDualSmuRdsonData()
-- Print the gate SMU readings
print("Gate SMU\r\nSource Value\tVoltage\tCurrent")
print(string.format("%0.2f\t%g\t%g\r\n",
node[3].smua.nvbuffer1.sourcevalues[1],
node[3].smua.nvbuffer2[1],
node[3].smua.nvbuffer1[1]))
-- Print column headers
print("Timestamp\tSource Value\tVoltage 1\tCurrent 1\tVoltage
2\tCurrent 2\tVoltage\tCurrent\tRds(on)")
-- Loop through the reading buffer printing one row at a time
for i = 1,smua.nvbuffer1.n do
-- Combined Source Level = SMU1 source level + SMU2 source level
sourceLevel = smua.nvbuffer1.sourcevalues[i] +
node[2].smua.nvbuffer1.sourcevalues[i]
-- Combined Voltage = Average(SMU1 Voltage reading, SMU2 Voltage reading)
combinedVoltage = (smua.nvbuffer2[i] + node[2].smua.nvbuffer2[i]) / 2
-- Combined Current = SMU1 Current r SMU2 Current reading
combinedCurrent = smua.nvbuffer1[i] + node[2].smua.nvbuffer1[i]
-- Rds(on) = Combined Voltage / Combined Current
rdson = combinedVoltage / combinedCurrent
-- Print a row of data
print(string.format("%g\t%g\t%g\t%g\t%g\t%g\t%g\t%g\t%g",
smua.nvbuffer1.timestamps[i],
sourceLevel,
smua.nvbuffer2[i],
smua.nvbuffer1[i],
node[2].smua.nvbuffer2[i],
node[2].smua.nvbuffer1[i],
combinedVoltage,
combinedCurrent,
rdson))
end
end
2651A-900-01 Rev. A / March 2011
7-15