Live Chat with Tek representatives. Available 6:00 AM - 4:30 PM
CallCall 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.Giới thiệu về Tektronix
Chúng tôi là công ty chuyên về đo lường cam kết mang lại hiệu suất và định hướng bởi các khả năng. Tektronix thiết kế và sản xuất các giải pháp kiểm tra và đo lường để phá vỡ tính phức tạp và tăng tốc đổi mới toàn cầu.
TÌM HIỂU THÊM VỀ CHÚNG TÔICông ty
Giới thiệu về chúng tôi Sự nghiệp Tin tức Sự kiện EA Elektro-AutomatikTrợ giúp và Đào tạo
Liên hệ với chúng tôi Liên hệ bộ phận Hỗ trợ kỹ thuật Trung tâm đào tạo Tài nguyên chủ sở hữu BlogĐối tác
Tìm một đối tácKết nối với chúng tôi
Liên kết bổ sung
© 2026 TEKTRONIX, INC. Sitemap Privacy Điều khoản sử dụng Điều khoản và điều kiện Call us at Feedback智能索引记录
-
2026-02-27 17:06:51
综合导航
成功
标题:Resources PIP - PIP Fort Lauderdale, FL
简介:Find all your background info and helpful resources here wit
-
2026-02-27 14:23:36
综合导航
成功
标题:Intellectual Property Law Firm IP Attorneys Fish & Richardson
简介:Fish & Richardson is the premier IP law firm. Our attorneys,
-
2026-02-27 20:33:19
综合导航
成功
标题:Media and Communications Law Specialists 5RB Barristers
简介:Media and communications lawyers. Defamation, privacy, confi
-
2026-02-27 16:33:53
综合导航
成功
标题:What Is Video SFP? Video SFP Transceiver Wiki, Types and Application
简介:What is video SFP or SDI SFP? What is SDI? Video SFP transce
-
2026-02-27 14:43:14
综合导航
成功
标题:After breaking below key support levels, where does Bitcoin find its next floor? Bee Network
简介:Original Compilation: AididiaoJP, Foresight News Bitcoin sp
-
2026-02-27 13:17:23
综合导航
成功
标题:محوّل العملات: أسعار صرف الفوركس اللحظية - XS
简介:حوّل العملات عالميًا مع XS. احصل على أسعار صرف الفوركس اللحظ
-
2026-02-27 15:05:57
综合导航
成功
标题:ELECTRONIC SPECIALTIES Calibration Services Tektronix
简介:Tektronix can manage 100% of your calibration needs.Tektroni
-
2026-02-27 18:31:31
综合导航
成功
标题:El coche que más me gustó en 2024 - Revista km77
简介:El coche que más me ha gustado en 2024. Un análisis de los c
-
2026-02-27 14:44:01
电商商城
成功
标题:个人护理 - 京东
简介:京东JD.COM,国内专业网上购物商城,本频道提供个人护理等相关信息,为您提供愉悦的网上购物体验!
-
2026-02-27 12:37:52
综合导航
成功
标题:SCOTUS Decision Impacts Restriction on Downstream Sales of Patented Products Law.com
简介:A recent decision by the U.S. Supreme Court found that the s
-
2026-02-27 19:26:50
综合导航
成功
标题:Indløs
简介:Indløs
-
2026-02-27 15:32:20
教育培训
成功
标题:施工现场安全隐患排查报告 - jz.docin.com豆丁建筑
简介:豆丁网是面向全球的中文社会化阅读分享平台,拥有商业,教育,研究报告,行业资料,学术论文,认证考试,星座,心理学等数亿实用
-
2026-02-27 14:43:47
综合导航
成功
标题:Même Ours est invité – Excelsis
简介:Voici la bonne nouvelle de l’amour de Dieu pour tous les pet
-
2026-02-27 20:44:17
综合导航
成功
标题:Contact Lambert Pawn Shop - PR.com
简介:Contact Lambert Pawn Shop via this online contact form.
-
2026-02-27 12:33:32
综合导航
成功
标题:名言警句_励志一生_励志名言_励志故事_励志语录
简介:励志一生汇集以励志,创业,感悟,成功等为主题的励志美文网站,内含励志文章,励志名言,励志语录,励志故事,励志人物,人生哲
-
2026-02-27 14:56:48
综合导航
成功
标题:SULZER METCO Calibration Services Tektronix
简介:Tektronix can manage 100% of your calibration needs.Tektroni
-
2026-02-27 20:57:15
新闻资讯
成功
标题:龙岗网站设计资讯图片上传网站变形的处理-北京孤凡电子商务有限公司
简介:龙岗网站设计资讯,图片上传网站变形的处理,网站开发的背景知识与相关技术,seo 轻松跑通GitHub热门AI项目#xff
-
2026-02-27 13:50:35
综合导航
成功
标题:سمبل اور لسٹنگ JSCLJSCL
简介:کمپنی کا سمبل کمپنی کے آرڈنری شیئرز : JSCL مدتی مالیاتی سرٹ
-
2026-02-27 12:31:55
综合导航
成功
标题:FS.com Singapore - Data Center , Enterprise & ISP Technology Solution
简介:Providing scalable network technology solutions for Data Cen
-
2026-02-27 17:12:17
综合导航
成功
标题:Commercial & Industrial HVAC Systems & Services
简介:HTS is the largest independent built-to-order commercial & i
-
2026-02-27 19:40:48
综合导航
成功
标题:Free Weather Coloring Page - Cirrus Cloud with Plane EDU.COM
简介:Download our free weather-themed printable coloring page fea
-
2026-02-27 15:33:59
综合导航
成功
标题:MKS Inc.
简介:MKS provides instruments, systems, subsystems and process co
-
2026-02-27 19:59:41
综合导航
成功
标题:When Deciding To Speak Up on Issues, Authenticity Is Key Law.com
简介:While taking a public stance on social issues can strengthen
-
2026-02-27 18:40:56
游戏娱乐
成功
标题:充值教程 - 602游戏平台 - 做玩家喜爱、信任的游戏平台!
简介:602游戏平台(www.602.com)专注精品网页游戏,以精细化运营和优质服务为核心,秉持
-
2026-02-27 14:23:32
综合导航
成功
标题:JSCL Pakistan Financial ServicesJSCL Pakistan Financial Services
简介:Pakistan Financial Services
-
2026-02-27 20:04:48
综合导航
成功
标题:Blog PIP - PIP Winston Salem, NC
简介:Track our weekly updates in interesting information with PIP
-
2026-02-27 20:26:49
综合导航
成功
标题:阴茎怎么可以再长大些 - 云大夫
简介:阴茎短小,可以买牵引器,经常进行牵引。或者买负压吸引装置,经常让阴茎充血,进一步的延长增粗,坚持下来会有一定的效果。阴茎
-
2026-02-27 14:25:37
综合导航
成功
标题:比驱的拼音_比驱的意思_比驱的繁体_词组网
简介:词组网比驱频道,介绍比驱,比驱的拼音,比驱是什么意思,比驱的意思,比驱的繁体,比驱怎么读,比驱的近义词,比驱的反义词。
-
2026-02-27 14:30:08
综合导航
成功
标题:That crazy asian kid...
简介:Ok, not much too say. Im a half breed (asian american) colle
-
2026-02-27 15:28:33
综合导航
成功
标题:There's something happening here St. Louis Blues
简介:Blues