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
jp3141
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("TRACE:FEED:CONT NEXT")
K2400.write("TRIG:COUNT ", str(NumPoints))
K2400.write("OUTPUT ON")
K2400.write("INIT")

# 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: No registered users and 1 guest