Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

Getting status while waiting for TRACE:DATA?

Models 2400, 2401, 2410, 2420, 2425, 2430, 2440, 6430
Post Reply
Posts: 2
Joined: May 5th, 2018, 12:21 pm
Country: United States

Getting status while waiting for TRACE:DATA?

Post by jp3141 » May 5th, 2018, 12:30 pm

I have a measurement that potentially takes a long time (constant current into a capacitor, and fill trace buffer with voltage readings vs. time; the capacitance is unknown at the start - the trace takes a few mins). I am using a 2500-element trace buffer. The key parts of my code are :

K2400.write("TRACE:POINTS ", str(NumPoints))
K2400.write("TRIG:COUNT ", str(NumPoints))
K2400.write("OUTPUT ON")

# long delay here for TRACE to complete on 2400

print(K2400.query("TRACE:POINTS:ACTUAL?").strip(), "data points collected.")
print(K2400.query("TRACE:DATA?").replace(",", "\n"))
Readings = [float(n) for n in K2400.query("TRACE:DATA?").split(",")]

After INIT, the code waits (timeout is set to long enough) until the TRACE:POINTS:ACTUAL? returns. On the instrument itself, the display continually updates with the voltage as it ramps (charging the capacitor).

How can I programmable 'watch' the charging ? Ultimately I would also like to terminate the 2500-count sweep when the instrument reaches compliance.

Post Reply

Return to “2400 Series SourceMeter”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest