From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital Multimeters (DMMs) and Precision DC Sources

cancel
Showing results for 
Search instead for 
Did you mean: 

need help for writing an own pulse script

Hello,

i want to generate a simple current pulse with my keithley 2602A, but i have a problem with the pulsewidth.
I observed the length of the pulse on an oscilloscope and it's nearly constant for about four times and then, the next time it takes about 40 seconds longer.

I wrote the following script:

smua.measure.rangev = 6.000000
smua.measure.rangei = 1.000000
smua.source.rangev = 6.000000
smua.source.rangei = 1.000000

smua.sense = 1.000000

ntimes = 100000.000000
smua.source.func = smua.OUTPUT_DCAMPS

smua.source.leveli = 0.186000
smua.source.limiti = 0.200000
smua.source.limitv = 5.000000

mybuf = smua.makebuffer(2)
mybuf.clear()
mybuf.appendmode = 1

smua.measure.count = 1

smua.source.output = 1
for i = 1 , ntimes do -- Perform following command(s) ntimes
end --for
smua.measure.i(mybuf)
smua.measure.v(mybuf)
smua.source.output = 0



I figured out, that the problem is in smua.measure.X and not in the loop.

Could you please help me?

0 Kudos
Message 1 of 4
(5,954 Views)
This board is for NI DMMs and the script language it's from Keithley. Shouldn't you be asking them?
0 Kudos
Message 2 of 4
(5,941 Views)

Definitely the wrong forum.

The forum you arre looking for can be found here:

http://forum.keithley.com

 

0 Kudos
Message 3 of 4
(5,906 Views)

Ok, thanks!

0 Kudos
Message 4 of 4
(5,904 Views)