與 Tek 業務代表即時對談。 上班時間:上午 6:00 - 下午 4:30 (太平洋時間)
致電請致電
與 Tek 業務代表即時對談。 上班時間:上午 8:30 - 下午 5:30 (太平洋時間)
與我們聯絡 若有任何評論、問題或意見,請聯絡我們 下載 下載手冊、產品規格表、軟體等等: 下載類型 全部顯示 Products Datasheet Manual Software Marketing Document Faq Video 機型或關鍵字 意見回饋有意見回饋嗎?我們很樂意聽聽您的看法。
不論是正面或負面的建議,您的意見都能協助我們不斷改善 Tek.com 的體驗。若您遇到問題或我們提供的服務不錯,都請讓我們瞭解。
讓我們瞭解您的想法 Tektronix Blog From Button Pushing to Automation: Getting Started with Scripting From Button Pushing to Automation: Getting Started with Scripting Saturday, January 19, 2019 作者: 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.關於 Tektronix
我們是量測洞察力的公司,致力於效能並盡力發揮各種可能性。Tektronix 設計並製造各種測試和量測解決方案,來突破日益複雜的藩籬,以加速全球創新。
深入瞭解我們公司
關於我們 人才招募 新聞中心 活動 EA Elektro-Automatik說明 & 學習
與我們聯絡 聯絡技術支援 學習中心 擁有者資源 部落格合作夥伴
尋找合作夥伴與我們聯絡
其他連結
© 2026 TEKTRONIX, INC. Sitemap Privacy 使用條款 條款與條件 Call us at Feedback智能索引记录
-
2026-02-28 09:24:35
综合导航
成功
标题:ISG job portal - Code of Conduct
简介:Code of Conduct. ISG Personalmanagement GmbH commits itself
-
2026-02-28 07:51:00
视频影音
成功
标题:双穿:玄幻吃苦都市享福第128集红豆剧场_在线播放[高清流畅]_爽文短剧
简介:爽文短剧_双穿:玄幻吃苦都市享福剧情介绍:双穿:玄幻吃苦都市享福是由内详执导,内详等人主演的,于2025年上映,该剧情讲
-
2026-02-28 01:06:00
综合导航
成功
标题:Super Hard Boss Fighter - Play The Free Game Online
简介:Super Hard Boss Fighter - click to play online. Super Hard B
-
2026-02-27 21:43:25
综合导航
成功
标题:Windows Servicing Suite Overview - 1E Resources
简介:Migrating to Windows 10 will be a challenge for many organiz
-
2026-02-28 03:02:28
综合导航
成功
标题:æä¸ºçæ¼é³_æä¸ºçææ_æä¸ºçç¹ä½_è¯ç»ç½
简介:è¯ç»ç½æä¸ºé¢é,ä»ç»æä¸º,æä¸ºçæ¼é³,æä¸ºæ¯
-
2026-02-28 09:31:49
综合导航
成功
标题:Venedig
简介:Von Düsseldorf nach Venedig
-
2026-02-28 02:41:05
综合导航
成功
标题:Wirtschafts-Trend Zeitschriften-Verlagsgesellschaft v Austria (No.3) - 5RB Barristers
简介:Wirtschafts-Trend Zeitschriften-Verlagsgesellschaft v Austri
-
2026-02-28 08:42:22
综合导航
成功
标题:18luck新利官网利app-你玩乐的的好帮手
简介:18luck新利官网专注于为玩家打造无忧的游戏环境。其官方应用程序以简洁流畅的设计、便捷的操作体验和丰富的游戏内容,成为
-
2026-02-28 01:51:54
综合导航
成功
标题:PS5 Unreal Engine 5 Demo Rendering At 1440p 'Most Of The Time' - PlayStation Universe
简介:Epic Games has revealed more info on the PS5 Unreal Engine 5
-
2026-02-28 09:31:19
综合导航
成功
标题:肝区隐痛是不是已经很严重了 - 云大夫
简介:肝区隐痛不能准确表示病情严重程度,还要结合具体的病因以及病情阶段来判断。很多疾病都会出现肝区隐痛的症状,比如肝炎、脂肪肝
-
2026-02-28 01:11:55
综合导航
成功
标题:Schaeffler Germany
简介:Schaeffler has been driving forward groundbreaking invention
-
2026-02-28 00:52:24
综合导航
成功
标题:Bun — A fast all-in-one JavaScript runtime
简介:Bundle, install, and run JavaScript & TypeScript — all in Bu
-
2026-02-27 15:02:12
综合导航
成功
标题:Contact New York Cancer & Blood Specialists - PR.com
简介:Contact New York Cancer & Blood Specialists via this onl
-
2026-02-27 20:51:28
法律咨询
成功
标题:雨泽咨询服务有限公司招聘-律通雨泽(泉州鲤城区)咨询服务有限公司招聘-597直聘
简介:597直聘为您提供雨泽咨询服务有限公司招聘信息、公司简介、公司地址、公司福利等详细信息,让您在选择雨泽咨询服务有限公司前
-
2026-02-27 21:13:34
综合导航
成功
标题:7% token allocation remains a mystery: WLFI and Aave’s cooperation proposal is mired in a “Rashomon”Recommended Articles Bee Network
简介:While collaboration is commonplace in the crypto space, conf
-
2026-02-28 04:10:32
综合导航
成功
标题:Successful creation, enrichment and bidirectional integration of Material Masters for Adient using eQube-DaaS Platform eQ Technologic
简介:Explore Adient
-
2026-02-28 04:12:58
综合导航
成功
标题:Technology sector EY - Greece
简介:Discover EY
-
2026-02-27 22:25:01
综合导航
成功
标题:Lean Production and the TIMWOOD principle
简介:Lean production describes what is known as
-
2026-02-27 14:54:46
教育培训
成功
标题:自动化培训网站建设文化网站建设心得-北京孤凡电子商务有限公司
简介:自动化培训网站建设,文化网站建设心得,上海公司建设网站,青海省住房和城乡建设厅 网站资料查找方式#xff1a;特纳斯电子
-
2026-02-27 22:28:37
综合导航
成功
标题:Star Wars: Knights Of The Old Republic Remake Is Still In Active Development - PlayStation Universe
简介:The long-delayed Star Wars: Knights of the Old Republic rema
-
2026-02-27 22:20:01
综合导航
成功
标题:iPhone 12 event rumoured for next week – mark your calendars T3
简介:The date of the iPhone 12 event and the handset
-
2026-02-28 03:50:33
综合导航
成功
标题:使客是什么意思_使客的词语解释-雄安文学网
简介:使客是什么意思?雄安文学网为您提供使客的的意思解释,解读使客的解释含义,包括基本解释和详细解释等。
-
2026-02-28 01:59:08
综合导航
成功
标题:Retail Industry Specific PIP - PIP Greenville, NC
简介:Solutions to fit your need in any industry can be had by con
-
2026-02-28 09:44:33
综合导航
成功
标题:OFFICIAL 4K UHD TV PARTNER LG PROVIDES SCORES OF ADVANCED DISPLAYS FOR 2019 SHOW LG Global
简介:Scores of advanced video displays from LG Electronics domina
-
2026-02-27 17:22:03
视频影音
成功
标题:樱桃黄色视频网站_樱桃视频在线观看更新资源_樱桃APP下载黄_樱桃成人免费观看在线观看网站
简介:樱桃黄色视频网站是款基于准视频点播内核的、多功能、个性化的短视频手机APP,提供ios苹果下载/安卓下载软件。樱桃黄色视
-
2026-02-27 14:59:19
综合导航
成功
标题:Shadow Fighters: Hero Duel - Play The Free Mobile Game Online
简介:Shadow Fighters: Hero Duel - click to play online. Shadow Fi
-
2026-02-28 05:02:07
健康养生
成功
标题:云大夫 - 大健康,大未来
简介:云大夫是以“服务高端医生、生产权威医疗IP、构建精准医患连接”为定位,致力于通过互联网技术推动医生共享、知识共享、服务共
-
2026-02-28 08:17:42
综合导航
成功
标题:System integration according to your wishes: WMS hosting of your choice
简介:Warehouse management system integration that fits into your
-
2026-02-27 17:37:18
综合导航
成功
标题:General & Technical Inquiries - ZF
简介:General & Technical Inquiries
-
2026-02-27 15:40:56
综合导航
成功
标题:Little Heart Flying - Play The Free Game Online
简介:Little Heart Flying - click to play online. Little Heart Fly