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.

Changing Code from TSP to SCPI commands

Post Reply
Posts: 1
Joined: December 7th, 2017, 1:10 am
Country: Germany

Changing Code from TSP to SCPI commands

Post by moe90210 » December 7th, 2017, 1:20 am


I used to do a 4-point measurement with a Keithley 2602B (2 Channel), but now i need the SourceMeter as a second current source for my coils. I want to do the 4-point measurement with an older Keithley 2400 (1 Channel), which uses the older SCPI commands.
I have some issues changing the code. For example there is this following line

fprintf(obj1, 'smub.source.output = smua.OUTPUT_OFF');

Can someone tell me what this means? Is it just a shorter way to disable both Outputs A and B or has it a specific meaning?
Thanks for the help.

Dave W
Tektronix Applications
Tektronix Applications
Posts: 276
Joined: April 26th, 2010, 12:01 pm
Country: United States

Re: Changing Code from TSP to SCPI commands

Post by Dave W » January 5th, 2018, 9:25 am

Hi moe,

The command "smub.source.output = smua.OUTPUT_OFF" simply turns SMUB off and has no effect on SMUA.

Technically speaking, writing it this way is bad form, but it works because both smua.OUTPUT_OFF and smub.OUTPUT_FF are really just constants that equate to 0. This line could even be replaced/shortened to "smub.source.output = 0"

Hope this helps!

Post Reply

Return to “Low Voltage Measurements”

Who is online

Users browsing this forum: No registered users and 0 guests