Model 2651A High Power System SourceMeter® Instrument User's Manual Section 5: Capturing high power pulse waveforms
--[[
Name: PrintPulseData()
Description;
This function prints the data contained in smua.nvbuffer1 and
smua.nvbuffer2 in a format that is copy and paste compatible with
Microsoft Excel.
]]
function PrintPulseData()
print("Timestamp\tVoltage\tCurrent")
for i=1, smua.nvbuffer1.n do
print(string.format("%g\t%g\t%g", smua.nvbuffer1.timestamps[i],
smua.nvbuffer2[i], smua.nvbuffer1[i]))
end
end
Example program usage
The functions in this script allow the parameters of the test to be adjusted without rewriting and
rerunning the script. To execute the test, either call
CapturePulseV()
(to capture voltage) or
CapturePulseI()
(to capture current), passing in the appropriate values as parameters.
The parameters of the
CapturePulseV()
function are in the following table:
CapturePulseV() parameters
Parameter
Units
Description
pulseLevel
Volts
The voltage level of the pulse
pulseWidth
Seconds
The width of the pulse
pulseLimit
Amperes
The current limit of the pulses to output
numPulses
Not applicable
The number of pulses to output
An example call to this function is as follows:
CapturePulseV(10, 300e-6, 50, 5)
This call will output five 10 V pulses with a 300
μ
s pulse width. The pulses will be limited to 50 A and
have a 1 percent duty cycle. At the completion of the pulsed outputs, the source-measure unit (SMU)
output is turned off. The resulting data from this test will be returned in a Microsoft
®
Excel
®
compatible
format (you can cut and paste the output from the console) that can be used for graphing and
analysis.
The parameters of the
CapturePulseI()
function are contained in the following table:
CapturePulseI() parameters
Parameter
Units
Description
pulseLevel
Amperes
The current level of the pulse
pulseWidth
Seconds
The width of the pulse
pulseLimit
Volts
The voltage limit of the pulses to output
numPulses
Not applicable
The number of pulses to output
2651A-900-01 Rev. A / March 2011
5-9