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.

2602B Continuous measurements and transfer to PC

Models 2601, 2602, 2611, 2612, 2635, 2636
Models 2601A, 2602A, 2611A, 2612A, 2635A, 2636A
Models 2601B, 2602B, 2604B, 2611B, 2612B, 2614B, 2634B, 2635B, 2636B
Post Reply
Luferau
Posts: 2
Joined: November 6th, 2019, 8:21 am
Country: Belarus

2602B Continuous measurements and transfer to PC

Post by Luferau » November 6th, 2019, 9:07 am

Hello,

Please guide me in the right direction. What measurement system architecture should I use to:

- continuously (no breaks) measure current at a given sampling rate (up to 10 kHz) (voltage = const)
- receive measured data in a program on a PC (Labview)

As I see the solution here is to run the script inside the instrument and wait/receive data on the PC as an array.

At the moment I don’t have the equipment at hand to verify correct operation. Using the forum and Reference Manual, I created a preliminary script for discussion.

Do I understand correctly that after running this script data from the equipment will come to the PC 10 times per second?
However, as I understand it, measurements will not be taken during data transmission? How can this be avoided?
Thanks.

Code: Select all

        loadscript ContinuousMeasurementScript
        smua.reset()

        smua.nvbuffer1.clear()
        smua.nvbuffer1.appendmode = 1
        smua.nvbuffer1.collecttimestamps = 1

	-- set fixed measure range
	smua.measure.rangei = 100e-6  	
	smua.measure.autozero = smua.AUTOZERO_ONCE
	-- 10 kHz sampling rate
	smua.measure.interval = 0.0001
	smua.measure.nplc = (smua.measure.interval - 100e-6)*localnode.linefreq
        smua.measure.count = 1000

	-- Endless cycle
	while true do
		smua.measure.overlappedi(smua.nvbuffer1)
		waitcomplete()

	        printbuffer(1, 1000, smua.nvbuffer1)
	end

        endscript

        ContinuousMeasurementScript.run()

Andrea C
Keithley Applications
Keithley Applications
Posts: 1333
Joined: October 15th, 2010, 10:35 am
Country: United States
Contact:

Re: 2602B Continuous measurements and transfer to PC

Post by Andrea C » November 8th, 2019, 3:25 pm

You seem to be describing a desire to stream the data from the 2602B across the bus and store on HDD of your computer.

What duration of sampling are you envisioning?

Luferau
Posts: 2
Joined: November 6th, 2019, 8:21 am
Country: Belarus

Re: 2602B Continuous measurements and transfer to PC

Post by Luferau » November 11th, 2019, 2:10 am

Andrea C, thank you for paying attention to my question.
Andrea C wrote:
November 8th, 2019, 3:25 pm
You seem to be describing a desire to stream the data from the 2602B across the bus and store on HDD of your computer.
Yes, we can say so
Andrea C wrote:
November 8th, 2019, 3:25 pm
What duration of sampling are you envisioning?
As I understand, your question is related to the size of the internal buffer? it's possible to save 140,000 readings in the buffer, which will give me 14 seconds of recording (at maximum sample rate with timestamps and source values disabled). If this time is exceeded, сan data be continuous (without gaps)?

Post Reply

Return to “2600 Series SourceMeter”

Who is online

Users browsing this forum: No registered users and 1 guest