Parts Ordering
Request Sales Contact
Request Technical Support
Available 6:00 AM – 5:00 PM PST Call
Call us at
Available 6:00 AM – 5:00 PM (PST) Business Days
Contact US Contact us with comments, questions, or feedback Download Download Manuals, Datasheets, Software and more: DOWNLOAD TYPE Show All Products Datasheet Manual Software Marketing Document Faq Video MODEL or KEYWORD FeedbackHave feedback? We'd love to hear your thoughts.
Whether positive or negative, your feedback helps us continually improve the Tek.com experience. Let us know if you're having trouble or if we're doing an outstanding job.
Tell us what you think Tektronix Blog From Button Pushing to Automation: Getting Started with Scripting From Button Pushing to Automation: Getting Started with Scripting Saturday, January 19, 2019 by: Tektronix Expert #FeatureHighlight #DMM #DAQ #SMU By Andrew Kirby Making simple electrical measurements is something that every engineer is familiar with. These measurements are the usual: current, voltage, and resistance. In a typical benchtop setting, these measurements are made one at a time, using the front panel of a given instrument. The knobs of the power supply are turned to the appropriate voltage, the current limit is set, the DMM is carefully clipped onto the circuit, and the value is the jotted down in a notebook or typed into a spreadsheet for later analysis. If a new measurement is needed, each component must be adjusted manually, this takes time, but if you’re only doing it a handful of times, it isn’t too bad. Further on in your career though, whether that be industry, academia, or otherwise, benchtop measurements are not the only thing test and measure equipment is used for. At this level, it becomes important to make lots of measurements on various parameters, sometimes at regular intervals over a long period of time. Or maybe, in a production line setting, verification testing on each unit coming through a line, as they come through the line. In this application, it is important to not slow down the line too much by keeping up a high level of throughput. Obviously, we can’t use our same strategy of manually hooking up each unit, adjusting the necessary knobs, looking up at the reading on the front panel, then writing the reading down in a notebook. We need to automate this, but how? Luckily, those same benchtop instruments have hidden functionality. It’s easy to think of them as isolated units, cut off from each other and from the rest of the world. To a freshly minted engineer, these instruments are only their front control panels, but, if you turn the instrument around, you’ll likely find an array of various communication ports, hidden away on the rear panel. To automate our measurements, we will need to use some of those. Connecting a USB cable, LAN cable, GPIB cable, or anything else all accomplish the task of setting up a pathway for a separate computer to communicate with an instrument. The next thing we need is a way to remotely and automatically press all the buttons we need to press to get the instrument to do what we need it to do at any given moment; we need a command set: something to call to command the instrument to do a certain thing. Changing the function to voltage, setting the range, taking a measurement, clearing a reading buffer, these are all examples of actions that can be done by a command set. One such command set is the Standard Commands for Programmable Instruments, or SCPI (pronounced “Skippy”). Keithley Instruments’ solution to this is the Test Script Processor (TSP) command set. At a base level, these two sets function in the same way, and many Keithley products support both sets. However, TSP offers some additional functionality such as built in control structures and the ability to run the whole thing from the instrument, without needing to continually communicate to a controlling computer, but we’ll talk about that in a bit. So, think of the commands in a command set like virtual button pushes, only much more useful. Of course, simply sending commands from a computer is no better than pushing the buttons on the front panel unless the computer can do it all automatically. We need some sort of control structure to force these commands to execute when and how we want them to. For example, if some condition is met, like a temperature reading goes above a certain point, we want the instrument to make 1000 readings, each 100 milliseconds apart. How could we do something like this? We could use a separate programming language to handle all the logic, sending commands from our chosen command set when this separate language decides. If we’ve chosen TSP as our command set, we can use the fact that TSP is a Turing complete programming language itself and write a script with commands and logic without using any other programming language. Since this script doesn’t rely on a separate programming language, we can even load it directly on the instrument itself and run our whole test without using a controlling computer. For our chosen task, we can use “if” and “for” statements to write the logic we want, saving us from having to develop some impressive manual dexterity and patience. Pretty cool, right? The commands are our hands pressing the buttons and the program is our brain knowing the process to follow to make all our measurements. TSP is a very powerful tool in instrument automation and testing. To prove it, I’m going to scale up a typical benchtop measurement to an industry level test. Let’s say these are our requirements: We have a 6.9 volt Zener diode In series with a 150 ohm resistor Connected to a 12 volt supply We want to find the power being consumed by the diode To do this, we need to know the voltage across the diode and the current flowing through it. We can measure these things using a digital multimeter. First, we switch our function to DC Voltage, plug our leads into the Hi and Lo input terminals, clip them across the diode, and record the measurement. Then, we remove our leads from the circuit, move one of our leads to the Amps terminal, switch the function of the instrument to DC Current, put the meter in series with the circuit, and record the measurement. Using the two recorded values we can then manually calculate the power being consumed by the Zener diode. I measured 6.85 V and 34.40 mA and I calculated power to be 236 mW, or about a quarter of a watt. The whole process took me about a minute and a half to complete. But what if we had to do this test every minute over the course of multiple hours. Maybe we could do that, but almost anything else would be a better use of our time, especially when we have the tools to automate. The script below shows how this can be done, but before we go further, we need to change the wiring of the setup. Since we don’t want to spend any time changing the leads from Input Hi to AMPS when we change functions, we will instead use the below setup, to measure both without unplugging anything. The script starts by defining some variables. We want to run our test for 5 hours and we can use that number to calculate the test time in minutes. The next thing is to make a place to store our volts and current measurements, as well as the results of our power calculations. We initialize three array variables, volts, current, and power, to do this. We also need a place for our power measurements to be stored on the instrument in a way that we access them later, so we make a buffer with units “Watts” to write the values into. The next part is the most important. We want to use the control structures mentioned earlier to tell the instrument what to do next. So, we start by using a “for” loop to have the instrument do the set of instructions for the duration we selected. The sequence we did by hand earlier was: measure voltage, measure current, calculate power. That is what we want to tell the instrument to do over and over again for the number of minutes we set, which is exactly what we do in the code below. Additionally, we need to account for the fact that values below a certain threshold don’t make sense (and also can’t be displayed on the DMM6500 because they are too small). We fix this with the “if” statement which states: If the value is below 10^-8 we just treat it as if it is equal to zero. The final step is to wait 60 seconds before starting the loop over again. Implementing this automation means we can start our test and forget about it until the time is up. Alright, now that that test is over, we want to investigate further, so we decide to vary the input voltage and see how that changes the power dissipated by the diode. But, we don’t want to have to sit around and change the supply voltage, we want to automate this as well. To do so, we will use a SMU, or source measure unit. Think of it as a power supply, a voltmeter, an ammeter and more, all in one box. This instrument can source V while measuring I and we can control it from our DMM using TSP-link, a communication method that allows us to send an instrument our TSP commands from a script running on another. Hopefully now you can see the usefulness of instrument automation. It really does become a necessity whenever multiple, repeated measurements are needed, especially if those measurements require multiple instruments. In industry, this comes up again and again from assembly lines, to automating validation testing, to component engineering, and more. The familiarity with test and measure equipment acquired in school is a great starting point to expand into the instrument automation world. Knowledge of how to set up and use these instruments is a key aspect of automating the measurements. Familiarity with TSP is the next part. It’s the part that lets you do the job you need to do, in a time period that is economical and efficient. How far you take it now is up to you, it’s an awesome tool that can do really cool things in the hands of a skilled engineer.About Tektronix
We are the measurement insight company committed to performance, and compelled by possibilities. Tektronix designs and manufactures test and measurement solutions to break through the walls of complexity, and accelerate global innovation.
LEARN MORE ABOUT USCompany
About Us Careers Newsroom Events EA Elektro-AutomatikHelp & Learning
Contact Us Contact Technical support Learning Center Owner Resources BlogPartners
Find a PartnerConnect With Us
Additional Links
© 2026 TEKTRONIX, INC. Sitemap Privacy Terms of Use Terms and Conditions Call us at Feedback智能索引记录
-
2026-03-01 01:55:36
电商商城
成功
标题:一村3000左右3级空调怎么样 - 京东
简介:京东是专业的一村3000左右3级空调网上购物商城,为您提供一村3000左右3级空调价格图片信息、一村3000左右3级空调
-
2026-02-28 14:59:28
综合导航
成功
标题:EWAL MFG Calibration Services Tektronix
简介:Tektronix can manage 100% of your calibration needs.Tektroni
-
2026-02-27 16:57:36
综合导航
成功
标题:Stickman Sniper Western Gun - Free Shooting Game
简介:Experience an exciting western sniper adventure. Unlock mult
-
2026-02-28 14:28:43
综合导航
成功
标题:NVE Corp - Sensor Boards and Eval Kits
简介:This is Sensor Boards and Eval Kits.
-
2026-02-28 13:34:14
综合导航
成功
标题:7900xtx相当于n卡什么级别?RX 7900 XTX性能与定位解析-驱动人生
简介:在选购显卡时,很多人都会问:AMD 的 RX 7900 XTX 相当于哪张 N 卡?这篇文章就带你快速了解 RX 790
-
2026-02-28 13:44:28
综合导航
成功
标题:裁判文书_刑事裁判文书 民事裁判文书 行政裁判文书
简介:及时收录各种类型的刑事裁判文书、民事裁判文书、行政裁判文书等
-
2026-03-01 02:55:56
综合导航
成功
标题:Innovation - HTS Commercial & Industrial HVAC Systems, Parts, & Services Company
简介:Innovation is the only commercial tankless water heater that
-
2026-02-27 21:44:33
综合导航
成功
标题:2017年河南安全工程师考试时间已确定:10月28、29日-中级安全工程师-233网校
简介: 根据人力资源和社会保障部网发布的《关于2017年度专业技术人员资格考试计划及有关问题的通知》得知,河南2017年安全
-
2026-02-27 16:12:15
综合导航
成功
标题:UFABET: How to Maximize Your Gaming Experience_UFABET
简介:Title:UFABET:HowtoMaximizeYourGamingExperienceIntroductionWe
-
2026-02-28 10:59:40
综合导航
成功
标题:Apple
简介:Discover the innovative world of Apple and shop everything i
-
2026-02-27 21:58:21
综合导航
成功
标题:Road Ranger Takes a New Road
简介:Chain sells convenience store assets to GPM, shifts focus to
-
2026-03-01 01:46:08
教育培训
成功
标题:实用的小学作文300字
简介:在平凡的学习、工作、生活中,大家都经常接触到作文吧,写作文是培养人们的观察力、联想力、想象力、思考力和记忆力的重要手段。
-
2026-03-01 02:58:12
综合导航
成功
标题:杨纡的拼音_杨纡的意思_杨纡的繁体_词组网
简介:词组网杨纡频道,介绍杨纡,杨纡的拼音,杨纡是什么意思,杨纡的意思,杨纡的繁体,杨纡怎么读,杨纡的近义词,杨纡的反义词。
-
2026-02-28 15:33:56
综合导航
成功
标题:G102A - StrongShop
简介:Item Name : G102A Description : 10MM GREEN BEADS Packing
-
2026-03-01 03:47:32
综合导航
成功
标题:Comprendre la discipline d’Église – Excelsis
简介:Devrions-nous pratiquer la discipline d’Église aujourd’hui ?
-
2026-02-28 12:12:03
综合导航
成功
标题:Регистрация доменов РФ/RU у аккредитованного регистратора доменов Недорогой хостинг и дешевые домены Рег.ру
简介:Рег.ру - Российский хостинг-провайдер и регистратор доменов.
-
2026-03-01 04:16:00
教育培训
成功
标题:一年级作文(汇总10篇)
简介:在生活、工作和学习中,大家总少不了接触作文吧,作文根据写作时限的不同可以分为限时作文和非限时作文。为了让您在写作文时更加
-
2026-03-01 03:54:54
综合导航
成功
标题:Social Media Archives - Making Sense of the Infinite
简介:Social Media Archives - Making Sense of the Infinite
-
2026-02-28 15:46:22
综合导航
成功
标题:Converse One Star Pro Ox Shoes - Black/Black/Egret – CCS
简介:Shoe Sole:Vulcanized,Shoe Style:Skate Shoes,Shoe Material:Su
-
2026-02-28 13:12:04
综合导航
成功
标题:人族鎮守使-第3624章 異域通道最新章節-台灣小說網
简介:台灣小說網整理人族鎮守使全集無彈窗在線閱讀,當前章節:第3624章 異域通道
-
2026-02-28 15:09:26
综合导航
成功
标题:Future Reckoning of Tariff Escalation Thoughts on the Market
简介:Listen to our Global Head of Fixed Income Research and Publi
-
2026-03-01 04:09:17
图片素材
成功
标题:一杯的作文650字 描写一杯的作文 关于一杯的作文-作文网
简介:作文网精选关于一杯的650字作文,包含一杯的作文素材,关于一杯的作文题目,以一杯为话题的650字作文大全,作文网原创名师
-
2026-02-28 15:01:02
综合导航
成功
标题:狡逞的拼音_狡逞的意思_狡逞的繁体_词组网
简介:词组网狡逞频道,介绍狡逞,狡逞的拼音,狡逞是什么意思,狡逞的意思,狡逞的繁体,狡逞怎么读,狡逞的近义词,狡逞的反义词。
-
2026-03-01 01:42:27
教育培训
成功
标题:语文作文
简介:在学习、工作或生活中,大家都不可避免地会接触到作文吧,作文要求篇章结构完整,一定要避免无结尾作文的出现。你知道作文怎样写
-
2026-03-01 01:33:21
数码科技
成功
标题:眼界宽野心大!2026年事业黑猴3生肖,格局决定天花板 天花板 生肖猪 生肖猴 生肖虎 黑猴_手机网易网
简介:眼界宽野心大!2026年事业黑猴3生肖,格局决定天花板生肖虎:王者气场,目标导向型选手属虎的人天生自带“大局观”,做事从
-
2026-02-28 15:23:34
综合导航
成功
标题:HOME - Classic Hits 100.7 KLOG
简介:Take Classic Hits 100.7, KLOG with you everywhere you go. L
-
2026-03-01 03:00:59
教育培训
成功
标题:(优选)写景色的作文
简介:在平日的学习、工作和生活里,大家都经常接触到作文吧,写作文是培养人们的观察力、联想力、想象力、思考力和记忆力的重要手段。
-
2026-02-28 15:05:58
综合导航
成功
标题:NFL, Fantasy Football, and NFL Draft
简介:The latest football news, analysis, and rankings from PFF. F
-
2026-02-27 22:13:15
金融理财
成功
标题:沢味 健司 EY Climate Change and Sustainability Services, Japan CCaSS Quality Leader EY Japan
简介:<p>持続可能なビジネスの開発に貢献し、特に環境問題や新興国の社会課題において、パブリックセクターと民間企業の橋渡し役と
-
2026-02-28 15:56:44
综合导航
成功
标题:Katie Hyma Fish & Richardson
简介:Katie E. Hyma, Ph.D., counsels clients across a wide range o