CN101957878B - Method and device for constructing and managing prototype device library - Google Patents
Method and device for constructing and managing prototype device library Download PDFInfo
- Publication number
- CN101957878B CN101957878B CN201010288676A CN201010288676A CN101957878B CN 101957878 B CN101957878 B CN 101957878B CN 201010288676 A CN201010288676 A CN 201010288676A CN 201010288676 A CN201010288676 A CN 201010288676A CN 101957878 B CN101957878 B CN 101957878B
- Authority
- CN
- China
- Prior art keywords
- emulator
- order
- command
- configuration
- attribute
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域 technical field
本发明涉及计算机应用技术及半导体领域,特别涉及一种原型器件库的构建及管理方法和装置。The invention relates to the field of computer application technology and semiconductors, in particular to a method and device for constructing and managing a prototype device library.
背景技术 Background technique
随着集成电路芯片集成度的不断提升和芯片功能的不断提高,人们对工艺的要求越来越高。在半导体制造装备的研究、开发和测试工作中,包括硬件和软件的研发。开发软件中大部分是设备控制软件,这些软件在进行测试时,需要首先在仿真环境下进行验证,而单纯为某一个项目开发软件测试平台不仅耗时过大而且可重用性很差,为了提高软件测试的效率和准确定位系统所存在问题,迫切需要一个通用的软件测试平台系统。需要提供各项目使用的所有硬件的仿真程序,使开发出来的软件能在此基础之上运行,从而进行测试。With the continuous improvement of the integration level of integrated circuit chips and the continuous improvement of chip functions, people's requirements for technology are getting higher and higher. In the research, development and testing of semiconductor manufacturing equipment, including hardware and software research and development. Most of the development software is equipment control software. When testing these software, they need to be verified in the simulation environment first. However, simply developing a software test platform for a certain project is not only time-consuming but also poor in reusability. In order to improve The efficiency of software testing and the accurate positioning of system problems urgently require a general software testing platform system. It is necessary to provide simulation programs for all the hardware used in each project, so that the developed software can run on this basis for testing.
在半导体制造装备的研究、开发和测试工作中,仿真具有重要作用。一方面,由于生产过程控制本身的复杂性,对理论研究不断提出新的要求,而理论研究需提高设备的利用率。要借助于仿真工具;另一方面,面对各种系统控制软件包,需要现成的仿真平台,全面反映算法在实际生产运行中的效果,得到有指导意义的算法改进策略、参数在线调整方法等。仿真平台的使用,能够准确测试设备控制系统软件,可以减少控制系统软件执行与集成电路制造工艺过程的失败,能解决集成电路工艺设备的工艺稳定性,工艺可靠性,减少设备维修时间,最大程度的提高设备的利用率。Simulation plays an important role in the research, development and testing of semiconductor manufacturing equipment. On the one hand, due to the complexity of the production process control itself, new requirements are constantly put forward for theoretical research, and theoretical research needs to increase the utilization rate of equipment. With the help of simulation tools; on the other hand, in the face of various system control software packages, a ready-made simulation platform is needed to fully reflect the effect of the algorithm in actual production and operation, and to obtain instructive algorithm improvement strategies, online parameter adjustment methods, etc. . The use of the simulation platform can accurately test the equipment control system software, reduce the failure of control system software execution and integrated circuit manufacturing process, solve the process stability and process reliability of integrated circuit process equipment, reduce equipment maintenance time, and maximize Improve the utilization rate of equipment.
现有的原型器件库的构建及管理方法及装置,从功能上讲,原型器件库创建管理方法及系统主要包含如下几个方面的功能模块:The existing construction and management method and device of the prototype device library, from a functional point of view, the prototype device library creation management method and system mainly include the following functional modules:
(1)设备配置模块(1) Device configuration module
配置通信协议子模块:保存用户选择的设备的(通信协议)属性;Configure the communication protocol submodule: save the (communication protocol) attribute of the device selected by the user;
配置设备参数子模块:保存用户配置的设备参数,放到一个容器;Configure the device parameter sub-module: save the device parameters configured by the user and put them in a container;
配置控制命令子模块:将用户配置的命令放到容器中对应设备参数的位置。Configuration control command sub-module: put the command configured by the user in the position corresponding to the device parameter in the container.
(2)设备行为模块(2) Device behavior module
设置响应时间子模块:保存用户设置的(响应时间)参数;Set the response time sub-module: save the (response time) parameters set by the user;
设置回复信息子模块:将用户配置的回复信息放到容器中对应设备命令的位置;Set the reply information sub-module: put the reply information configured by the user in the position corresponding to the device command in the container;
连接测试子模块:将可以调用协议层功能发送测试信息给控制计算机,以判断该设备的命令是否设置正确;Connection test sub-module: it can call the protocol layer function to send test information to the control computer to judge whether the command of the device is set correctly;
设置设备耦合关系子模块:用容器保存设备内部各参数之间的关联关系;Set the device coupling relationship sub-module: use the container to save the relationship between the parameters inside the device;
设置参数变化行为子模块:用容器存储参数变化行为。Set parameter change behavior sub-module: use container to store parameter change behavior.
(3)设备编辑模块(3) Device editing module
设备重命名子模块:修改设备对象的标识符或者名称;Device renaming submodule: modify the identifier or name of the device object;
修改设备参数子模块:修改设备对象的各项参数。Modify the equipment parameter sub-module: modify the parameters of the equipment object.
(4)设备运行模块(4) Equipment operation module
设备运行模块主要负责在仿真运行过程中调用协议层接口与控制端通信。The equipment operation module is mainly responsible for invoking the protocol layer interface to communicate with the control terminal during the simulation operation.
上述原型器件库的构建及管理装置无法根据不同的制造装备的要求对原型器件库进行配置,无法满足不同项目的不同硬件的需求,配置的灵活性差。The above-mentioned construction and management device for the prototype device library cannot configure the prototype device library according to the requirements of different manufacturing equipment, cannot meet the requirements of different hardware for different projects, and has poor configuration flexibility.
发明内容 Contents of the invention
本发明的目的旨在至少解决上述技术缺陷之一,特别提出了一种原型器件库的构建及管理方法和装置,以适用于面向装备控制软件测试的不同制造装备的仿真系统,并且可以根据不同项目中的硬件使用方法的不同,灵活配置原型器件库的属性。The purpose of the present invention is to at least solve one of the above-mentioned technical defects. In particular, a method and device for constructing and managing a prototype device library are proposed, which are suitable for simulation systems of different manufacturing equipment oriented to equipment control software testing, and can be used according to different According to different hardware usage methods in the project, the attributes of the prototype device library can be flexibly configured.
为达到上述目的,本发明一方面提出了一种原型器件库的构建及管理方法,包括如下步骤:In order to achieve the above object, the present invention proposes a construction and management method of a prototype device library on the one hand, including the following steps:
创建原型器件库,并配置所述原型器件库的参数,包括:Create a prototype device library, and configure the parameters of the prototype device library, including:
创建仿真设备,其中,所述原型器件库包括多个仿真设备,creating a simulation device, wherein the prototype device library includes a plurality of simulation devices,
配置所述仿真设备的参数,其中,所述仿真设备的参数包括:所述仿真设备的属性、所述仿真设备的命令、所述仿真设备的动作和所述仿真设备的通讯端口,和Configuring parameters of the simulated device, wherein the parameters of the simulated device include: attributes of the simulated device, commands of the simulated device, actions of the simulated device, and communication ports of the simulated device, and
将配置完成的仿真设备添加到原型器件库中;Add the configured simulation device to the prototype device library;
配置完成后,保存所述原型器件库;以及After the configuration is completed, save the prototype device library; and
接收仿真控制命令,并根据所述仿真控制命令控制所述原型器件库执行相应的仿真动作。receiving a simulation control command, and controlling the prototype device library to perform corresponding simulation actions according to the simulation control command.
根据本发明实施例的原型器件库的构建及管理方法,可根据仿真需求,配置成需要仿真的相关设备。原型器件库经过配置后可适用于面向装备控制软件测试的不同制造装备的仿真器件,并且可以根据不同项目中对硬件的使用方法的不同,灵活配置原型器件库的属性,满足不同的项目需求。The construction and management method of the prototype device library according to the embodiment of the present invention can be configured as related equipment that needs to be simulated according to the simulation requirements. After configuration, the prototype device library can be applied to the simulation devices of different manufacturing equipment for equipment control software testing, and the properties of the prototype device library can be flexibly configured according to the different methods of using the hardware in different projects to meet different project requirements.
本发明另一方面还提出了一种原型器件库的构建及管理装置,包括:On the other hand, the present invention also proposes a device for constructing and managing a prototype device library, including:
配置模块,用于创建原型器件库,并配置所述原型器件库的参数,包括:The configuration module is used to create a prototype device library, and configure the parameters of the prototype device library, including:
所述配置模块创建仿真设备,其中,所述原型器件库包括多个所述仿真设备,The configuration module creates a simulation device, wherein the prototype device library includes a plurality of the simulation devices,
所述配置模块配置所述仿真设备的参数,其中所述仿真设备的参数包括:所述仿真设备的属性、所述仿真设备的命令、所述仿真设备的动作和所述仿真设备的通讯端口,和所述配置模块将配置完成的仿真设备添加到原型器件库中;The configuration module configures the parameters of the simulated device, wherein the parameters of the simulated device include: attributes of the simulated device, commands of the simulated device, actions of the simulated device and communication ports of the simulated device, Adding the configured simulation device to the prototype device library with the configuration module;
保存模块,用于保存配置后的原型器件库;以及Save the module, used to save the configured prototype device library; and
控制模块,用于接收仿真控制命令,并根据所述仿真控制命令控制所述原型器件库执行相应的仿真动作。根据本发明实施例的原型器件库的构建及管理装置,可根据仿真需求,配置成需要仿真的相关设备。原型器件库经过配置后可适用于面向装备控制软件测试的不同制造装备的仿真器件,并且可以根据不同项目中对硬件的使用方法的不同,灵活配置原型器件库的属性,满足不同的项目需求。The control module is configured to receive a simulation control command, and control the prototype device library to perform corresponding simulation actions according to the simulation control command. The device for constructing and managing a prototype device library according to an embodiment of the present invention can be configured as a related device that needs to be simulated according to a simulation requirement. After configuration, the prototype device library can be applied to the simulation devices of different manufacturing equipment for equipment control software testing, and the properties of the prototype device library can be flexibly configured according to the different methods of using the hardware in different projects to meet different project requirements.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明 Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:
图1为根据本发明实施例的原型器件库的构建及管理方法的流程图;Fig. 1 is the flow chart of the construction and the management method of the prototype device library according to the embodiment of the present invention;
图2为图1中原型器件库的构建及管理方法的实施流程图;Fig. 2 is the implementation flowchart of the construction and management method of the prototype device library in Fig. 1;
图3为根据本发明实施例的配置并保持原型器件库的流程图;Fig. 3 is the configuration according to the embodiment of the present invention and maintains the flowchart of prototype device storehouse;
图4为根据本发明实施例的仿真设备类的结构图;4 is a structural diagram of a simulation device class according to an embodiment of the present invention;
图5为根据本发明实施例的仿真设备层次化管理的界面示意图;5 is a schematic diagram of an interface for hierarchical management of simulation equipment according to an embodiment of the present invention;
图6为图3中创建仿真设备名称与仿真设备类型的界面示意图;FIG. 6 is a schematic diagram of an interface for creating a simulated device name and a simulated device type in FIG. 3;
图7为根据本发明实施例的编辑配置完成的仿真设备名称和仿真设备类型的界面示意图;FIG. 7 is a schematic diagram of an interface of a simulated device name and a simulated device type that are edited and configured according to an embodiment of the present invention;
图8为根据本发明实施例的创建与编辑仿真设备的属性的界面示意图;8 is a schematic diagram of an interface for creating and editing properties of a simulated device according to an embodiment of the present invention;
图9为根据本发明实施例的配置仿真设备参数的界面示意图;9 is a schematic diagram of an interface for configuring simulation device parameters according to an embodiment of the present invention;
图10为根据本发明实施例的配置仿真设备命令的界面示意图;FIG. 10 is a schematic diagram of an interface for configuring a simulation device command according to an embodiment of the present invention;
图11为根据本发明实施例的配置仿真设备动作名称的界面示意图;FIG. 11 is a schematic diagram of an interface for configuring an action name of a simulation device according to an embodiment of the present invention;
图12为根据本发明实施例的配置仿真设备动作内容的界面示意图;12 is a schematic diagram of an interface for configuring action content of a simulation device according to an embodiment of the present invention;
图13为图12中配置仿真设备动作条件的界面示意图;Fig. 13 is a schematic diagram of the interface for configuring the action conditions of the simulation device in Fig. 12;
图14为图12中配置仿真设备延迟等待的界面示意图;Fig. 14 is a schematic diagram of the interface of configuring the delay waiting of the simulated device in Fig. 12;
图15为图12中配置仿真设备变化规律的界面示意图;Fig. 15 is a schematic diagram of the interface of configuring the changing rule of the simulation device in Fig. 12;
图16为图15中三种变化规律的界面示意图;Fig. 16 is a schematic diagram of the interface of three kinds of changing laws in Fig. 15;
图17为图12中配置返回信息的界面示意图;Fig. 17 is a schematic diagram of the interface of configuration return information in Fig. 12;
图18为根据本发明实施例的配置仿真设备的耦合条件的界面示意图;18 is a schematic diagram of an interface for configuring coupling conditions of a simulation device according to an embodiment of the present invention;
图19为根据本发明实施例的配置仿真设备的以太网的界面示意图;FIG. 19 is a schematic diagram of an Ethernet interface for configuring a simulation device according to an embodiment of the present invention;
图20为根据本发明实施例的配置仿真设备的串口协议端口的界面示意图;20 is a schematic diagram of an interface for configuring a serial port protocol port of a simulation device according to an embodiment of the present invention;
图21为根据本发明实施例的控制原型器件库仿真的流程图;21 is a flow chart of controlling prototype device library simulation according to an embodiment of the present invention;
图22为根据本发明实施例的原型器件库中的仿真设备的运行界面示意图;以及22 is a schematic diagram of the running interface of the simulation device in the prototype device library according to an embodiment of the present invention; and
图23为根据本发明实施例的原型器件库的构建及管理装置的示意图。Fig. 23 is a schematic diagram of an apparatus for constructing and managing a prototype device library according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.
为了更好的理解本发明,下面参考附图描述根据本发明实施例的原型器件库的构建及管理方法。在下面的描述中,以面向半导体制造装备功能的仿真系统为例,即本发明实施例提供的原型器件库适用于半导体制造装备功能的仿真系统,需要理解的是本发明并不限于此。In order to better understand the present invention, the construction and management method of the prototype device library according to the embodiment of the present invention will be described below with reference to the accompanying drawings. In the following description, the simulation system oriented to semiconductor manufacturing equipment functions is taken as an example, that is, the prototype device library provided by the embodiment of the present invention is suitable for the simulation system of semiconductor manufacturing equipment functions. It should be understood that the present invention is not limited thereto.
如图1、2所示,本发明实施例的原型器件库的构建及管理方法,包括如下步骤:As shown in Figures 1 and 2, the construction and management method of the prototype device library of the embodiment of the present invention includes the following steps:
S101:创建原型器件库,并配置原型器件库的参数;S101: Create a prototype device library, and configure parameters of the prototype device library;
如图3所示,首先创建原型器件库,由于在原型器件库中包括有多个仿真设备,因此创建原型器件库的过程包括创建原型器件库内的多个仿真设备。As shown in Fig. 3, the prototype device library is firstly created. Since the prototype device library includes multiple simulation devices, the process of creating the prototype device library includes creating multiple simulation devices in the prototype device library.
为了更好的理解本发明的创建仿真设备的过程,下面结合图4对仿真设备的类的结构进行说明。如图4所示,仿真设备类主要包括属性类、命令类和动作类链表。每个类中又包括各自的属性和方法。图5进一步示出了仿真设备的层次化管理的界面示意图。为了方便大量仿真设备的归类和查找,采用树状结构来管理仿真设备文件。仿真设备信息树由仿真设备(Device)节点和动作(action)、命令(Command)和属性(Property)三种叶子节点组成。一个仿真设备中可以包含任意个动作(action)、命令(Command)和属性(Property)叶子节点,而动作(action)、命令(Command)和属性(Property)节点必须属于某个仿真设备节点。In order to better understand the process of creating a simulated device in the present invention, the class structure of the simulated device will be described below in conjunction with FIG. 4 . As shown in Figure 4, the simulated device class mainly includes attribute class, command class and action class list. Each class includes its own properties and methods. FIG. 5 further shows a schematic diagram of an interface for hierarchical management of simulated devices. In order to facilitate the classification and search of a large number of simulated devices, a tree structure is used to manage the simulated device files. The simulated device information tree is composed of simulated device (Device) node and action (action), command (Command) and attribute (Property) three leaf nodes. A simulated device can contain any number of action (action), command (Command) and property (Property) leaf nodes, and the action (action), command (Command) and property (Property) nodes must belong to a certain simulated device node.
下面结合图6和图7描述创建仿真设备的过程。The process of creating a simulated device is described below with reference to FIG. 6 and FIG. 7 .
首先创建仿真设备的名称,如图6所示,在DeviceName对应的文本框中填入创建的设备名称。在DeviceType对应的文本框中填入该设备所属的设备类型,最后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除,如图7所示。由此,通过创建仿真设备,从而完成创建原型器件库。First create the name of the simulated device, as shown in Figure 6, fill in the created device name in the text box corresponding to DeviceName. Fill in the device type to which the device belongs in the text box corresponding to DeviceType, and finally click Add to enter the list on the right. In the list on the right, you can edit and delete the added options, as shown in Figure 7. Thus, by creating a simulation device, the creation of a prototype device library is completed.
在创建原型器件库后,对上述原型器件库的参数进行配置。即,对原型器件库中的仿真设备的参数进行配置。After creating the prototype device library, configure the parameters of the above prototype device library. That is, configure the parameters of the simulation device in the prototype device library.
其中,仿真设备的参数包括:仿真设备的属性、仿真设备的命令、仿真设备的动作和仿真设备的通讯端口。Wherein, the parameters of the simulated device include: properties of the simulated device, commands of the simulated device, actions of the simulated device and communication ports of the simulated device.
(1)配置仿真设备的属性(1) Configure the properties of the simulated device
其中,仿真设备的属性包括属性名称和属性类型。其中,属性类型,例如int,string等。Wherein, the attributes of the simulated device include attribute names and attribute types. Among them, the attribute type, such as int, string, etc.
如图8所示,首先,根据创建的设备列表选取需要配置属性的仿真设备。在选取仿真设备之后,添加仿真设备属性。新的仿真设备属性会添加进仿真设备属性列表中。结合图9所示,在本发明的一个实施例中,仿真设备的属性除属性名称和属性类型还可以包括属性最大值、属性最小值和属性默认初始值。在PropertyName对应的文本框中填入设备的属性名称,在PropertyType对应的下拉菜单中选取该属性的类型。例如:布尔类型,数值类型等。然后在下方的文本框中按对应的文字提示填入该属性的最大值,最小值和默认初始值。当属性默认初始值不存在时,该值可以为空。最后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。具体而言,创建完成之后可以对仿真设备的属性中的任何一项进行编辑,并且可以在设备属性列表中删除添加的仿真设备的属性。As shown in FIG. 8 , first, select the simulated device whose properties need to be configured according to the created device list. After selecting the simulated device, add the simulated device property. The new emulated device property is added to the list of emulated device properties. As shown in FIG. 9 , in an embodiment of the present invention, the attributes of the simulated device may include attribute maximum values, attribute minimum values, and attribute default initial values in addition to attribute names and attribute types. Fill in the property name of the device in the text box corresponding to PropertyName, and select the property type from the drop-down menu corresponding to PropertyType. For example: Boolean type, numeric type, etc. Then fill in the maximum value, minimum value and default initial value of the attribute in the text box below according to the corresponding text prompt. When the default initial value of the attribute does not exist, the value can be empty. Finally, click Add to add to the list on the right. In the list on the right, the added options can be edited and deleted. Specifically, after the creation is complete, any item in the properties of the simulated device can be edited, and the added property of the simulated device can be deleted in the device property list.
配置完成之后点击Save即可返回仿真设备配置管理界面。如果之后需要进行编辑和删除,可以重复上述动作。After the configuration is complete, click Save to return to the emulation device configuration management interface. If you need to edit and delete later, you can repeat the above actions.
在本发明的一个实施例中,将仿真设备的属性以XML文件格式进行保存,从而方便用户的读取。In one embodiment of the present invention, the properties of the simulated device are saved in XML file format, so as to be convenient for users to read.
(2)配置仿真设备的命令(2) Commands to configure emulated devices
首先,选取需要配置命令的仿真设备。在选取仿真设备之后,配置仿真设备的命令。其中,仿真设备的命令包括:命令名称、命令传递方向和命令内容。其中,命令传递方向包括:由仿真设备发送命令给其他设备、仿真设备接收来自其他设备的命令、仿真设备发送命令给自身和返回信息。First, select the simulated device that needs to configure the command. After selecting the simulated device, configure the commands for the simulated device. Wherein, the command of the simulated device includes: command name, command transmission direction and command content. Wherein, the command transfer direction includes: the simulated device sends commands to other devices, the simulated device receives commands from other devices, and the simulated device sends commands to itself and returns information.
在配置完命令传递方向后,进一步配置命令内容。由于每条命令对应一种协议格式,因此,命令内容包括协议名称、协议地址范围、协议地址、命令说明、命令属性个数和命令的设备属性。After configuring the command delivery direction, further configure the command content. Since each command corresponds to a protocol format, the command content includes protocol name, protocol address range, protocol address, command description, command attribute number and command device attribute.
其中,对于协议名称,由于协议跟随命令,一个命令对应一种协议格式,因此协议名称可以选取配置协议时创建的各种协议。Among them, for the protocol name, because the protocol follows the command, and a command corresponds to a protocol format, the protocol name can select various protocols created when configuring the protocol.
对于协议地址范围,当协议为串口和TCP/IP协议时,由于协议层对该两类协议自我封装了协议格式,有可能出现多段String类型的协议字段,需要指定该命令的字段属于哪一段String字段。For the protocol address range, when the protocol is serial port and TCP/IP protocol, since the protocol layer self-encapsulates the protocol format for the two types of protocols, there may be multiple string-type protocol fields, and you need to specify which string the field of the command belongs to field.
协议地址指定命令发送的物理地址或端口号,命令说明是对命令的文字解释。命令属性个数表示命令中包括的仿真设备的属性个数。命令的设备属性是对该命令中所带设备属性进行指定,例如:命令中包括3个设备属性,分别指定3个设备的属性。The protocol address specifies the physical address or port number to send the command, and the command description is the text explanation of the command. The number of attributes of the command indicates the number of attributes of the simulated device included in the command. The device attribute of the command is to specify the device attributes included in the command. For example, the command includes 3 device attributes, and the 3 device attributes are specified respectively.
将创建完成的仿真设备的命令添加到仿真设备命令列表中,之后可以对命令中任何一项进行编辑,并且可以在设备命令列表中删除该仿真设备的命令。然后保存仿真设备的命令。Add the command of the created simulated device to the simulated device command list, and then edit any item in the command, and delete the command of the simulated device in the device command list. Then save the command to emulate the device.
在本发明的一个实施例中,将仿真设备的命令以XML文件格式进行保存,从而方便用户的读取。In an embodiment of the present invention, the command of the simulated device is saved in an XML file format, so that it is convenient for the user to read.
如图10所示,首先需要在DeviceName下拉菜单中选取需要配置的设备。第一步,在CommandName对应的文本框中填入设置的命令名称,在CommandDirection对应的下拉菜单中选择该命令的发送方向,然后再CommandNote里面填入该命令的一个简单说明。第二步,在ProtocolName下拉选项中选取该命令需要使用的协议名称。第三步,需要确认该条命令中所带参数对应的设备属性。在ParameterNumber对应的文本框中填入该命令所带的参数数量,填写确定之后点击OK即可,然后在下方的表格中会自动生成填入的数字数量的列,每一列代表一个参数,然后在每一个参数的下方会有一个下拉菜单选项,选项为之前配置的所有属性名称,选择所对应的属性名称之后,点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备配置管理界面。如果之后需要进行编辑和删除,可以重复上述动作。As shown in Figure 10, you first need to select the device to be configured from the DeviceName drop-down menu. The first step is to fill in the set command name in the text box corresponding to CommandName, select the sending direction of the command in the drop-down menu corresponding to CommandDirection, and then fill in a brief description of the command in CommandNote. In the second step, select the protocol name to be used by the command in the ProtocolName drop-down option. The third step is to confirm the device attributes corresponding to the parameters in the command. Fill in the number of parameters of the command in the text box corresponding to ParameterNumber, and click OK after filling in the confirmation, and then a column of the number of numbers filled in will be automatically generated in the table below, each column represents a parameter, and then in There will be a drop-down menu option under each parameter. The options are all the attribute names configured before. After selecting the corresponding attribute name, click Add to add to the list on the right. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device configuration management interface. If you need to edit and delete later, you can repeat the above actions.
(3)配置仿真设备的动作(3) Configure the action of the simulated device
首先,配置仿真设备的动作名称,然后将动作名称的添加到动作列表中。根据已创建的动作列表,选择需要配置的仿真设备的动作。First, configure the action name of the simulated device, and then add the action name to the action list. According to the created action list, select the action of the simulated device to be configured.
从上述已配置的仿真设备命令中,选取与仿真设备动作相耦合的仿真设备命令。仿真设备只有在接收到相关仿真设备命令后,才能执行相应的仿真动作。其中,仿真设备命令包括了发送给自身的用来触发仿真设备内的耦合行为。Select the simulated device command coupled with the simulated device action from the above configured simulated device commands. The simulation device can only execute the corresponding simulation action after receiving the relevant simulation device command. Wherein, the simulated device command includes sending to itself to trigger the coupling behavior in the simulated device.
在配置完仿真设备的命令后,进一步配置仿真设备动作的步骤数目以及每一步的动作类型。其中,仿真设备动作可以细分为很多步骤,每一步可对应一个设备动作类型。每个仿真设备动作可分为每一个步骤来执行。After configuring the command of the simulated device, further configure the number of steps of the simulated device action and the action type of each step. Among them, the simulated device action can be subdivided into many steps, and each step can correspond to a device action type. Each simulated device action can be divided into each step to execute.
其中,仿真设备动作类型分为5类,包括:命令行为、动作条件、延迟等待、变化规律、返回信息。Among them, the simulation device action types are divided into 5 categories, including: command behavior, action conditions, delay waiting, change rules, and return information.
(1)配置命令行为:该仿真设备动作类型是在配置仿真设备命令时,对指定的仿真命令所带仿真设备的属性赋值。(1) Behavior of the configuration command: the action type of the simulation device is to assign values to the attributes of the simulation device carried by the specified simulation command when configuring the simulation device command.
(2)配置动作条件:该仿真设备动作类型是判断设备属性达到什么要求的时候执行下一步骤,判断的条件可以组合,判断之后的行为分为then和else。例如:设备MFC的流速大于1000时,执行步骤2,否则执行步骤3。配置内容包括:设备属性、条件判断(<,>,==,<=,=>)、属性值和逻辑关系。(2) Configure action conditions: The action type of the simulated device is to execute the next step when judging that the device attributes meet the requirements. The judging conditions can be combined, and the behavior after judging is divided into then and else. For example: when the flow rate of the device MFC is greater than 1000, go to
其中,设备属性可以根据创建的设备属性列表来选取。属性值需要由用户指定。逻辑关系可以为和、或、异或。可以将很多条件判断组合成一种条件判断。新的动作条件添加进动作条件列表。Among them, the device attribute can be selected according to the created device attribute list. Attribute values need to be specified by the user. The logical relationship can be AND, OR, XOR. Many conditional judgments can be combined into one conditional judgment. A new action condition is added to the action condition list.
(3)配置延迟等待:该仿真设备动作类型为执行动作等待相应时间。配置的内容包括:等待时间,即需要执行等待多长时间,单位为ms;下一步执行的步骤,即选取下一步执行的步骤。(3) Configuration delay waiting: The action type of the simulated device is to execute actions and wait for the corresponding time. The content of the configuration includes: waiting time, that is, how long the execution needs to wait, and the unit is ms; the next step to be executed, that is, the step to be executed next.
(4)配置变化规律:该仿真设备动作类型指定仿真设备属性的变化规律。配置的内容包括:设备属性、变化规律、自定义彪悍规律接口、下一步执行的步骤。(4) Configuration change rule: the action type of the simulated device specifies the change rule of the simulated device attribute. The content of the configuration includes: device attributes, change rules, user-defined sturdy rule interfaces, and the next steps to be executed.
其中,设备属性根据创建的设备属性列表选取。Among them, the device attribute is selected according to the created device attribute list.
变化规律可以预先指定,用户根据仿真要求进行选取。变化规律包括PID、PI、PD和自定义四个选项。The change rule can be specified in advance, and the user can select it according to the simulation requirements. The change rule includes four options: PID, PI, PD and custom.
自定义变化规律接口,通过该接口由用户自己定义属性的变化规律。User-defined change rule interface, through which the user can define the change rule of attributes.
下一步执行的步骤,即选取下一步执行的步骤。The next step to execute is to select the next step to execute.
(5)配置返回信息:该仿真设备动作类型指定仿真设备给控制端的返回信息。配置的内容包括:命令名称、协议名称、设置命令所属的属性和下一步执行的步骤。(5) Configuration return information: the simulated device action type specifies the returned information from the simulated device to the control terminal. The content of the configuration includes: command name, protocol name, attributes of the set command and the steps to be executed next.
其中,命令名称可以根据创建的仿真设备命令列表中返回类型里选取。Among them, the command name can be selected according to the return type in the created simulation device command list.
协议名称,其含义与配置命令相同,可以根据创建的协议列表选取。The protocol name has the same meaning as the configuration command, which can be selected according to the created protocol list.
设置命令所带属性,主要设置该返回信息所属的仿真设备属性)。Set the attributes of the command, mainly to set the attributes of the simulated device to which the returned information belongs).
下一步执行的步骤,即选取下一步执行的步骤。The next step to execute is to select the next step to execute.
经过上述配置后,将新的仿真设备动作会添加进设备动作列表中。用户可以对添加设备动作中的任何一步进行编辑,并且可以在设备动作名称列表、动作条件列表,设备动作列表中删除添加的内容。然后保存仿真设备的动作After the above configuration, the new simulated device action will be added to the device action list. Users can edit any step in adding device actions, and can delete the added content in the device action name list, action condition list, and device action list. Then save the action of the simulated device
在本发明的一个实施例中,将仿真设备的动作以XML文件格式进行保存,从而方便用户的读取。In one embodiment of the present invention, the actions of the simulated device are saved in an XML file format, which is convenient for users to read.
如图11所示,首先需要在DeviceName下拉菜单中选取需要配置的仿真设备。设置与编辑设备动作界面分了2个Page。其中,一个为创建动作名称的ActionManager页面,另一个为设置动作内容的ActionEdit页面。需要先在ActionManager页面创建了动作名称之后再在ActionEdit页面对每个新建动作设置内容。As shown in Figure 11, you first need to select the emulation device to be configured from the DeviceName drop-down menu. The setting and editing device action interface is divided into 2 pages. Among them, one is the ActionManager page for creating the action name, and the other is the ActionEdit page for setting the action content. You need to create the action name on the ActionManager page first, and then set the content for each new action on the ActionEdit page.
首先在ActionManager页面,在ActionName对应的文本框中填入动作名称,然后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击ActionEdit选项进入设置动作内容界面,如图12所示。如果之后需要进行编辑和删除,可以重复上述动作。First, on the ActionManager page, fill in the action name in the text box corresponding to ActionName, and then click Add to enter the list on the right. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click the ActionEdit option to enter the interface for setting action content, as shown in Figure 12. If you need to edit and delete later, you can repeat the above actions.
在ActionEdit界面,第一步,在ActionName对应的下拉菜单中选取之前创建的动作名称。第二步,在CommandName对应的下拉菜单中选取之前创建的命令名称。第三步,在The Number of Steps对应的文本框中填入该动作在接收到指定命令之后,执行的动作类型数量,第四步,需要按顺序对执行的动作类型进行配置,首先在Step No.对应的下拉菜单中,选取在第三步填入的数量所对应的Step进行配置。例如:在第三步中填入3,说明要执行3种类型的动作,则在SepNo.对应的下拉菜单中出现了Step1到Step3。例如选中Step1,则可以在下方对该步骤配置动作类型。第五步,对动作类型进行配置,有5个选项,分别是命令行为Command Behavior,动作条件Condition,延迟等待WaitTime,变化规律VariationalRule和返回信息Return Info。On the ActionEdit interface, in the first step, select the previously created action name from the drop-down menu corresponding to ActionName. In the second step, select the previously created command name in the drop-down menu corresponding to CommandName. Step 3: In the text box corresponding to The Number of Steps, fill in the number of action types to be executed after the action receives the specified command. Step 4: Configure the types of actions to be executed in sequence. .In the corresponding drop-down menu, select the Step corresponding to the quantity filled in the third step to configure. For example: fill in 3 in the third step, indicating that 3 types of actions are to be performed, and Step1 to Step3 appear in the drop-down menu corresponding to SepNo. For example, if Step1 is selected, you can configure the action type for this step below. The fifth step is to configure the action type. There are 5 options, namely Command Behavior, Action Condition, WaitTime, Variational Rule and Return Info.
(1)命令行为Command Behavior(1) The command line is Command Behavior
点击Command Behavior,则是执行将命令中传递过来的参数与之前配置的对应设备属性相对应,即Step3设置与编辑该设备所用通讯协议的命令中的功能。Clicking Command Behavior is to execute the parameter passed in the command to correspond to the corresponding device attribute previously configured, that is, the function in the command of Step3 setting and editing the communication protocol used by the device.
(2)动作条件Condition(2) Action Condition Condition
点击Condition之后,会弹出界面让用户自定义,如图13所示:首先添加判断条件,在Property对应的下拉菜单中选取之前配置的设备属性,在Relationship对应的下拉菜单中选取与后面值的关系(包括大于、小于、等于、大于等于、小于等于5种类型),然后再Value对应的文本框中填入与属性相关的值。例如当压力大于0.5时,则在Property中选取压力,Relationship中选取大于,Value中填入0.5。然后点击Add按钮,将条件判断加入右边列表中。因为判断条件可以同时存在,因此有AND、OR、XOR三种选择。例如当压力大于0.5或温度小于30的时候,在第一个条件设置并Add之后点击OR,并且在此时设置第二个条件,点击Add则完成添加一个完整的条件。After clicking Condition, an interface will pop up for users to customize, as shown in Figure 13: First, add a judgment condition, select the previously configured device property in the drop-down menu corresponding to Property, and select the relationship with the following value in the drop-down menu corresponding to Relationship (Including greater than, less than, equal to, greater than or equal to, less than or equal to 5 types), and then fill in the value related to the attribute in the text box corresponding to Value. For example, when the pressure is greater than 0.5, select pressure in Property, select greater than in Relationship, and fill in 0.5 in Value. Then click the Add button to add the conditional judgment to the list on the right. Because the judgment conditions can exist at the same time, there are three options: AND, OR, and XOR. For example, when the pressure is greater than 0.5 or the temperature is less than 30, click OR after the first condition is set and Add, and set the second condition at this time, click Add to complete adding a complete condition.
然后在添加完一个判断条件之后,需要设置判断之后的执行动作,在Then Step框中,NextStep对应的下拉菜单中选取判断该条件之后的执行动作类型,在Else Step框中,NextStep对应的下拉菜单中选取判断条件之后的另一个执行动作类型(两者允许为空)。例如在压力大于等于0.6这个条件下,满足执行等待的动作,则在Then Step框中,选择3-WaitTime,否则执行返回命令动作,则在Else Step框中,选择5-Return Info。然后点击Add按钮添加进入右边列表,与上方定义的判断条件所对应。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。Then after adding a judgment condition, you need to set the execution action after the judgment. In the Then Step box, select the execution action type after judging the condition from the drop-down menu corresponding to NextStep. In the Else Step box, the drop-down menu corresponding to NextStep Another execution action type after the judgment condition is selected in (both are allowed to be empty). For example, under the condition that the pressure is greater than or equal to 0.6, if the waiting action is satisfied, in the Then Step box, select 3-WaitTime; otherwise, to execute the return command action, in the Else Step box, select 5-Return Info. Then click the Add button to add to the list on the right, corresponding to the judgment conditions defined above. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
(3)延迟等待WaitTime(3) Delay waiting for WaitTime
点击WaitTime之后,会进入等待时间配置界面,如图14所示,在Delay对应的下拉菜单中选取等待的延迟时间大小,其中时间大小由设计方参照实际设备给出选项。配置完成之后点击OK即可返回设备动作配置界面。After clicking WaitTime, you will enter the waiting time configuration interface, as shown in Figure 14, select the waiting delay time in the drop-down menu corresponding to Delay, and the time is given by the designer with reference to the actual device. After the configuration is complete, click OK to return to the device action configuration interface.
(4)变化规律VariationalRule(4) Variational Rule
点击VariationalRule之后,进入变化规律配置界面,如图15所示。在Property下拉选项中选取需要变化的参数名称,在VariationalRule对应的下拉菜单中选取参数的变化规律(例如PID,PI,用户自定义)。其中,图16(a)为变化规律为用户自定义的界面示意图,图16(b)为变化规律为PID的界面示意图,图16(c)为变化规律为PI的界面示意图。配置完成之后点击OK即可返回设备动作配置界面。After clicking VariationalRule, the variation rule configuration interface is entered, as shown in Figure 15. Select the name of the parameter that needs to be changed in the Property drop-down option, and select the variation rule of the parameter (such as PID, PI, user-defined) in the drop-down menu corresponding to VariationalRule. Among them, Fig. 16(a) is a schematic diagram of an interface whose changing rule is user-defined, Fig. 16(b) is a schematic diagram of an interface whose changing rule is PID, and Fig. 16(c) is a schematic diagram of an interface whose changing rule is PI. After the configuration is complete, click OK to return to the device action configuration interface.
(5)返回信息Return Info(5) Return Information Return Info
点击Return Info之后,进入回复信息配置界面,如图17所示,在CommandName对应的下拉菜单中选取之前配置过的设备命令,在ProtocolName对应的下拉菜单中选取之前配置过的协议名称,然后在下方的表格中选取需要返回的参数值。配置完成之后点击OK即可返回设备动作配置界面。After clicking Return Info, enter the reply information configuration interface, as shown in Figure 17, select the previously configured device command in the drop-down menu corresponding to CommandName, select the previously configured protocol name in the drop-down menu corresponding to ProtocolName, and then click below Select the parameter value to be returned from the table. After the configuration is complete, click OK to return to the device action configuration interface.
同理,在对下拉菜单中的所有Step配置之后,点击Add按钮添加进入右边列表,在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。In the same way, after configuring all the Steps in the drop-down menu, click the Add button to add to the list on the right. In the list on the right, you can edit and delete the added options. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
在完成上述动作步骤的配置后,进一步配置与编辑仿真设备内的耦合条件。如图18所示,点击上方工具栏的CouplingCondition选项,选中Edit选项,点击之后进入设置与编辑设备动作界首先添加判断条件,在Property对应的下拉菜单中选取之前配置的设备属性,在Relationship对应的下拉菜单中选取与后面值的关系(包括大于、小于、等于、大于等于、小于等于5种类型),然后再Value对应的文本框中填入与属性相关的值。例如:当压力大于0.5时,则在Property中选取压力,Relationship中选取大于,Value中填入0.5。然后点击Add按钮,将条件判断加入右边列表中。因为判断条件可以同时存在,因此有AND、OR、XOR三种选择。例如当压力大于0.5或温度小于30的时候,在第一个条件设置并Add之后点击OR,并且在此时设置第二个条件,点击Add则完成添加一个完整的条件。After completing the configuration of the above action steps, further configure and edit the coupling conditions in the simulated device. As shown in Figure 18, click the CouplingCondition option on the upper toolbar, select the Edit option, and click to enter the setting and editing device action interface. First, add the judgment condition, select the previously configured device property in the drop-down menu corresponding to Property, and select the device property corresponding to Relationship. Select the relationship with the following value from the drop-down menu (including five types of greater than, less than, equal to, greater than or equal to, and less than or equal to), and then fill in the value related to the attribute in the text box corresponding to Value. For example: when the pressure is greater than 0.5, select pressure in Property, select greater than in Relationship, and fill in 0.5 in Value. Then click the Add button to add the conditional judgment to the list on the right. Because the judgment conditions can exist at the same time, there are three options: AND, OR, and XOR. For example, when the pressure is greater than 0.5 or the temperature is less than 30, click OR after the first condition is set and Add, and set the second condition at this time, click Add to complete adding a complete condition.
然后在添加完一个判断条件之后,需要设置判断之后的执行命令,在SendSelfCommand对应的下拉菜单中选取之前配置完成的Send Self命令。然后点击Add按钮添加进入右边列表,与上方定义的判断条件所对应。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。Then after adding a judgment condition, you need to set the execution command after the judgment, and select the previously configured Send Self command in the drop-down menu corresponding to SendSelfCommand. Then click the Add button to add to the list on the right, corresponding to the judgment conditions defined above. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
在对仿真设备的动作配置完成后,进一步配置仿真设备的通讯端口。具体而言,根据仿真设备的命令,配置与仿真设备的命令对应的物理端口。After the action configuration of the simulated device is completed, further configure the communication port of the simulated device. Specifically, according to the command of the simulated device, the physical port corresponding to the command of the simulated device is configured.
如图19所示,点击Run之后,会弹出一个窗口,在CommandName的下拉菜单中会列出配置时的所有命令名称,在下面的框图中可以填入该命令所对应的物理端口信息。如图20所示,因为该设备的rec命令使用的是TCP/IP协议,所以需要填入TCP/IP的物理端口信息,而c1命令使用的是串口协议,所以只需要填入端口。每设置完一条命令需要点击一次“OK”,当所有命令配置完成之后点击Save即可。As shown in Figure 19, after clicking Run, a window will pop up, and all command names during configuration will be listed in the drop-down menu of CommandName, and the physical port information corresponding to the command can be filled in the following block diagram. As shown in Figure 20, since the rec command of the device uses the TCP/IP protocol, it is necessary to fill in the physical port information of TCP/IP, while the c1 command uses the serial port protocol, so only the port needs to be filled in. After setting a command, you need to click "OK" once, and click Save when all the command configurations are completed.
在完成上述对仿真设备的配置后,将配置完成的仿真设备添加到原型器件库中,从而完成对原型器件库的配置。After the above configuration of the simulation device is completed, the configured simulation device is added to the prototype device library, thereby completing the configuration of the prototype device library.
S102:保存原型器件库。S102: Save the prototype device library.
在步骤102中对原型器件库配置完成的基础上,保存上述原型器件库。After the prototype device library is configured in step 102, the above prototype device library is saved.
在本发明的一个实施例中,原型器件库可以通过XML格式进行保存。In an embodiment of the present invention, the prototype device library can be saved in XML format.
S103:接收仿真控制命令,并根据仿真控制命令控制原型器件库执行相应的仿真动作。S103: Receive a simulation control command, and control the prototype device library to perform corresponding simulation actions according to the simulation control command.
图21示出了控制原型器件库执行仿真的流程图。如图21所示,首先,接收来自外部的仿真控制命令,根据接收到仿真控制命令,选取原型器件库内相应的仿真设备。然后检查仿真设备内的工作端口是否冲突。Figure 21 shows a flow chart for controlling the execution of a simulation by a library of prototype devices. As shown in Fig. 21, firstly, the simulation control command from the outside is received, and the corresponding simulation device in the prototype device library is selected according to the received simulation control command. Then check for conflicting working ports within the emulated device.
如果仿真设备的工作端口无冲突,则将仿真控制命令通过通信管理接口发送到相应的仿真设备;否则结束仿真。If the working port of the simulated device has no conflict, the simulation control command is sent to the corresponding simulated device through the communication management interface; otherwise, the simulation is terminated.
具体而言,当仿真设备的工作端口无冲突时,仿真设备开始运行,将仿真设备的参数读取到哈希表中,并将仿真设备的工作端口进行初始化。初始化后,将接收到的仿真控制命令与相应的工作端口绑定。根据控制命令触发事件进行相应的耦合动作处理,解析数据执行耦合动作,直至所有的控制命令均已完成,则结束仿真。Specifically, when the working port of the simulated device has no conflict, the simulated device starts to run, reads the parameters of the simulated device into the hash table, and initializes the working port of the simulated device. After initialization, bind the received simulation control command with the corresponding working port. According to the trigger event of the control command, the corresponding coupling action processing is performed, and the coupling action is executed by analyzing the data until all the control commands are completed, then the simulation ends.
当图20配置通讯端口正确之后点击Save,会弹出一个窗口提示用户已经启动设备,运行界面如图22所示。启动后就可以接收和发送命令并执行相关动作了,同时在右边的表格中会列出该设备配置的所有参数信息,能够做到及时刷新这些参数状态。同样,如果需要停止或者退出该设备运行,点击右键的相关菜单即可。When the configuration of the communication port in Figure 20 is correct, click Save, and a window will pop up to prompt the user that the device has been started, and the running interface is shown in Figure 22. After starting, you can receive and send commands and perform related actions. At the same time, all parameter information configured by the device will be listed in the table on the right, and the status of these parameters can be refreshed in time. Similarly, if you need to stop or exit the device, just click the relevant menu on the right button.
原型器件库的仿真设备运行仿真主要完成设备的动态仿真功能。仿真设备接收到数据并执行相应的动作,改变设备的参数值,系统界面以表格的形式动态显示设备的参数值。The simulation equipment operation simulation of the prototype device library mainly completes the dynamic simulation function of the equipment. The simulated device receives the data and performs corresponding actions to change the parameter value of the device, and the system interface dynamically displays the parameter value of the device in the form of a table.
根据本发明实施例的原型器件库的构建及管理方法,可根据仿真需求,配置成需要仿真的相关设备。原型器件库经过配置后可适用于面向装备控制软件测试的不同制造装备的仿真器件,并且可以根据不同项目中对硬件的使用方法的不同,灵活配置原型器件库的属性,满足不同的项目需求。The construction and management method of the prototype device library according to the embodiment of the present invention can be configured as related equipment that needs to be simulated according to the simulation requirements. After configuration, the prototype device library can be applied to the simulation devices of different manufacturing equipment for equipment control software testing, and the properties of the prototype device library can be flexibly configured according to the different methods of using the hardware in different projects to meet different project requirements.
本发明实施例还提出了一种原型器件库的构建及管理装置。如图23所示,该装置100包括配置模块110、保存模块120和控制模块130。The embodiment of the present invention also proposes a device for constructing and managing a prototype device library. As shown in FIG. 23 , the
配置模块110首先创建原型器件库,并配置原型器件库的参数。其中,原型器件库包括多个仿真设备,因此配置模块110首先要创建仿真设备。The
本发明实施例的原型器件库的构建及管理装置100还包括用户界面模块140。该用户界面模块140可以输入配置模块110、保存模块120和控制模块130执行过程的参数,并以界面形式显示执行结果。The
结合图6和图7所示,配置模块110首先创建仿真设备的名称,如图6所示,在DeviceName对应的文本框中填入创建的设备名称。在DeviceType对应的文本框中填入该设备所属的设备类型,最后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除,如图7所示。由此,配置模块110通过创建仿真设备,从而完成创建原型器件库。As shown in FIG. 6 and FIG. 7 , the
在创建原型器件库后,配置模块110对上述原型器件库的参数进行配置。即对原型器件库中的仿真设备的参数进行配置。其中,仿真设备的参数包括:仿真设备的属性、仿真设备的命令、仿真设备的动作和仿真设备的通讯端口。After the prototype device library is created, the
(1)配置仿真设备的属性(1) Configure the properties of the simulated device
其中,仿真设备的属性包括属性名称和属性类型。其中,属性类型,例如int,string等。如图8所示,首先,根据创建的设备列表选取需要配置属性的仿真设备。在选取仿真设备之后,添加仿真设备属性。新的仿真设备属性会添加进仿真设备属性列表中。结合图9所示,在本发明的一个实施例中,仿真设备的属性除属性名称和属性类型还可以包括属性最大值、属性最小值和属性默认初始值。在PropertyName对应的文本框中填入设备的属性名称,在PropertyType对应的下拉菜单中选取该属性的类型。例如:布尔类型,数值类型等。然后在下方的文本框中按对应的文字提示填入该属性的最大值,最小值和默认初始值。当属性默认初始值不存在时,该值可以为空。最后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。具体而言,创建完成之后可以对仿真设备的属性中的任何一项进行编辑,并且可以在设备属性列表中删除添加的仿真设备的属性。Wherein, the attributes of the simulated device include attribute names and attribute types. Among them, the attribute type, such as int, string, etc. As shown in FIG. 8 , first, select the simulated device whose properties need to be configured according to the created device list. After selecting the simulated device, add the simulated device property. The new emulated device property is added to the list of emulated device properties. As shown in FIG. 9 , in an embodiment of the present invention, the attributes of the simulated device may include attribute maximum values, attribute minimum values, and attribute default initial values in addition to attribute names and attribute types. Fill in the property name of the device in the text box corresponding to PropertyName, and select the property type from the drop-down menu corresponding to PropertyType. For example: Boolean type, numeric type, etc. Then fill in the maximum value, minimum value and default initial value of the attribute in the text box below according to the corresponding text prompt. When the default initial value of the attribute does not exist, the value can be empty. Finally, click Add to add to the list on the right. In the list on the right, the added options can be edited and deleted. Specifically, after the creation is complete, any item in the properties of the simulated device can be edited, and the added property of the simulated device can be deleted in the device property list.
配置模块110配置完成之后点击Save即可返回仿真设备配置管理界面。如果之后需要进行编辑和删除,可以重复上述动作。After the
在本发明的一个实施例中,将仿真设备的属性以XML文件格式进行保存,从而方便用户的读取。In one embodiment of the present invention, the properties of the simulated device are saved in XML file format, so as to be convenient for users to read.
(2)配置仿真设备的命令(2) Commands to configure emulated devices
首先,配置模块110选取需要配置命令的仿真设备。在选取仿真设备之后,配置仿真设备的命令。其中,仿真设备的命令包括:命令名称、命令传递方向和命令内容。其中,命令传递方向包括:由仿真设备发送命令给其他设备、仿真设备接收来自其他设备的命令、仿真设备发送命令给自身和返回信息。First, the
在配置完命令传递方向后,进一步配置命令内容。由于每条命令对应一种协议格式,因此,命令内容包括协议名称、协议地址范围、协议地址、命令说明、命令属性个数和命令的设备属性。其中,对于协议名称,由于协议跟随命令,一个命令对应一种协议格式,因此协议名称可以选取配置协议时创建的各种协议。对于协议地址范围,当协议为串口和TCP/IP协议时,由于协议层对该两类协议自我封装了协议格式,有可能出现多段String类型的协议字段,需要指定该命令的字段属于哪一段String字段。After configuring the command delivery direction, further configure the command content. Since each command corresponds to a protocol format, the command content includes protocol name, protocol address range, protocol address, command description, command attribute number and command device attribute. Among them, for the protocol name, because the protocol follows the command, and a command corresponds to a protocol format, the protocol name can select various protocols created when configuring the protocol. For the protocol address range, when the protocol is serial port and TCP/IP protocol, since the protocol layer self-encapsulates the protocol format for the two types of protocols, there may be multiple string-type protocol fields, and you need to specify which string the field of the command belongs to field.
协议地址指定命令发送的物理地址或端口号,命令说明是对命令的文字解释。命令属性个数表示命令中包括的仿真设备的属性个数。命令的设备属性是对该命令中所带设备属性进行指定,例如:命令中包括3个设备属性,分别指定3个设备的属性。The protocol address specifies the physical address or port number to send the command, and the command description is the text explanation of the command. The number of attributes of the command indicates the number of attributes of the simulated device included in the command. The device attribute of the command is to specify the device attributes included in the command. For example, the command includes 3 device attributes, and the 3 device attributes are specified respectively.
配置模块110将创建完成的仿真设备的命令添加到仿真设备命令列表中,之后可以对命令中任何一项进行编辑,并且可以在设备命令列表中删除该仿真设备的命令。然后保存仿真设备的命令。The
在本发明的一个实施例中,将仿真设备的命令以XML文件格式进行保存,从而方便用户的读取。In an embodiment of the present invention, the command of the simulated device is saved in an XML file format, so that it is convenient for the user to read.
如图10所示,首先需要在DeviceName下拉菜单中选取需要配置的设备。第一步,在CommandName对应的文本框中填入设置的命令名称,在CommandDirection对应的下拉菜单中选择该命令的发送方向,然后再CommandNote里面填入该命令的一个简单说明。第二步,在ProtocolName下拉选项中选取该命令需要使用的协议名称。第三步,需要确认该条命令中所带参数对应的设备属性。在ParameterNumber对应的文本框中填入该命令所带的参数数量,填写确定之后点击OK即可,然后在下方的表格中会自动生成填入的数字数量的列,每一列代表一个参数,然后在每一个参数的下方会有一个下拉菜单选项,选项为之前配置的所有属性名称,选择所对应的属性名称之后,点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备配置管理界面。如果之后需要进行编辑和删除,可以重复上述动作。As shown in Figure 10, you first need to select the device to be configured from the DeviceName drop-down menu. The first step is to fill in the set command name in the text box corresponding to CommandName, select the sending direction of the command in the drop-down menu corresponding to CommandDirection, and then fill in a brief description of the command in CommandNote. In the second step, select the protocol name to be used by the command in the ProtocolName drop-down option. The third step is to confirm the device attributes corresponding to the parameters in the command. Fill in the number of parameters of the command in the text box corresponding to ParameterNumber, and click OK after filling in the confirmation, and then a column of the number of numbers filled in will be automatically generated in the table below, each column represents a parameter, and then in There will be a drop-down menu option under each parameter. The options are all the attribute names configured before. After selecting the corresponding attribute name, click Add to add to the list on the right. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device configuration management interface. If you need to edit and delete later, you can repeat the above actions.
(3)配置仿真设备的动作(3) Configure the action of the simulated device
首先,配置模块110配置仿真设备的动作名称,然后将动作名称的添加到动作列表中。根据已创建的动作列表,选择需要配置的仿真设备的动作。First, the
从上述已配置的仿真设备命令中,配置模块110选取与仿真设备动作相耦合的仿真设备命令。仿真设备只有在接收到相关仿真设备命令后,才能执行相应的仿真动作。其中,仿真设备命令包括了发送给自身的用来触发仿真设备内的耦合行为。From the above configured simulated device commands, the
配置模块110在配置完仿真设备的命令后,进一步配置仿真设备动作的步骤数目以及每一步的动作类型。其中,仿真设备动作可以细分为很多步骤,每一步可对应一个设备动作类型。每个仿真设备动作可分为每一个步骤来执行。After configuring the commands of the simulated device, the
其中,仿真设备动作类型分为5类,包括:命令行为、动作条件、延迟等待、变化规律、返回信息。Among them, the simulation device action types are divided into 5 categories, including: command behavior, action conditions, delay waiting, change rules, and return information.
(1)配置命令行为:该仿真设备动作类型是在配置仿真设备命令时,对指定的仿真命令所带仿真设备的属性赋值。(1) Behavior of the configuration command: the action type of the simulation device is to assign values to the attributes of the simulation device carried by the specified simulation command when configuring the simulation device command.
(2)配置动作条件:该仿真设备动作类型是判断设备属性达到什么要求的时候执行下一步骤,判断的条件可以组合,判断之后的行为分为then和else。例如:设备MFC的流速大于1000时,执行步骤2,否则执行步骤3。配置内容包括:设备属性、条件判断(<,>,==,<=,=>)、属性值和逻辑关系。(2) Configure action conditions: The action type of the simulated device is to execute the next step when judging that the device attributes meet the requirements. The judging conditions can be combined, and the behavior after judging is divided into then and else. For example: when the flow rate of the device MFC is greater than 1000, go to
其中,设备属性可以根据创建的设备属性列表来选取。属性值需要由用户指定。逻辑关系可以为和、或、异或。可以将很多条件判断组合成一种条件判断。新的动作条件添加进动作条件列表。Among them, the device attribute can be selected according to the created device attribute list. Attribute values need to be specified by the user. The logical relationship can be AND, OR, XOR. Many conditional judgments can be combined into one conditional judgment. A new action condition is added to the action condition list.
(3)配置延迟等待:该仿真设备动作类型为执行动作等待相应时间。配置的内容包括:等待时间,即需要执行等待多长时间,单位为ms;下一步执行的步骤,即选取下一步执行的步骤。(3) Configuration delay waiting: The action type of the simulated device is to execute actions and wait for the corresponding time. The content of the configuration includes: waiting time, that is, how long the execution needs to wait, and the unit is ms; the next step to be executed, that is, the step to be executed next.
(4)配置变化规律:该仿真设备动作类型指定仿真设备属性的变化规律。配置的内容包括:设备属性、变化规律、自定义彪悍规律接口、下一步执行的步骤。(4) Configuration change rule: the action type of the simulated device specifies the change rule of the simulated device attribute. The content of the configuration includes: device attributes, change rules, user-defined sturdy rule interfaces, and the next steps to be executed.
其中,设备属性根据创建的设备属性列表选取。Among them, the device attribute is selected according to the created device attribute list.
变化规律可以预先指定,用户根据仿真要求进行选取。变化规律包括PID、PI、PD和自定义四个选项。The change rule can be specified in advance, and the user can select it according to the simulation requirements. The change rule includes four options: PID, PI, PD and custom.
自定义变化规律接口,通过该接口由用户自己定义属性的变化规律。User-defined change rule interface, through which the user can define the change rule of attributes.
下一步执行的步骤,即选取下一步执行的步骤。The next step to execute is to select the next step to execute.
(5)配置返回信息:该仿真设备动作类型指定仿真设备给控制端的返回信息。配置的内容包括:命令名称、协议名称、设置命令所属的属性和下一步执行的步骤。(5) Configuration return information: the simulated device action type specifies the returned information from the simulated device to the control terminal. The content of the configuration includes: command name, protocol name, attributes of the set command and the steps to be executed next.
其中,命令名称可以根据创建的仿真设备命令列表中返回类型里选取。Among them, the command name can be selected according to the return type in the created simulation device command list.
协议名称,其含义与配置命令相同,可以根据创建的协议列表选取。The protocol name has the same meaning as the configuration command, which can be selected according to the created protocol list.
设置命令所带属性,主要设置该返回信息所属的仿真设备属性)。Set the attributes of the command, mainly to set the attributes of the simulated device to which the returned information belongs).
下一步执行的步骤,即选取下一步执行的步骤。The next step to execute is to select the next step to execute.
经过上述配置后,配置模块110将新的仿真设备动作会添加进设备动作列表中。用户可以对添加设备动作中的任何一步进行编辑,并且可以在设备动作名称列表、动作条件列表,设备动作列表中删除添加的内容。然后保存仿真设备的动作After the above configuration, the
在本发明的一个实施例中,将仿真设备的动作以XML文件格式进行保存,从而方便用户的读取。In one embodiment of the present invention, the actions of the simulated device are saved in an XML file format, which is convenient for users to read.
如图11所示,首先需要在DeviceName下拉菜单中选取需要配置的仿真设备。设置与编辑设备动作界面分了2个Page。其中,一个为创建动作名称的ActionManager页面,另一个为设置动作内容的ActionEdit页面。需要先在ActionManager页面创建了动作名称之后再在ActionEdit页面对每个新建动作设置内容。As shown in Figure 11, you first need to select the emulation device to be configured from the DeviceName drop-down menu. The setting and editing device action interface is divided into 2 pages. Among them, one is the ActionManager page for creating the action name, and the other is the ActionEdit page for setting the action content. You need to create the action name on the ActionManager page first, and then set the content for each new action on the ActionEdit page.
首先在ActionManager页面,在ActionName对应的文本框中填入动作名称,然后点击Add添加进入右边的列表。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击ActionEdit选项进入设置动作内容界面,如图12所示。如果之后需要进行编辑和删除,可以重复上述动作。First, on the ActionManager page, fill in the action name in the text box corresponding to ActionName, and then click Add to enter the list on the right. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click the ActionEdit option to enter the interface for setting action content, as shown in Figure 12. If you need to edit and delete later, you can repeat the above actions.
在ActionEdit界面,第一步,在ActionName对应的下拉菜单中选取之前创建的动作名称。第二步,在CommandName对应的下拉菜单中选取之前创建的命令名称。第三步,在The Number of Steps对应的文本框中填入该动作在接收到指定命令之后,执行的动作类型数量,第四步,需要按顺序对执行的动作类型进行配置,首先在Step No.对应的下拉菜单中,选取在第三步填入的数量所对应的Step进行配置。例如:在第三步中填入3,说明要执行3种类型的动作,则在SepNo.对应的下拉菜单中出现了Step1到Step3。例如选中Step1,则可以在下方对该步骤配置动作类型。第五步,对动作类型进行配置,有5个选项,分别是命令行为Command Behavior,动作条件Condition,延迟等待WaitTime,变化规律VariationalRule和返回信息Return Info。On the ActionEdit interface, in the first step, select the previously created action name from the drop-down menu corresponding to ActionName. In the second step, select the previously created command name in the drop-down menu corresponding to CommandName. Step 3: In the text box corresponding to The Number of Steps, fill in the number of action types to be executed after the action receives the specified command. Step 4: Configure the types of actions to be executed in sequence. .In the corresponding drop-down menu, select the Step corresponding to the quantity filled in the third step to configure. For example: fill in 3 in the third step, indicating that 3 types of actions are to be performed, and Step1 to Step3 appear in the drop-down menu corresponding to SepNo. For example, if Step1 is selected, you can configure the action type for this step below. The fifth step is to configure the action type. There are 5 options, namely Command Behavior, Action Condition, WaitTime, Variational Rule and Return Info.
(1)命令行为Command Behavior(1) The command line is Command Behavior
点击Command Behavior,则是执行将命令中传递过来的参数与之前配置的对应设备属性相对应,即Step3设置与编辑该设备所用通讯协议的命令中的功能。Clicking Command Behavior is to execute the parameter passed in the command to correspond to the corresponding device attribute previously configured, that is, the function in the command of Step3 setting and editing the communication protocol used by the device.
(2)动作条件Condition(2) Action Condition Condition
点击Condition之后,会弹出界面让用户自定义,如图13所示:首先添加判断条件,在Property对应的下拉菜单中选取之前配置的设备属性,在Relationship对应的下拉菜单中选取与后面值的关系(包括大于、小于、等于、大于等于、小于等于5种类型),然后再Value对应的文本框中填入与属性相关的值。例如当压力大于0.5时,则在Property中选取压力,Relationship中选取大于,Value中填入0.5。然后点击Add按钮,将条件判断加入右边列表中。因为判断条件可以同时存在,因此有AND、OR、XOR三种选择。例如当压力大于0.5或温度小于30的时候,在第一个条件设置并Add之后点击OR,并且在此时设置第二个条件,点击Add则完成添加一个完整的条件。After clicking Condition, an interface will pop up for users to customize, as shown in Figure 13: First, add a judgment condition, select the previously configured device property in the drop-down menu corresponding to Property, and select the relationship with the following value in the drop-down menu corresponding to Relationship (Including greater than, less than, equal to, greater than or equal to, less than or equal to 5 types), and then fill in the value related to the attribute in the text box corresponding to Value. For example, when the pressure is greater than 0.5, select pressure in Property, select greater than in Relationship, and fill in 0.5 in Value. Then click the Add button to add the conditional judgment to the list on the right. Because the judgment conditions can exist at the same time, there are three options: AND, OR, and XOR. For example, when the pressure is greater than 0.5 or the temperature is less than 30, click OR after the first condition is set and Add, and set the second condition at this time, click Add to complete adding a complete condition.
然后在添加完一个判断条件之后,需要设置判断之后的执行动作,在Then Step框中,NextStep对应的下拉菜单中选取判断该条件之后的执行动作类型,在Else Step框中,NextStep对应的下拉菜单中选取判断条件之后的另一个执行动作类型(两者允许为空)。例如在压力大于等于0.6这个条件下,满足执行等待的动作,则在Then Step框中,选择3-WaitTime,否则执行返回命令动作,则在Else Step框中,选择5-Return Info。然后点击Add按钮添加进入右边列表,与上方定义的判断条件所对应。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。Then after adding a judgment condition, you need to set the execution action after the judgment. In the Then Step box, select the execution action type after judging the condition from the drop-down menu corresponding to NextStep. In the Else Step box, the drop-down menu corresponding to NextStep Another execution action type after the judgment condition is selected in (both are allowed to be empty). For example, under the condition that the pressure is greater than or equal to 0.6, if the waiting action is satisfied, in the Then Step box, select 3-WaitTime; otherwise, to execute the return command action, in the Else Step box, select 5-Return Info. Then click the Add button to add to the list on the right, corresponding to the judgment conditions defined above. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
(3)延迟等待WaitTime(3) Delay waiting for WaitTime
点击WaitTime之后,会进入等待时间配置界面,如图14所示,在Delay对应的下拉菜单中选取等待的延迟时间大小,其中时间大小由设计方参照实际设备给出选项。配置完成之后点击OK即可返回设备动作配置界面。After clicking WaitTime, you will enter the waiting time configuration interface, as shown in Figure 14, select the waiting delay time in the drop-down menu corresponding to Delay, where the time is given by the designer with reference to the actual device. After the configuration is complete, click OK to return to the device action configuration interface.
(4)变化规律VariationalRule(4) Variational Rule
点击VariationalRule之后,进入变化规律配置界面,如图15所示。在Property下拉选项中选取需要变化的参数名称,在VariationalRule对应的下拉菜单中选取参数的变化规律(例如PID,PI,用户自定义)。其中,图16(a)为变化规律为用户自定义的界面示意图,图16(b)为变化规律为PID的界面示意图,图16(c)为变化规律为PI的界面示意图。配置完成之后点击OK即可返回设备动作配置界面。After clicking VariationalRule, the variation rule configuration interface is entered, as shown in Figure 15. Select the name of the parameter that needs to be changed in the Property drop-down option, and select the variation rule of the parameter (such as PID, PI, user-defined) in the drop-down menu corresponding to VariationalRule. Among them, Fig. 16(a) is a schematic diagram of an interface whose changing rule is user-defined, Fig. 16(b) is a schematic diagram of an interface whose changing rule is PID, and Fig. 16(c) is a schematic diagram of an interface whose changing rule is PI. After the configuration is complete, click OK to return to the device action configuration interface.
(5)返回信息Return Info(5) Return Information Return Info
点击Return Info之后,进入回复信息配置界面,如图17所示,在CommandName对应的下拉菜单中选取之前配置过的设备命令,在ProtocolName对应的下拉菜单中选取之前配置过的协议名称,然后在下方的表格中选取需要返回的参数值。配置完成之后点击OK即可返回设备动作配置界面。After clicking Return Info, enter the reply information configuration interface, as shown in Figure 17, select the previously configured device command in the drop-down menu corresponding to CommandName, select the previously configured protocol name in the drop-down menu corresponding to ProtocolName, and then click below Select the parameter value to be returned from the table. After the configuration is complete, click OK to return to the device action configuration interface.
同理,在对下拉菜单中的所有Step配置之后,点击Add按钮添加进入右边列表,在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。In the same way, after configuring all the Steps in the drop-down menu, click the Add button to add to the list on the right. In the list on the right, you can edit and delete the added options. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
在完成上述动作步骤的配置后,配置模块110进一步配置与编辑仿真设备内的耦合条件。如图18所示,点击上方工具栏的CouplingCondition选项,选中Edit选项,点击之后进入设置与编辑设备动作界首先添加判断条件,在Property对应的下拉菜单中选取之前配置的设备属性,在Relationship对应的下拉菜单中选取与后面值的关系(包括大于、小于、等于、大于等于、小于等于5种类型),然后再Value对应的文本框中填入与属性相关的值。例如:当压力大于0.5时,则在Property中选取压力,Relationship中选取大于,Value中填入0.5。然后点击Add按钮,将条件判断加入右边列表中。因为判断条件可以同时存在,因此有AND、OR、XOR三种选择。例如当压力大于0.5或温度小于30的时候,在第一个条件设置并Add之后点击OR,并且在此时设置第二个条件,点击Add则完成添加一个完整的条件。After completing the configuration of the above action steps, the
然后在添加完一个判断条件之后,需要设置判断之后的执行命令,在SendSelfCommand对应的下拉菜单中选取之前配置完成的Send Self命令。然后点击Add按钮添加进入右边列表,与上方定义的判断条件所对应。在右边的列表中,可以对添加的选项进行编辑和删除。配置完成之后点击OK即可返回设备动作配置界面。如果之后需要进行编辑和删除,可以重复上述动作。Then after adding a judgment condition, you need to set the execution command after the judgment, and select the previously configured Send Self command in the drop-down menu corresponding to SendSelfCommand. Then click the Add button to add to the list on the right, corresponding to the judgment conditions defined above. In the list on the right, the added options can be edited and deleted. After the configuration is complete, click OK to return to the device action configuration interface. If you need to edit and delete later, you can repeat the above actions.
在对仿真设备的动作配置完成后,进一步配置仿真设备的通讯端口。具体而言,根据仿真设备的命令,配置与仿真设备的命令对应的物理端口。After the action configuration of the simulated device is completed, further configure the communication port of the simulated device. Specifically, according to the command of the simulated device, the physical port corresponding to the command of the simulated device is configured.
如图19所示,点击Run之后,会弹出一个窗口,在CommandName的下拉菜单中会列出配置时的所有命令名称,在下面的框图中可以填入该命令所对应的物理端口信息。如图20所示,因为该设备的rec命令使用的是TCP/IP协议,所以需要填入TCP/IP的物理端口信息,而c1命令使用的是串口协议,所以只需要填入端口。每设置完一条命令需要点击一次“OK”,当所有命令配置完成之后点击Save即可。As shown in Figure 19, after clicking Run, a window will pop up, and all command names during configuration will be listed in the drop-down menu of CommandName, and the physical port information corresponding to the command can be filled in the following block diagram. As shown in Figure 20, since the rec command of the device uses the TCP/IP protocol, it is necessary to fill in the physical port information of TCP/IP, while the c1 command uses the serial port protocol, so only the port needs to be filled in. After setting a command, you need to click "OK" once, and click Save when all the command configurations are completed.
在完成上述对仿真设备的配置后,配置模块100将配置完成的仿真设备添加到原型器件库中,从而完成对原型器件库的配置。After the above configuration of the simulation device is completed, the
在配置模块110对原型器件库配置完成的基础上,由保存模块120保存上述原型器件库。After the
在本发明的一个实施例中,保存模块120以XML格式保存原型器件库。In one embodiment of the present invention, the saving
控制模块130接收仿真控制命令,并根据仿真控制命令控制原型器件库执行相应的仿真动作。The
如图21所示,首先,控制模块130接收来自外部的仿真控制命令,根据接收到仿真控制命令,选取原型器件库内相应的仿真设备。然后检查仿真设备内的工作端口是否冲突。As shown in FIG. 21 , first, the
如果仿真设备的工作端口无冲突,控制模块130则将仿真控制命令通过通信管理接口发送到相应的仿真设备;否则结束仿真。If there is no conflict between the working ports of the simulation device, the
具体而言,当仿真设备的工作端口无冲突时,控制模块130控制仿真设备开始运行,将仿真设备的参数读取到哈希表中,并将仿真设备的工作端口进行初始化。初始化后,将接收到的仿真控制命令与相应的工作端口绑定。根据控制命令触发事件进行相应的耦合动作处理,解析数据执行耦合动作,直至所有的控制命令均已完成,则结束仿真。Specifically, when there is no conflict between the working port of the simulated device, the
当图20配置通讯端口正确之后点击Save,会弹出一个窗口提示用户已经启动设备,运行界面如图22所示。启动后就可以接收和发送命令并执行相关动作了,同时在右边的表格中会列出该设备配置的所有参数信息,能够做到及时刷新这些参数状态。同样,如果需要停止或者退出该设备运行,点击右键的相关菜单即可。When the configuration of the communication port in Figure 20 is correct, click Save, and a window will pop up to prompt the user that the device has been started, and the running interface is shown in Figure 22. After starting, you can receive and send commands and perform related actions. At the same time, all parameter information configured by the device will be listed in the table on the right, and the status of these parameters can be refreshed in time. Similarly, if you need to stop or exit the device, just click the relevant menu on the right button.
原型器件库的仿真设备运行仿真主要完成设备的动态仿真功能。仿真设备接收到数据并执行相应的动作,改变设备的参数值,系统界面以表格的形式动态显示设备的参数值。The simulation equipment operation simulation of the prototype device library mainly completes the dynamic simulation function of the equipment. The simulated device receives the data and performs corresponding actions to change the parameter value of the device, and the system interface dynamically displays the parameter value of the device in the form of a table.
根据本发明实施例的原型器件库的构建及管理装置,可根据仿真需求,配置成需要仿真的相关设备。原型器件库经过配置后可适用于面向装备控制软件测试的不同制造装备的仿真器件,并且可以根据不同项目中对硬件的使用方法的不同,灵活配置原型器件库的属性,满足不同的项目需求。The device for constructing and managing a prototype device library according to an embodiment of the present invention can be configured as a related device that needs to be simulated according to a simulation requirement. After configuration, the prototype device library can be applied to the simulation devices of different manufacturing equipment for equipment control software testing, and the properties of the prototype device library can be flexibly configured according to the different methods of using the hardware in different projects to meet different project requirements.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.
Claims (7)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010288676A CN101957878B (en) | 2010-09-21 | 2010-09-21 | Method and device for constructing and managing prototype device library |
PCT/CN2011/071276 WO2012037796A1 (en) | 2010-09-21 | 2011-02-24 | Simulation platform for integrated circuit manufacturing equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010288676A CN101957878B (en) | 2010-09-21 | 2010-09-21 | Method and device for constructing and managing prototype device library |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101957878A CN101957878A (en) | 2011-01-26 |
CN101957878B true CN101957878B (en) | 2012-10-10 |
Family
ID=43485206
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010288676A Active CN101957878B (en) | 2010-09-21 | 2010-09-21 | Method and device for constructing and managing prototype device library |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101957878B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012037796A1 (en) * | 2010-09-21 | 2012-03-29 | 清华大学 | Simulation platform for integrated circuit manufacturing equipment |
CN102331763A (en) * | 2011-08-02 | 2012-01-25 | 成都海视特科技有限公司 | Method for generating and executing command for process control system |
KR101653797B1 (en) * | 2016-04-15 | 2016-09-09 | 스튜디오씨드코리아 주식회사 | Method for prototyping Graphic User Interface and Apparatus thereof |
CN106019120B (en) * | 2016-05-12 | 2018-12-04 | 中国电子科技集团公司第四十一研究所 | Test and management method based on expansible device detection library |
WO2022010871A1 (en) | 2020-07-06 | 2022-01-13 | Grokit Data, Inc. | Automation system and method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344898A (en) * | 2007-07-11 | 2009-01-14 | 恩益禧电子股份有限公司 | Production method, design method and design system for semiconductor integrated circuit |
CN101539958A (en) * | 2008-03-18 | 2009-09-23 | 北京芯慧同用微电子技术有限责任公司 | Method and device for designing standard cell library and integrated circuit |
-
2010
- 2010-09-21 CN CN201010288676A patent/CN101957878B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344898A (en) * | 2007-07-11 | 2009-01-14 | 恩益禧电子股份有限公司 | Production method, design method and design system for semiconductor integrated circuit |
CN101539958A (en) * | 2008-03-18 | 2009-09-23 | 北京芯慧同用微电子技术有限责任公司 | Method and device for designing standard cell library and integrated circuit |
Also Published As
Publication number | Publication date |
---|---|
CN101957878A (en) | 2011-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104932364B (en) | The OPC UA conversion equipments and method of a kind of Modbus communications protocol | |
CN101894192B (en) | Simulation and demonstration system for design and validation of AFDX (Avionics Full Duplex Switched Ethernet) network and simulation and demonstration method thereof | |
CN100481001C (en) | Interface automatic forming method and interface automatic forming system | |
CN101957878B (en) | Method and device for constructing and managing prototype device library | |
CN109951315A (en) | A kind of method and system realizing YANG model and being mapped to internal model | |
CN104657149A (en) | Software framework implementation method of management module of storage system | |
CN109933018A (en) | A Dynamically Reconfigurable Production Line Control System Based on Service Composition | |
CN109840074A (en) | A kind of business generating method, device and the network equipment | |
CN115051927B (en) | Data network development method and system | |
CN102736926B (en) | The upgrade method of a kind of task based access control template and device, batch upgrading system | |
CN112558930B (en) | Software generation system and method for container service | |
CN118034673B (en) | Visual editing generation and dynamic analysis system for equipment model of Internet of things | |
CN101957851B (en) | Method and device for storing and managing configuration data of simulation system | |
CN103914286A (en) | Management method and manager for tab page in user interface | |
CN112559264B (en) | Simulation test method for realizing FPGA (field programmable Gate array) universal serial port by verification platform based on UVM (Universal verification Module) | |
CN101937361A (en) | Method and device for constructing and managing a simulation subsystem | |
CN117978648A (en) | IEC 61499-based dynamic reconfigurable configuration method | |
CN114911715B (en) | A formal test model modeling method, system, computer and storage medium | |
CN116595755A (en) | A method for dynamic integration of multidisciplinary software in heterogeneous systems | |
CN103905455A (en) | Communication protocol platform and access method thereof | |
CN111274750B (en) | FPGA simulation verification system and method based on visual modeling | |
CN111988179B (en) | A YANG model management system, method and storage medium | |
CN118192371B (en) | Management and control method of modeled Internet of things equipment | |
CN105095010A (en) | Public information model function verification method and system aiming at storage equipment | |
CN111767240B (en) | Automatic construction method of serial communication protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |