TW535082B - Processing method for control and access of data with devices of automatic testing system - Google Patents

Processing method for control and access of data with devices of automatic testing system Download PDF

Info

Publication number
TW535082B
TW535082B TW90113296A TW90113296A TW535082B TW 535082 B TW535082 B TW 535082B TW 90113296 A TW90113296 A TW 90113296A TW 90113296 A TW90113296 A TW 90113296A TW 535082 B TW535082 B TW 535082B
Authority
TW
Taiwan
Prior art keywords
test
item
instrument
patent application
scope
Prior art date
Application number
TW90113296A
Other languages
Chinese (zh)
Inventor
Benjamin Huang
Original Assignee
Chroma Ate Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chroma Ate Inc filed Critical Chroma Ate Inc
Priority to TW90113296A priority Critical patent/TW535082B/en
Application granted granted Critical
Publication of TW535082B publication Critical patent/TW535082B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A processing method for control and access of data with devices of automatic testing system, wherein any test procedure or routine processed by this method can achieve the access function to the instrument without the compiler or interpreter, and can dynamically expand the supported command library. The method is first to define a list table for describing the associated information of API functions for each type of instruments, which includes the machine name, the available communication interface (GPIB, RS-232, RS-485, CAN Bus), the default parameters, and the name of API library. The present invention also provides an editing software with graphic interface, so that the user can specify the instrument involving the test or the associated functions, and store the configurations as a repetitively editable binary file to be dynamically loaded into the system before the execution by the executing engine.

Description

535082 五、發明說明(1) 【發明領域】 本發明係為一種開淤+加A t L ^ 告丨泣π夕考w 4 式木構自動測試系統儀控命令控 /;,L ^ 方式,特別是任何經由本處理方式處理過的 測試程序或常式(Procedure 令处万f處理過的 嗜哭弋吉镠吳,π、本 re 〇r Routine ),無需經由編 岸為或直澤益即可達到對儀哭驻 ^ ^ -r 4r JL&lt; X 儀裔政置存取的功月&amp;,並可動熊 擴充其可支援的命令函式庫。 j勒心 【習知技術】 :般自動測試系統(ATS)之處理控制方式,不外乎 有下述二種· h :各製造^之工程師,針對特定機種的待測物,依 照/、廠内測/ v驟,以程式語言(如BAS丨c、c 開發環境⑻LabView)呼叫介面卡戶斤提供的Αρι或是儀直控 接以通訊界面命令控制相關儀器設備,再將所取得的讀值 與其設定的規格值加以比較’來判斷測試結果。 2. 由ATS製造商依照其系統上的配備,在其軟體上事先撰 寫好業界常用之測试項目或測試常式,讓使用者在其軟體 的使用者介面上,針對這些測項所需的參數加以設定,以 達到測試的目的。 3. 由ATS製造商依照其系統上的配備,提供特定語言 (如:C )完整的^試命令函式庫’讓使用者可以利用這 些函式撰寫:或測試常式,並提供現成的工具程 式,對這些測试-貝料加以處理分析。 在第1種的情況下,其缺點為:535082 V. Description of the invention (1) [Field of the invention] The present invention relates to a method for opening silt + adding A t L ^ 丨 π xi test w 4 type wood structure automatic test system instrument control command /, L ^ mode, In particular, any test procedures or routines that have been processed by this processing method (Crypto-crypton, Ji, Wu, π, Ben re 〇r Routine) processed by Procedure, do not need to pass through the bank or Masaaki Naozawa It can achieve the ability to cry for ^^ -r 4r JL <X Yiyi Government Access &amp;, and can expand its support command library. j Lexin [Knowledge Technology]: The processing control method of the general automatic test system (ATS) is nothing more than the following two: h: Engineers of each manufacturing ^, for the test object of a specific model, according to Internal test / v step, call programming interface (such as BAS 丨 c, c development environment⑻LabView) in the programming language (such as Αρι) provided by the card user or directly control the related instruments and equipment with the communication interface command, and then read the obtained value Compare it with the set value to determine the test result. 2. According to the equipment on the system, the ATS manufacturer writes in advance the test items or test routines commonly used in the industry on its software, so that the user can use the user interface of his software to respond to these test items. The parameters are set to achieve the purpose of testing. 3. The ATS manufacturer provides a complete ^ test command library in a specific language (such as C) according to the equipment on its system, so that users can use these functions to write: or test routines, and provide ready-made tools Program to process and analyze these test-shell materials. In the first case, its disadvantages are:

535082 五、發明說明(2) a·只要一換機種,勢必要修改其測試步驟,當然必須修改 先前的原始碼,重新編譯連結後再產生另一支可執^ ^ (•ΕΧΕ 或.DLL) 。 @ b·只要系統上的某一量測模組(Module )或通道 (Channel )故障’一般的程式都必須修改其原始碼中參 考到此模組的設定’重新編譯連結後才會正常動作。 c·程式的維護必須仰賴負責撰寫ATS軟體之工程師,一旦 此工程師因職務的異動,難免有後續維護的困難。 d·測試後的資料處理,通常必須花額外的工具來加處理, 以製作為其所要的報表格式或統計圖表。 $ 在第2種的情況下,其缺點為: a·糸統為封閉式的’使用者很難針對測試流程加以擴充, 即使要擴充,必須仰賴A T S製造商的軟硬體加以配合。 在第3種的情況下,其缺點為: a ·系統為半封閉式的’使用者只能在現有的硬體功能下建 構不同的測試流程,如果要擴充功能,必須仰賴AT S製造 商的軟硬體加以配合。 b ·負責建構的測試流程的必須熟悉程式語言編碼。 本案發明人鑒於上述習用處理方式所造成成效不彰之 情形亟待加以改進,經過長時間的思考及研究,終於研發 出本發明自動測試系統儀器裝置執行控制與擷取資料之處 理方法。 '535082 V. Description of the invention (2) a. As long as the model is changed, it is necessary to modify its test steps. Of course, the original source code must be modified. After recompilation and linking, another executable ^ ^ (• ΕΧΕ or .DLL) . @ b · As long as a certain measurement module (Module) or channel (Channel) on the system is faulty, the general program must modify its source code to refer to the settings of this module 'and recompile and link to work normally. c. The maintenance of the program must rely on the engineer responsible for writing the ATS software. Once this engineer changes his position, it will inevitably have difficulties in subsequent maintenance. d. Data processing after the test usually requires additional tools to be processed to produce the report format or statistical chart required by it. $ In the second case, the disadvantages are: a. The system is closed. It is difficult for the user to expand the test process. Even if it is to be expanded, it must rely on the hardware and software of the ATS manufacturer. In the third case, the disadvantages are: a. The system is semi-closed. 'Users can only construct different test procedures under the existing hardware functions. If they want to expand the functions, they must rely on the AT S manufacturer's Hardware and software work together. b. The test procedure responsible for construction must be familiar with the programming language coding. In view of the ineffectiveness caused by the conventional processing method, the inventor of the present case needs to be improved. After a long period of thinking and research, he finally developed a method for controlling and retrieving data of the automatic test system instrument and device of the present invention. '

第5頁 535082 五、發明說明(3) 本發明之自動測試系統儀器裝置執行控制鱼擷取 之處理方法’其主要目的係在於透過各類儀器二致化的^ =呼叫介面(APD,整合不同廠牌或不同機 備相主 同功能之儀器。 本發明之自動測試系統儀器裝置執行控制鱼擷取資 2理方法’其次-目的係在於定義屬於各類儀器之測試 咋令函式(Test Command)原型,其可φ 士心丁〜 — . 又技不定長度之參 數’各個參數的解釋端視各個測試命令函式内部程式碼實 現方式。測試命令會呼叫API函式,進而達到存取儀写裝 置的目的。 &quot;九 本發明之自動測試系統儀器裝置執行控制與擷取資料 之處理方法,其再一目的係在於具有圖像介面之編輯方 式,在此編輯環境中,使用者可以做變數的宣告、規格的 定義以及控制流程的編排。且由編輯環境可直接切換到執 行模式’ Μ建的執行引擎對於目前正在編輯的控制流程 進行測試與除錯。 【發明内容】Page 5 535082 V. Description of the invention (3) The automatic test system instrument device of the present invention executes a processing method for controlling fish harvesting. Its main purpose is to use two types of instruments to achieve ^ = call interface (APD, different integration) The brand or different equipment has the same function and the same function. The automatic test system instrument device of the present invention performs two methods to control fish harvesting capital. 'Second-the purpose is to define test command functions (Test Command) that belong to various types of instruments. ) Prototype, which can be φ Shixin Ding ~ —. The parameters of indefinite length 'The interpretation of each parameter depends on the internal code implementation of each test command function. The test command will call the API function to achieve the access instrument write Purpose of the device &quot; Nine The automatic test system instrument device of the present invention performs a control method and a method for acquiring data, and another purpose is to have an editing method with an image interface. In this editing environment, users can make variables Declaration, specification definition, and orchestration of the control process. And the editing environment can directly switch to the execution mode. The control flow currently being edited is tested and debugged. [Summary of the Invention]

一種對自動測試系統儀器襞置執行控制與擷取資料之 處理方法’純經由本處理方式處理過的測試程序或常式 (Procedure 〇r Routine) ’不需經由編譯器或直譯器即 到對儀器裝置存取的功能,並可動態擴充其可支援的 命令函式庫,其主要包括下列步驟: 將具有通訊介面的可程式化儀器功能做一分類,定義A processing method for controlling and acquiring data of an automatic test system instrument setting 'Pure test procedure or routine processed through this processing method (Procedure 〇routine)' to the instrument without the need of a compiler or translator The function of device access, and it can dynamically expand its supported command function library, which mainly includes the following steps: classify the programmable instrument functions with communication interface, define

五 、發明說明(4) _ 2於各類儀器的一致化程式人 :各類儀器的測試命令函式(T二面(API) ’並定義屬 為一動態連結函式庫; 、est Command )原型以整合 透過一指定測試命令 序及邏輯關係,並㈣—道轉4 =數及測試命令執行順 容由執行引签古拉A t α 褥專私序,即可依其指定的内 裝置的存I J叫關儀器驅動程式,以進行對硬體 ,罝的存取,並依照自硬體 較是否合乎規格。 直取出項值與其上、下限比 【較佳實施例】 仙 :t將具有通訊介面的可程式化儀器以功能做一分 類刀類法會依據其應用之特性,而不論是否為同一廠 牌或同一型號,例如:示波器(DS0)、數位電表(DMM )、可程式交流電源供應器(AC source)、可程式直流 電子負載(DC Load )等。在圖二中’我們以一被定義為A 類的測试命令物件執行初始化時,如何依照儀器裝置的資 訊,載入A類儀器各個機種(Al、A2、A3 ) API函式位址 表,包括:其所設定之通訊介面參數、並聯狀態與DLL檔 名稱。並定義屬於各類儀器的測試命令函式(Tes1:V. Description of the invention (4) _ 2 Consistent programmers for various types of instruments: Test command functions of various types of instruments (T two sides (API) 'and defined as a dynamic link function library; est Command) The prototype is integrated through a specified test command sequence and logical relationship, and ㈣ 4 4 = number and test command execution compliance by execution of the signature Gula A t α mattress private sequence, according to its designated internal device Save the IJ to call off the instrument driver to access the hardware and hardware, and follow whether the hardware meets the specifications. Take out the value of the item directly to its upper and lower limit. [Preferred embodiment] Sin: t will use a programmable instrument with a communication interface as a function to classify the knife. The knife method will be based on the characteristics of its application, regardless of whether it is the same brand or The same model, such as: oscilloscope (DS0), digital electric meter (DMM), programmable AC power supply (AC source), programmable DC electronic load (DC Load), etc. In Figure 2, 'When we perform initialization with a test command object defined as a class A, how to load the API function address table of each model of the class A instrument (Al, A2, A3) according to the information of the instrument and device, Including: its set communication interface parameters, parallel status and DLL file name. And define test command functions (Tes1:

Command )原型以整合為一動態連結函式庫;其函式原型 f 如下所述(請參閱圖四): int TSTCMDEXPORTCommand) prototype is integrated as a dynamic link library; its function prototype f is described below (see Figure 4): int TSTCMDEXPORT

SetAllLoad—Von (CVariant**pVarList); 而所有測試命令函式之原型都是一樣的,差別僅在於其函SetAllLoad—Von (CVariant ** pVarList); The prototypes of all test command functions are the same, the only difference is the function

第7頁Page 7

JJJKJ6Z 五、發明說明(5) —指向特殊C + +類別物件 式名稱,其 (CVariant )的物 ........... 個參數的解釋端視各以丄:”援不定長度的參數,各 而測試命令會呼叫 j叩々函式内部程式碼實現方式。 )會將各類別下的各機^的—致化程式啤叫介面(API 檔(DDL· )。 、種儀裔驅動程式包裝為一動態連結 請參閱圖—所+ .. 及測試命令10,由^制Ϊ過一指定測試命令函式所需參數 係,並經過轉譯= 順序及邏輯關 目前正扁谂結轉澤程序’由内建的執行引擎對扒 # Μ 0 + 士#的控制流程進行測試與除錯1 3,即可依复^ 疋的内容由執行引整〗^古w I j m再相 胃接呼叫儀器裝置相關資訊15,β 上3 取’並依照自硬體裝置取出讀值與其 丄哏比較疋否合乎規格。 ,、 八::t閱圖三所示,每個屬於不同儀器裝置的測試命 :庫JoiKi確的ΑΡι函式中來加以執行。測試命令函 / 日怨正合各儀器的API為一組(Test Command 二7人’广為前述之動態、連結標(),各個類別的 儀為有八對應的一群測試命令集30,而且必須支援JJJKJ6Z V. Description of the invention (5) — Point to the special C ++ category object-type name, its (CVariant) ..... The interpretation of each parameter depends on the meaning of: "Aid indefinite length Parameters, and each test command will call the internal code implementation of the j 叩 々 function.) It will call each of the machines under each category-the API program calling interface (API file (DDL ·).) The driver is packaged as a dynamic link. Please refer to the figure—all + .. and test command 10. The parameter system required by the test function is specified by ^ and translated. The sequence and logic are currently being carried forward. Ze program 'uses the built-in execution engine to test and debug the control process of # Μ 0 + 士 # 1 3, and then you can follow the content of ^ 引 and rectify it by execution. ^ Ancient w I jm Call the relevant information of the instrument and device 15, take 3 on β, and compare it with the reading taken from the hardware device to see if it meets the specifications. ,, 8: t See Figure 3, each test belongs to a different instrument and device Command: library JoiKi to execute the API function to execute. Test command letter / day complaints are the AP of each instrument I is a group of 2 (Test Command 2 and 7 people), which is the aforementioned dynamic and link mark (). Each type of instrument is a group of eight corresponding test command sets 30, and must support

Devic&gt;elnit()、DeviceCloseO 與DeviceStandBy()函式; 當測,命令函式庫被動態載入系統時,會自動依照所指定 的儀器裝置逐項呼叫其1)6¥;[(^111^()函式,執行各裝置的 初始化動作並取得系統資源;當測試命令函式庫被系統卸 載時’會逐項呼叫其DeviceCi〇se()函式,以歸還所佔據 的系統資源;當系統執行過程必須做暫時性的檢視時,會 第8頁 535082 五、發明說明(6) 逐項今叫各裝置的DeviceStandByO以避免不必要的产卜 性。 已版 此外,測試命令可以針對同一類儀器的某一部裳置 (或其通道)單獨下命令,也可以一次下命令給屬於這一 類的所有裝置(或其通道),請參考圖五。 5 κ清同時參閱圖六〜圖九所示,為本發明之圖形操作介 面貫,例。圖六中,首先需定義一表格清單用以描述各機 種儀器的API函式之相關資訊,包括:機種名稱、試用之 外代 ’I 面(GPIB、RS - 232、RS-485、CAN Bus)以及其預 、多數值API函式庫名稱等。並提供圖形介面的編輯 ίϊ : 用者可以指定所要參與測試的儀器或是其相關 : ,將此设定值儲存成一個可重複編輯的二進位檔, ,、執行引擎執行前動態載入系統中。 以傲ί i Ϊ:提之圖形介面之編輯方式環境中,使用者可 數會依其特分;格以ί制流程的編排,變 暫時變數盥全二2 式5又疋函參數、測試讀值變數、 的測試命;:ΐ;;控制流程除了可以呼叫與儀器相關 件判斷函式與字串處理2叫如一般程式語言所提供的條 設定ΚΓίΐΓΛ環,所參考的測試命令函式 樹狀結構也會依昭所H頭標示處),此外,晝面右方的 且此編輯環境中^疋的命令函式庫内容進行更新。 引擎對於目前正在二以切換到執行模式,由内建的執行 任、、扁輯的控制流程進行測試與除錯。圖八Devic & elt (elnit (), DeviceCloseO, and DeviceStandBy () functions; when the command library is dynamically loaded into the system, it will automatically call it one by one according to the specified instrument device) 1) 6 ¥; [(^ 111 ^ () Function to perform the initialization of each device and obtain system resources; when the test command library is unloaded by the system, it will call its DeviceCiose () function item by item to return the occupied system resources; when the system When the execution process must be temporarily inspected, it will be page 8 535082 V. Description of the invention (6) Each item is called DeviceStandByO of each device to avoid unnecessary productiveness. In addition, the test command can be directed to the same type of instrument One of the clothes (or its channel) can be ordered separately, or all devices (or its channels) that belong to this category can be ordered at once, please refer to Figure 5. 5 κ 清 Refer to Figure 6 ~ Figure 9 at the same time This is an example of the graphical operation interface of the present invention. In Figure 6, you must first define a list of tables to describe the relevant information of the API functions of each model of the instrument, including: model name, trial generation 'I plane (GPIB , RS -232, RS-485, CAN Bus), and its pre- and multi-value API function library names, etc., and provides a graphical interface editor. Ϊ: The user can specify the instrument to be tested or related:, set this setting The value is stored as a re-editable binary file, which is dynamically loaded into the system before execution of the execution engine. In the editing mode environment with the graphic interface mentioned, users can count according to their special points; According to the arrangement of the system flow, change the temporary variables, use the second parameter, type 5, and test parameters, test reading variables, and test lives: ΐ ;; In addition to the control process, you can call the judgment functions and strings related to the instrument. Process 2 is called the strip setting ΚΓίΐΓΛ ring provided by the general programming language, and the referenced test command function tree structure will be marked according to the head of Zhaosuo). In addition, the right side of the day is in this editing environment ^ 环境The contents of the command library are updated. The engine tests and debugs the built-in executive, flat control process for the current mode of switching to execution mode. Figure eight

535〇82 五、發明說明(7) 即為進行測試除錯之狀態。 _ 前述處理的對象稱之為測試項目(Test Item )或測 試常式(Test Routine),其目的為定義一群儀控命令之 控制流程’以達到自動化測試的目的;而要儲存測試項目 (Test Item)或測試常式(Test Routine)前,會執行 n轉譯」的程序,所謂「轉譯」基本上可分為3道程序, 首先就是將使用者在目前所宣告的本地(測試設定參數、 測試讀值變數、暫時變數)與全域變數名稱、型別作逐一 地檢查’並且對於在每項測試命令的每一參數所指定的變 數名稱、型別逐一地檢查其合理性。其次,在記憶體中產f 生5張變數表格,包括:測試設定參數、測試讀值變數、 暫時變數、全域變數與常數數值。最後,將測試命令的每 一參數所指定的變數或常數值,解譯為表格之索引。 經過「轉譯」程序後的測試項目(Test Item )或測 試常式(Test Routine )其好處在於,當此測試項目 (Test Item)或測試常式(Test Routine)的每一道測 試命令在被執行時,會直接依其索引值取得變數的參考位 置,以加快執行時的速度。 前述之「轉譯」與程式語言的Compiler或 Interpreter不同,因為「轉譯」不會將原始碼編譯為機 + 器碼。 使用者要對於目前正在編輯的控制流程進行測試與除 錯前,必須先經過「轉譯」的解譯成功。測試項目(T e s t Item)或測試常式(Test Routine)在被執行前,執行引535〇82 V. Description of the invention (7) It is the state of testing and debugging. _ The above-mentioned object is called Test Item or Test Routine. Its purpose is to define the control flow of a group of instrument control commands to achieve the purpose of automated testing. It is necessary to store the test items. ) Or the test routine (Test Routine), it will execute the "n translation" procedure. The so-called "translation" can basically be divided into 3 procedures. The first is to localize the user in the currently announced local (test setting parameters, test reading Value variables, temporary variables) and global variable names and types are checked one by one, and the variable names and types specified in each parameter of each test command are checked for their rationality one by one. Secondly, 5 variable tables are generated in the memory, including: test setting parameters, test reading variables, temporary variables, global variables and constant values. Finally, the variable or constant value specified by each parameter of the test command is interpreted as an index into the table. The test item (Test Item) or test routine (Test Routine) after the "translation" procedure has the advantage that when each test command of the test item (Test Routine) or test routine (Test Routine) is executed , It will directly obtain the reference position of the variable based on its index value to speed up the execution. The aforementioned "translation" is different from the Compiler or Interpreter of the programming language, because "translation" does not compile the source code into machine + device code. Before testing and debugging the control flow being edited by the user, the user must first successfully interpret it through "translation". Before the test item (T e s t Item) or test routine (Test Routine) is executed, execute the reference

535082535082

五、發明說明(8) 擎首先會對於預先指定的硬體裝置進行初始化 (Initialization )的程序,以確保系統上的儀器存 連線正常。 執行引擎在執行測試項目(Test itein)或測試常式 / Test Rout ine )時,會依照每一道測試命令的名稱到測 试命令函式庫(DLL )中,動態地取得其函式的指標,再 依照使用者於此測試命令所指定的參數内容(型別及數目 ),包裝成一個通用型態的參數串列(此串列支援不定長 ,之參數數目),然後才呼叫此道測試命令。測試明令執V. Description of the Invention (8) The engine will first initialize the hardware device specified in advance (Initialization) to ensure that the instruments on the system are connected properly. When the execution engine executes a test item (Test itein) or a test routine (Test Routine), it will dynamically obtain the function indicator according to the name of each test command into the test command function library (DLL). According to the parameter content (type and number) specified by the user in this test command, it is packaged into a general type parameter string (this string supports variable length and the number of parameters), and then this test command is called . Test order

=時,執订引擎可以將目前的執行狀況傳給測試除錯環 =,使用者可以在某一道測試命令設定斷點,並可檢視目 則的所有變數内容值。 本發明之測試命令函式庫為一動態連結檔(DLL ), 土統可支援一個以上的測試命令函式庫,只要將符合所 接,的測試命令函式原型的函式庫包裝成不同的DLL,然 在編輯環境與執行引擎中,指定不同的測試命令於測試 '目(Test I tem )或測試常式(Test R〇utine )中,系 車人體程式不需重新編譯,即可加以執行、測試與除錯。 圖九係顯示進行控制流程執行完畢後的讀值判斷狀When =, the subscription engine can pass the current execution status to the test debug loop =. The user can set a breakpoint in a test command and view the contents of all the variables. The test command function library of the present invention is a dynamic link file (DLL). The ancestors can support more than one test command function library. As long as the function library that meets the test command function prototype is packaged into different DLL, however, in the editing environment and execution engine, different test commands are specified in the Test Item or Test Routine. The car body program can be executed without recompilation. Test and debug. Figure 9 shows the reading judgment status after the control process is completed.

【特點及功效】 本發明之自動測試系統儀器裝置執行控 之處理方法還具有下列特點: …[Features and effects] The processing method of the automatic test system instrument and device of the present invention also has the following characteristics:…

第11頁 535082 五、發明說明(9) ----—___ 1 ·自動測試系統使用最佳化測試命令 止系統軟體將重複之控制命令下到***:快取)技術來防 改善測試速度,雖採用開放式軟體架構更體裝置,明顯的 閉或最佳化的自動測試系統一樣高。 其效率卻如同封 2 ·為滿足電源供應器測試上的要求, 建多組測試項目’也提供使用者擴充剛自動測試系統内 新的需求,可以從測試項目編輯功能裡j項目。功能,若有 項目。 ’蝙輯想要的測試 3 ·自動測试糸統具有報表編輯製作、Page 11 535082 V. Description of the invention (9) --------___ 1 The automatic test system uses the optimized test command to stop the system software from sending repeated control commands to the system: cache) technology to prevent improving the test speed. Although the open software architecture is more compact, the obvious closed or optimized automatic test system is as high. However, its efficiency is similar to that of sealing. 2. In order to meet the requirements of power supply testing, the establishment of multiple test items ’also provides users with new requirements to expand the just-in-time automatic test system. Project j can be edited from the test item editing function. Function, if any. ‘Ban Ji wanted test 3 · Automatic test system has report editing,

功能,能提供完整的工具來產生測試文、統計分析和管理 理,而現今研究開發人員的產品研究,^和執行系統管 生產線大量測試,均對於測試和統計報:,部門的驗證, 視,這些功能有效的幫助使用者節省彡:I作’相當重 間。 很多製作文件的時 4·自動测忒糸統使用者尚可透過網 結果傳至網路或網頁上,同時擁有请㈣ 的…a ,將測試 此。 ㈣有心監控生產線的功 目/ 有產業之利用性及進步性,且太 案未見之於任何刊物,亦具新穎性, = 條、第二十條發明要件之規範。 專利法第十九 惟以上所述者,僅為本創 &amp; &amp; — &gt; 以之限定本發明實施之範圍,H車父佳:施㈣,當不能 π t等效變化、均等# t n與本發明申請專利範圍所 作之#〜化均專“或修飾’皆應仍屬本發明專利涵Function, can provide a complete tool to generate test texts, statistical analysis and management theory, and nowadays research and development product research, and implementation of a large number of system management production line tests, all for testing and statistical reports: department verification, view, These functions effectively help users save time: I work 'quite heavy room. A lot of time when making a document 4. The user of the automatic measurement system can still upload the result to the network or webpage through the web, and at the same time have the… a, which will test this. ㈣The purpose of monitoring the production line intentionally / It has the applicability and advancement of the industry, and it has not been seen in any publications, and it is also novel. It is the norm of Article 20 and Article 20 of the invention. The nineteenth of the Patent Law, except the above, is only for the purpose of limiting the scope of the present invention. The car is very good: Shi Zhe, when you cannot π t equivalent change, equal # tn All of the # ~ chemicals made with the scope of the patent application of the present invention are "or modified" and should still belong to the patent scope of the present invention.

535082 五、發明說明(10) 蓋之範圍内。 〇 &lt;1 lim 第13頁 535082 圖式簡單說明 【圖示說明】 圖一為本發明之處理方法之系統模組示意圖; 圖二為為測試命令函式庫中,被定義為A類的測試命 令物件執行初始化時,依照儀器裝置的資訊,藉由呼叫各 個機種(A1、A2、A3)API事先規範的 API—GetFunctTable()函式,來載入a類儀器各機種(A1、 A2、A3 )的「AP I函式位址表」之示意圖; 圖三為該處理方法之每個屬於不同儀器裝置的測試命 令’如何被分配到正確的AP I函式中來加以執行; 圖四為該處理方法之測試命令函式庫中測試命令函式Φ 内部參數封裝示意圖; 圆立 指定的量 圖六 輯環境所 面右方的 圖七 輯環境所 組,此外 式庫内容 圖八 控制流程 圖九 行控制流 為該處理方 測通道進行 為該處理方 參考的測試 樹狀結構會 為該處理方 參考的測試 ’畫面右方 進行更新; 為該處理方 測試除錯時 該處理方法 程執行完畢 法說明測試命令 測試的示意圖。 法圖形操作之一 命令函式庫為系 依照儀器裝置的 法另一圖形操作 命令函式庫會依 的樹狀結構也會 法之圖形操作介 的狀況;以及 之圖形操作介面 後的讀值判讀狀 實施例,本例顯示編 統預設的那一組,書 命令加以分類; 實施例,本例顯示編 照設定自動擴充至3 依照所指定的命令函 面實施例’顯示進行 貫施例,本例顯示進 況0535082 V. Description of the invention (10) Within the scope of the cover. 〇 <1 lim Page 13 535082 Brief description of the diagrams [Illustration] Figure 1 is a schematic diagram of the system module of the processing method of the present invention; Figure 2 is a test command library defined as a type A test When the command object performs initialization, according to the information of the instrument and device, the API-GetFunctTable () function specified in advance for each model (A1, A2, A3) API is loaded to load each model of the class A instrument (A1, A2, A3 ) "AP I function address table" schematic diagram; Figure 3 shows how each of the processing methods of the test command 'different instruments and devices' is assigned to the correct AP I function for execution; Figure 4 is the Test command function in the test method library of processing method Φ Internal parameter encapsulation schematic diagram; Figure 7 series environment set to the right of the sixth volume environment of Yuanli designated volume chart; In addition, the content of the type library Figure 8 Control flow chart 9 The row control flow is performed by the tester's test channel as a reference to the tester. The tree structure will be updated for the tester's reference to the right side of the screen; Method The method of Cheng finished testing a schematic diagram illustrating the test command. The command function library of one of the graphic operation methods is based on the tree structure of the graphic operation command function library according to the method of the instrument and the graphic operation interface of the method; and the reading of the graphic operation interface. This example shows the set preset by the editor, and the book order is classified. In the example, the example shows that the photo setting is automatically expanded to 3 according to the specified command. This example shows progress 0

第14頁 535082 圖式簡單說明 主要代表符號】 10 測試命令函式 11 控制流程編譯器 12 轉譯器 13 測試與除錯 14 執行引擎 15 儀器裝置相關資訊 20 測試命令函式庫 30 測試命令集 〇 &lt;1Page 14 535082 Simple explanation of the main representative symbols] 10 Test command function 11 Control flow compiler 12 Translator 13 Test and debug 14 Execution engine 15 Instrument and device related information 20 Test command function library 30 Test command set 0 &lt;1

第15頁Page 15

Claims (1)

^35082 六、申請專利範圍 理方:對上f :則5式系統儀器装置執行控制與擷取資料之處 ,方法’任何經由本處理方式處理的測試程序 (Procedure )或當★ r D . 譯器即可達到對儀心〇Utlne ) ’無需經由編譯器或直 支援的命令函式ΐίί存取的功能,並可動態擴充其可 # ^5 其至少包括有下列步驟: 夂m t ^ &quot;面的可程式化儀器功能作一分類,定義屬於 類徭-态的一致化程式呼叫介面(API ),並定義屬於各 動的測試命令函式(Test Command)原型以整合為一 動態連結函式庫; =-指定測試命令函式所需參數及測試命令執行順序及參 =輯關係’並經過-道轉譯的手段,可依其指定的内容由 =仃引擎直接呼叫相關的儀器驅動, =存取,並依照自硬體裝置取出…其上下丁二= 否合乎規格與否。 疋 如申請專利範圍第1項所述之處理方法,其中所製定的 =制流程與參數宣告皆可儲存在一集中式的檔案,並可隨 寻加以維護修改以因應不同的測試需求。 3 ·如申請專利範圍第1項所述之處理方法,其中誃 類係依據各儀器之應用特性為其特徵。 / σ刀 々如申請專利範圍第i項所述之處理方法,其中定 類儀器的測試命令函式(Test Command )原型,其函式^ 35082 6. The scope of the patent application: the above f: the place where the 5 type system equipment performs control and data acquisition, method 'any test procedure (Procedure) processed by this processing method or when ★ r D. Translation The device can achieve the access to the instrument heart 〇Utlne) 'without the need for a compiler or direct support of the command function to access the function, and can dynamically expand its accessibility # ^ 5 It includes at least the following steps: 夂 mt ^ &quot; surface Classify the programmable instrument functions, define a consistent program call interface (API) that belongs to the class 态 -state, and define the test command prototypes that belong to each action to integrate into a dynamic link function library ; =-Specify the parameters required by the test command function and the execution order and parameters of the test command, and then use the method of -channel translation. According to its specified content, the engine can directly call the relevant instrument driver according to its specified content. = Access , And take it out from the hardware device ... its upper and lower Ding = No meet the specifications or not.疋 The processing method described in item 1 of the scope of the patent application, where the = process and the parameter declaration can be stored in a centralized file, and can be maintained and modified on demand to meet different testing requirements. 3. The treatment method described in item 1 of the scope of patent application, in which the 誃 class is characterized by the application characteristics of each instrument. / σ knife 々The processing method described in item i of the patent application scope, in which the test command prototype of a specific instrument is 535082 六、申請專利範圍 〜 原型如下所述: int TSTCMDEXPORT SetAllLoad—Von(CVariant** pVarLi st ); 所有測試命令函式之原型都是一樣的,差別在於其函式名 稱,其參數型態為一指向特殊C + +類別物件(cvari ant ) 的物件指標串列,可以支援不定長度的參數,各個參數的 解釋端視各個測試命令函式内部程式碼實現方式。 、 5.如申請專利範圍第丨項或第3項所述之處理方法,其中各 類儀器的一致化程式呼叫介面(Αρ ί )會將各類別下的各 機種的儀器驅動程式包裝為一動態連結播(DLL )。 6 ·如申請專利範圍第4項所述之處理方法,其中測試命令 函式庫會動態地整合各個儀器的API為一組(Test 飞 Command Library )為一動態連結檔(DLL),各個類別 儀器有其對應的一群測試命令集,而且必須支援 、 DeVlceinit()、DeviceC1〇se()與DeviceStandBy()函式; 當測試命令函式庫被動態載入系統時,會自動依照所^定 的儀器裝置逐項呼叫其DeviceInit〇函式,執行各裝】的 初始化動作並取得系統資源;當測試命令函式庫被系統卸 載=會逐項呼叫其〇6“(^(:1(^4)函式以歸還所佔據的系 統資源;當系統執行過程必須做暫時性地檢視時,會逐項 呼叫各裝置的DevicestandBy()以避免不必要的危險性。535082 6. Scope of patent application ~ The prototype is as follows: int TSTCMDEXPORT SetAllLoad—Von (CVariant ** pVarLi st); The prototypes of all test command functions are the same, the difference lies in the function name and the parameter type is one. A series of object pointers pointing to a special C ++ class object (cvari ant) can support parameters of indefinite length. The interpretation of each parameter depends on the internal code implementation of each test command function. 5. The processing method described in item 丨 or item 3 of the scope of patent application, wherein the unified program call interface (Αρ ί) of each type of instrument will package the instrument driver of each model under each category as a dynamic Link Broadcast (DLL). 6 · The processing method described in item 4 of the scope of patent application, wherein the test command function library will dynamically integrate the API of each instrument into a group (Test Fly Command Library) as a dynamic link file (DLL) for each type of instrument Has a corresponding set of test command sets, and must support, DeVlceinit (), DeviceC10se (), and DeviceStandBy () functions; When the test command library is dynamically loaded into the system, it will automatically follow the specified instrument The device calls its DeviceInit function one by one, executes the initialization of each device] and obtains system resources; when the test command library is unloaded by the system, it will call its one-by-one function. To return the occupied system resources; when the system execution process must be temporarily inspected, DevicestandBy () of each device will be called item by item to avoid unnecessary danger. 535082535082 六、申請專利範圍 | 7·如申請專利範圍第6項所述之處理方法,其中測試命令 可以針對同一類儀器的某一部裝置單獨下命令,也可以一 次下命令給屬於這一類的戶斤有裝置。 | 8 · —種對自動測試系統儀器裝置執行控制與擷取資料之處| 理方法,至少包括以下步鄕·· I a·定義一張表格清單用以描述各機種儀器的Apj函式之相 | 關資訊,包括··機種名稱、適用之通訊介面及其預設之參 數值、API函式庫名稱等; 丄 b·提供一圖形介面之編輯方式,讓使用者可以指定所要參 與測試的儀器及其相關參數,並將此設定值存成一個可重 複編輯的二進位檔,以供執行引擎執行前動態載入系統 中; c·指定不同的測試命令於測試項目或測試常式中,系統軟 體程式不需重新編譯,即町加以執行、測試與除錯。 9 ·如申請專利範圍第8項所述之處理方法,其中圖形介面 之編輯軟體中,使用者可以做變數的宣告、規格值的定義 以及控制流程的編排,變數會依其特性區分為··測試設定 參數、測試讀值變數、暫時變數與全域變數,控制流程除4 了可以呼叫與儀器相關的測試命令外,還可以呼叫如一般 程式语5所提供的條件判斷系式與字串處理函式。 1 0 ·如申請專利範圍第9項所述之處理方法,其中此編輯環6. Scope of patent application | 7 · The processing method described in item 6 of the scope of patent application, in which the test order can be ordered separately for a certain device of the same type of instrument, or it can be issued to households belonging to this category at one time. There are devices. 8 · —A place to perform control and data acquisition on the automatic test system instruments | The method includes at least the following steps: · I a · Define a table to describe the phase of Apj functions for each model of instrument | Related information, including: · model name, applicable communication interface and its preset parameter values, API function library name, etc .; 丄 b · provides a graphical interface editing method, so that users can specify the instruments to participate in the test And its related parameters, and save this set value as a re-editable binary file for the execution engine to dynamically load into the system before execution; c. Specify different test commands in the test project or test routine, the system Software programs do not need to be recompiled, that is, they are executed, tested, and debugged. 9 · The processing method described in item 8 of the scope of patent application, in the editing software of the graphical interface, the user can make the declaration of the variables, the definition of the specification values, and the arrangement of the control process. The variables will be divided according to their characteristics. Test setting parameters, test reading variables, temporary variables, and global variables. In addition to the four control commands that can be used to call instrument-related test commands, you can also call the condition judgment system and string processing functions provided by general formula 5. formula. 1 0 · The processing method as described in item 9 of the scope of patent application, wherein the editing ring 535082 六、申請專利範圍 境可以切換到執行模式,由内建的執行引擎對於目前正在 、扁輯的控制流程進行测試與除錯。 11 ·如申請專利範圍第8項所述之處理方法,其中該處理的 對象稱之為測試項目或测試常式,其目的為定義一群儀控 命令之控制流程,以達到自動化測試的目的。535082 6. Scope of patent application The environment can be switched to the execution mode. The built-in execution engine tests and debugs the control process that is currently in progress. 11 · The processing method described in item 8 of the scope of patent application, wherein the object of the processing is called a test item or test routine, and its purpose is to define a group of instrument control commands to achieve the purpose of automated testing. 1 2 ·如申請專利範圍第8項所述之處理方法,其中該要儲存 測試項目或測試常式前,、會執行轉譯的程序: a·首先將使用者在目前所^告的本地與全域變數名稱、型 別作逐一地檢查,並且對^在每項測试命令的每一參數所 指定的變數名稱、型別逐一地檢查其合理性; b·其次,在記憶體中產生數變數表格; c ·最後,將測試命令的每一參數所指定的變數或常數值, 解譯為表格之索引。 1 3·如申請專利範圍第8項所述之處理方法’其中對於正在 編輯的控制流程進行測試與除錯前必須先經過轉譯的解譯 成功。 1 4 ·如申請專利範圍第8、11或1 2項所述之處理方法,其中 測试項目或測试常式在被執行前,執行引擎首先會對於預 先指定的硬體裝置進行初始化(Initializati〇n)的程 序,以確保系統上的儀器存在且連線正常。1 2 · The processing method described in item 8 of the scope of patent application, in which the translation process will be performed before the test item or test routine is stored: a. First, the user will be reported in the local and global areas currently reported. The variable names and types are checked one by one, and the reasonableness of the variable names and types specified by each parameter in each test command is checked one by one; b. Second, a variable variable table is generated in the memory C. Finally, the variable or constant value specified by each parameter of the test command is interpreted as an index into the table. 1 3 · The processing method described in item 8 of the scope of patent application ', wherein the control flow being edited must be successfully interpreted before being tested and debugged. 1 4 · The processing method described in item 8, 11, or 12 of the scope of the patent application, wherein before the test item or test routine is executed, the execution engine first initializes a pre-designated hardware device (Initializati 〇) procedures to ensure that the instruments on the system are present and connected properly. 第19頁 六 、申請專利範圍 1 5 ·如申請專利範圍第1 執行引擎在執行測試項目項所述之處理方法,其中 試命令的名稱到測試命人試常式•,會依照每-道測 其函式的指標,再依照二ί庠(DLL ) t,動態地取得 内容,包裳成-個通用、型能=此測試命令所指定的參數 命令。 ^心的參數串列,才呼叫此道測試 1 ^ ·如申請專利範圍第j項戈 測試命令執行時,執行引擎J、所述之處理方法,其中 試除錯環境,使用者可以在宜^將目前的執行狀況傳給測 可檢視目前的所有變數内容值。道測試命令設定斷點,並 種對自動測試系統儀器裝置勃^ t &amp; 處理方法,任何經由本處理方式置處執二控制與擷取資料之 ,經由編譯器或直譯器即可達心或常式’ 月匕,並可動態擴充其可支援的命令函^、予取的功 令函式庫為一動態連結檔(DLL ) ,'/ ’,、、中該測試命 個以上的測試命令函式庫,將符合所^^里方法可支板一、 原型的函式庫包裝成不同的DLL,然後軌、測试命令函式 、、後在如申請專利蘇圖 ί9^^ ^^^,!ϊΪ i於測試=二,軟體程式不需重新編 澤,即加以執1彳丁、測纟式與除錯。Page 19 6. Scope of patent application 1 5 • As described in the scope of patent application, the execution method described in the execution of the test project item, where the name of the test command to the test life test routine •, will be tested on a per-channel basis. The function index, according to the second DLL (DLL) t, dynamically obtains the content, and it is a general, type-capable parameter command specified by this test command. ^ Here is the parameter sequence of the call before calling this test 1 ^ · If the test order of the patent application item j is executed, the execution method of the engine J and the processing method described above, in which the test and debugging environment, the user can Pass the current execution status to the test to view the current value of all variables. The test command sets a breakpoint, and a processing method for the automatic test system instruments and devices. Any method that controls and retrieves data through this processing method can be achieved through a compiler or translator. It can be used as a routine, and it can dynamically expand its supported command functions ^, the pre-fetched function library is a dynamic link file (DLL), '/' ,,, and the test commands are more than one test command Function library, which can be used to support the method in the following method. The prototype function library is packaged into different DLLs, and then the track, test command function, and later, such as applying for a patent Su Tu 9 ^^ ^^^ ,! ϊΪ i 于 测试 = 二, the software program does not need to be re-edited, that is, it can be executed, tested and debugged. 第20頁Page 20
TW90113296A 2001-06-01 2001-06-01 Processing method for control and access of data with devices of automatic testing system TW535082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW90113296A TW535082B (en) 2001-06-01 2001-06-01 Processing method for control and access of data with devices of automatic testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW90113296A TW535082B (en) 2001-06-01 2001-06-01 Processing method for control and access of data with devices of automatic testing system

Publications (1)

Publication Number Publication Date
TW535082B true TW535082B (en) 2003-06-01

Family

ID=29212696

Family Applications (1)

Application Number Title Priority Date Filing Date
TW90113296A TW535082B (en) 2001-06-01 2001-06-01 Processing method for control and access of data with devices of automatic testing system

Country Status (1)

Country Link
TW (1) TW535082B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440867B2 (en) 2005-09-26 2008-10-21 Hong Fu Jin Precision Industry (Shen Zhen) Co., Ltd. System and method for measuring workpieces
TWI383166B (en) * 2004-12-09 2013-01-21 Advantest Corp Method and system for performing installation and configuration management of tester instrument modules
TWI485407B (en) * 2013-07-05 2015-05-21 Univ China Sci & Tech Error Detection Method and System of CAN - BUS Communication Format for Embedded Oscilloscope
CN113704122A (en) * 2021-08-31 2021-11-26 优维科技(深圳)有限公司 UI (user interface) automatic test system and method based on standard interface
TWI804363B (en) * 2022-06-23 2023-06-01 英業達股份有限公司 Device for updating library required by test program for testing and method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI383166B (en) * 2004-12-09 2013-01-21 Advantest Corp Method and system for performing installation and configuration management of tester instrument modules
US7440867B2 (en) 2005-09-26 2008-10-21 Hong Fu Jin Precision Industry (Shen Zhen) Co., Ltd. System and method for measuring workpieces
TWI485407B (en) * 2013-07-05 2015-05-21 Univ China Sci & Tech Error Detection Method and System of CAN - BUS Communication Format for Embedded Oscilloscope
CN113704122A (en) * 2021-08-31 2021-11-26 优维科技(深圳)有限公司 UI (user interface) automatic test system and method based on standard interface
CN113704122B (en) * 2021-08-31 2023-08-29 优维科技(深圳)有限公司 UI (user interface) automatic test system and method based on standard interface
TWI804363B (en) * 2022-06-23 2023-06-01 英業達股份有限公司 Device for updating library required by test program for testing and method thereof

Similar Documents

Publication Publication Date Title
EP0988558B1 (en) Low cost, easy to use automatic test system software
CN102495789B (en) Automatic test method and device for the same
JP4249309B2 (en) Relocatable measurement tags for testing and debugging computer programs
US20050268285A1 (en) Object oriented GUI test automation
CN105426310B (en) A kind of method and apparatus for the performance for detecting target process
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN106095668B (en) The generation method of C++ test case based on event and movement
CN105468797A (en) Information processing method and apparatus
TW535082B (en) Processing method for control and access of data with devices of automatic testing system
CN100437513C (en) Method and system for implementing automatic testing
Systä Dynamic reverse engineering of java software
CN103364713A (en) Test method and apparatus for electrical failure analysis
CN110502242A (en) Code automatic generation method, device, computer equipment and storage medium
US10656611B2 (en) Programmable controller
CN104375932A (en) Method and device for analyzing code coverage rate of Java card
CN111611008A (en) Software code packaging and deploying method, device, equipment and storage medium
CN108170953B (en) Circuit diagram migration method and device
CN109960497A (en) Call method and device between a kind of script file
CN1983168A (en) Method for executing control and pickup data of automatically-testing system equipment
Dai et al. Automatic test data generation for TTCN-3 using CTE
Xie General Chip Digital Data Obtaining Solution on Ate
CN100442729C (en) Configuration method of tested system in conformance test of network protocol
JP2001156176A (en) Method and system for generating lsi test program
CN113297083B (en) Cross-platform IC test method, device, equipment and medium
CN113742222B (en) Automatic generation method and test method for server communication test cases

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees