Live-Chat mit Tektronix-Vertretern. Verfügbar von 9 bis 17 Uhr CET Geschäftstage.
AnrufenKontaktieren Sie uns telefonisch unter
Verfügbar von 9 bis 17 Uhr CET Geschäftstage.
Kontaktaufnahme Kontaktieren Sie uns mit Anmerkungen, Fragen oder Feedback Download Laden Sie Handbücher, Datenblätter, Software und vieles mehr herunter: DOWNLOADTYP Alle anzeigen Products Datasheet Manual Software Marketing Document Faq Video MODELL ODER SCHLÜSSELWORT FeedbackHaben Sie Feedback für uns? Wir möchten gerne wissen, was Sie denken.
Egal ob positiv oder negativ, Ihr Feedback hilft uns dabei, den Tek.com-Service kontinuierlich zu verbessern. Lassen Sie es uns wissen, wenn Sie Probleme haben oder wenn wir unsere Aufgabe sehr gut erledigt haben.
Teilen Sie uns Ihre Meinung mit Tektronix Blog From Button Pushing to Automation: Getting Started with Scripting From Button Pushing to Automation: Getting Started with Scripting Saturday, January 19, 2019 von: 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.Über Tektronix
Tektronix ist das Unternehmen für Messtechnik, das sich durch Leistung auszeichnet und von den Möglichkeiten überzeugt ist. Tektronix entwickelt und fertigt Test- und Messlösungen, um die Komplexität zu durchbrechen und globale Innovationen zu beschleunigen.
ERFAHREN SIE MEHR ÜBER UNSUnternehmen
Über uns Karriere Newsroom Ereignisse EA Elektro-AutomatikHilfe und Lernen
Kontakt Kontakt Technischer Support Eigentümerressourcen Schulung und Weiterbildung BlogPartner
Finden Sie einen GeschäftspartnerVerbinden Sie sich mit uns
Zusätzliche Links
© 2026 TEKTRONIX, INC. Sitemap Privacy Nutzungsbedingungen Geschäftsbedingungen Impressum Call us at Feedback智能索引记录
-
2026-02-27 19:31:07
新闻资讯
成功
标题:未来五年影响金融业的5大新兴科技 大数据、AI和区块链均位列其中, 站长资讯平台
简介:根据咨询公司Vuealta的最新报告“金融行业的未来:为每一个可能发生的事件进行规划”,未来五年内金融行业发生的变革可能
-
2026-02-27 13:30:30
综合导航
成功
标题:京东(JD.COM)-正品低价、品质保障、配送及时、轻松购物!
简介:京东JD.COM-专业的综合网上购物商城,为您提供正品低价的购物选择、优质便捷的服务体验。商品来自全球数十万品牌商家,囊
-
2026-02-27 16:00:11
综合导航
成功
标题:Political manifesto or paid advertising? Analyzing the real possibility of cryptocurrency strategic reserves Bee Network
简介:Original title: Reserve Your Ass Original author: Foxi_xyz,
-
2026-02-27 19:25:18
综合导航
成功
标题:Kids Summer Ice Desserts - Summer Dessert Game
简介:Kids Summer Ice Desserts is a fun and delicious Ice Dessert
-
2026-02-27 19:26:31
综合导航
成功
标题:Producto - Grupo CHT - Químicas especiales
简介:CHT - aditivos químicos y productos químicos especiales para
-
2026-02-27 12:38:09
综合导航
成功
标题:订éçæ¼é³_订éçææ_订éçç¹ä½_è¯ç»ç½
简介:è¯ç»ç½è®¢éé¢é,ä»ç»è®¢é,订éçæ¼é³,è®¢éæ¯
-
2026-02-27 15:08:40
综合导航
成功
标题:Loutchansky v Times Newspapers Ltd and others (No. 7) - 5RB Barristers
简介:Loutchansky v Times Newspapers Ltd and others (No. 7) -
-
2026-02-27 15:47:44
新闻资讯
成功
标题:200Gvs400G:谁是数据中心网络下一站?, 站长资讯平台
简介:互联网联接全球40亿多用户,支撑着VR/AR、16K视频、自动驾驶、人工智能、5G、物联网等层出不穷的数字化应用。教育、
-
2026-02-27 19:22:31
综合导航
成功
标题:Librairie chrétienne Excelsis
简介:Excelsis, librairie chrétienne, protestante et évangélique e
-
2026-02-27 17:12:15
教育培训
成功
标题:日许多时的意思解释_日许多时是什么意思-雄安文学网
简介:日许多时是什么意思?雄安文学网为您提供日许多时的意思解释、拼音、近反义词,以及日许多时成语接龙,供成语爱好者参考学习用。
-
2026-02-27 16:21:09
综合导航
成功
标题:2026 Jr. Avs Receive Memorable Send-Off Ahead of Quebec International Pee-Wee Hockey Tournament Colorado Avalanche
简介:Team to Participate in Minor Hockey’s Most Prestigious Event
-
2026-02-27 13:31:20
综合导航
成功
标题:10G SFP+ Module Selection for Short-Range Networks
简介:A practical guide to choosing the right 10G SFP+ module for
-
2026-02-27 19:12:42
综合导航
成功
标题:Full Flow Filter Element (1800-03384) - VTE-FILTER GmbH
简介:Fabricant: VTE Filter Numéro OEM: Alfa Laval Moatti 1800-033
-
2026-02-27 12:47:23
综合导航
成功
标题:Author: William Carlucci Maddie San Jose Kaitlyn Law.com
简介:William Carlucci Maddie San Jose Kaitlyn E Stone Michael C Z
-
2026-02-27 19:29:47
综合导航
成功
标题:2018反腐观察:四个关键词看“打虎拍蝇”新动向-新华网
简介:2018反腐观察:四个关键词看“打虎拍蝇”新动向 ---
-
2026-02-27 17:55:17
综合导航
成功
标题:少しでも早くスタートを!-音大受験対策- - 森音楽教室
简介:大阪府立夕陽丘高等学校音楽科 合格おめでとうございます!...
-
2026-02-27 14:43:33
综合导航
成功
标题:Sporting News - NFL NBA MLB NCAA Boxing Soccer NASCAR
简介:The latest news, videos, scores and more on the biggest spor
-
2026-02-27 19:26:43
教育培训
成功
标题:速戳!ACCA培训班选哪个?看完就懂!-高顿
简介:什么行业最吃香?大概都会第一时间想到财会和金融。ACCA称为“国际注册会计师”,随着越来越多的企业拓展国际业务,在财会金
-
2026-02-27 19:31:21
综合导航
成功
标题:im new, what?! [Archive] - Toyota MR2 Message Board
简介:Hey everyone... I was referred here by mr2gurl4life off of m
-
2026-02-27 16:00:45
综合导航
成功
标题:天火与大海水命,目标同行配成双_一世迷命理网
简介:在八字命理学的领域,配对分析是一项重要的内容。本文将以“天上火”和“大海水”的八字命理特征为基础,探讨这两个人是否匹配,
-
2026-02-27 19:29:58
综合导航
成功
标题:Sweet Princess Hair Salon - Best Unblocked Game
简介:Sweet Princess Hair Salon is a casual dress-up game that is
-
2026-02-27 12:29:06
电商商城
成功
标题:科思洛三脚架镁合金 - 京东
简介:京东是国内专业的科思洛三脚架镁合金网上购物商城,本频道提供科思洛三脚架镁合金商品图片,科思洛三脚架镁合金价格,科思洛三脚
-
2026-02-27 12:38:09
综合导航
成功
标题:LJ017L - StrongShop
简介:Item Name : LJ017L Description : 6.75
-
2026-02-27 19:28:32
综合导航
成功
标题:La Pâque juive – Son sens et son importance – Excelsis
简介:Ce repas est le plus ancien rituel religieux de l’histoire d
-
2026-02-27 13:29:29
综合导航
成功
标题:Women's Activewear on Sale Aerie
简介:Move in style with OFFLINE by Aerie
-
2026-02-27 15:04:38
教育培训
成功
标题:高三英语B1寒假补习补课辅导班-上海新王牌培优
简介:新王牌培优是由一群名师创立于2005年,90%的学生来自重点中学,分层授课,小班教学,按月收费,是上海最好的初中高中课外
-
2026-02-27 12:46:01
游戏娱乐
成功
标题:鬼谷八荒boss武罗都有哪些技能 怎么无伤打_欢乐园游戏
简介:鬼谷八荒武罗对于大部分玩家来说还是相当棘手的,不少人对于武罗的技能机制不了解,因此没办法很好的应对,下面小编来给大家支支
-
2026-02-27 13:44:47
综合导航
成功
标题:CHT Group - sustainable specialty chemicals: CHT Group
简介:CHT stands for smart, sustainable chemistry. Our chemical au
-
2026-02-27 19:30:20
综合导航
成功
标题:Bar Refaeli fête son futur mariage aux Maldives entre filles
简介:Voilà un enterrement de vie de jeune fille bien luxueux ! Po
-
2026-02-27 19:00:25
教育培训
成功
标题:高三数学A1暑假补习补课辅导班-上海新王牌培优
简介:新王牌培优是由一群名师创立于2005年,90%的学生来自重点中学,分层授课,小班教学,按月收费,是上海口碑最好的初中高中