TSP problem with example script in 2450 manual

Post Reply
Theerapong
Posts: 10
Joined: May 30th, 2014, 10:09 am
Country: Thailand

TSP problem with example script in 2450 manual

Post by Theerapong » October 2nd, 2017, 5:36 am

I do run TSP script following the example in the USER manual for solar cell, I-V test (p. 9-7 and 9-8).
I used the rear panel with 2-wires tri-axial cables connected with FORCE HI and FORCE LO.
The KE2450 error was shown -286 code (attemp to perform arithmetic on field '?' / nil value)
Also 4914 (index exceeds maximum reading b store in buffer).

Please help.

Best regards.

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

Re: TSP problem with example script in 2450 manual

Post by Andrea C » October 4th, 2017, 6:26 am

It should also give a line number of code that throws the error.

Most likely it is in the for/next loop that walks through the data to determine max power, current and voltage.
The for loop uses: for i = 1, num do...

However, if the number of points in buffer is less than num, you will get the error you describe.
Change the for loop to: for i = 1, defbuffer1.n do...

The ".n" property is how many points in buffer.

Why might the points in buffer be less than the value assigned to num?
The "smu.source.sweeplinear" function has optional parameter for abort on compliance. By default it is set to ON.
So if the sweeplinear is expected to do "num" points, but the compliance was encountered, the resulting buffer will have fewer than "num" points and you will have a logic error when processing the buffer.

Post Reply

Return to “Solar Cell Measurements”

Who is online

Users browsing this forum: No registered users and 1 guest