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.

SCPI Programming

Post Reply
Posts: 2
Joined: April 21st, 2015, 9:30 am
Country: Portugal

SCPI Programming

Post by hugof86 » June 19th, 2015, 3:08 pm


I'm kinda new in scpi programation, nevertheless i make a program in c# (to control my model 6487) and one part is coded below as pseudo-code:

Code: Select all

            Write("FORM:ELEM READ,TIME");
            Write("TRIG:COUN 100");
            Write("NPLC .1");       
            Write("TRAC:POIN 100");     
            Write("TRAC:FEED SENS"));
            Write("TRAC:FEED:CONT NEXT");
            Write("SYST:ZCH OFF"); Delay(5000);
            Write("INIT"); Delay(5000);
            Write("TRAC:DATA?"); Delay(5000);
            Write("CALC3:FORM MEAN"); Delay(5000);
So.. I use this code (based on a example of keithley) and when i read the buffer i'm getting the 100 valors and not the average. If i change the numbers of valor needed to average to 20 or even 50 (like the example) i'm getting the average.

Can u give me some tip about the problem? Thanks.

Norbert W
Keithley Applications
Keithley Applications
Posts: 227
Joined: October 21st, 2010, 7:18 am
Country: Germany

Re: SCPI Programming

Post by Norbert W » June 22nd, 2015, 1:08 am

here a screenshot of a test using the Keithley communicator software;
6487.JPG (64.89 KiB) Viewed 9066 times
Note a *RST added at the beginning; after every query (commands ending with a ?) data are read
by the software. Please try the same and post a screenshot if your results look different.

Post Reply

Return to “Instrument Accessories & GPIB”

Who is online

Users browsing this forum: No registered users and 1 guest