实施新测试设备成本的一个方面包括从现有稳定的软件程序转向支持新产品。当转向 2600A系列数字源表时,这方面的成本将大大减少,因为这些仪表与2600系列数字源表[1]的软件程序几乎是100%的命令兼容。下面,介绍一下它们之间的微小差别。
One cost aspect of implementing new test equipment includesthe cost for migrating existing, stable software programs tosupport new products. These types of costs are significantlyminimized when migrating to Series 2600A Source MeterInstruments because these instruments are nearly 100%command-compatible with software programs written for Series2600 instruments. The minor differences between them areoutlined in the following paragraphs.
Script Management Changes
脚本管理的变化
在2600A系列数字源表中,脚本可以存储在内部非易失性内存或者从前部面板USB端口插入的存储器件中。为了支持这个USB存储功能,脚本save()功能已经更新,允许用户指定目录和文件名。例如,可以使用以下命令,将"myscript"脚本保存至USB端口名称为"test1"的文件夹,文件名是"example1.tsp"。
With Series 2600A instruments, scripts can be stored in internal nonvolatile memory or in a memory device plugged into the front panel USB port. To enable this USB storage functionality, the save() function for scripts has been updated to allow the user to specify a directory and filename. For example, the following command can be used to save the script "myscript" to a folder on the USB port named "test1" as a file named "example1.tsp".
myscript.save("usb1/test1/example1.tsp")
在2600A系列数字源表[2]中,使用save() 功能将不可能再以不同名称保存脚本;而在2600系列数字源表中,这是可能的。为了以不同的名字保存脚本,必须对脚本进行命名,然后调用save() 功能。2
It is no longer possible to save a script with a different nameusing the save() function, as was possible with the Series 2600(non-A). To save a script to a different name, the script must berenamed before the save() function2 is called.
2 通过分配脚本名称属性字符串,可以对脚本重新命名。下面的例子将"myscript"重新命名为"exampleScript"。
2 A script can be renamed by assigning a string to the script’s name attribute. The following example renames the script "myscript" to "exampleScript".
myscript.name = "exampleScript"
对脚本进行重新命名确实改变了以该脚本为基准的任何变量的名称。当使用加载脚本功能创建脚本时,2600/2600A系列数字源表还创建具有相同名称的全局变量。为了运行脚本,这个全局变量通常是可以访问的。因此,在前述例子中,myscript变量仍然以"exampleScript"这个新名称脚本为基准。
Renaming a script does change the name of any variables that reference the script. When a script is created using the loadscript function, the Series 2600/2600A SourceMeter Instrument also creates a global variable with the same name. Generally, this global variable is accessed in order to perform operations on the script. Therefore, in the preceding example, the variable myscript still references the script with the new name "exampleScript".