CN110531977B - Instrument automatic control method, device, computer equipment and storage medium - Google Patents

Instrument automatic control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110531977B
CN110531977B CN201910831617.0A CN201910831617A CN110531977B CN 110531977 B CN110531977 B CN 110531977B CN 201910831617 A CN201910831617 A CN 201910831617A CN 110531977 B CN110531977 B CN 110531977B
Authority
CN
China
Prior art keywords
data
flow
steps
instrument
modification
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
Application number
CN201910831617.0A
Other languages
Chinese (zh)
Other versions
CN110531977A (en
Inventor
高晨燕
王光亮
祝亮
何凡
王晓炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hong Kong Dade Changlong Biotechnology Co ltd
Original Assignee
Hong Kong Dade Changlong Biotechnology Co ltd
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 Hong Kong Dade Changlong Biotechnology Co ltd filed Critical Hong Kong Dade Changlong Biotechnology Co ltd
Priority to CN201910831617.0A priority Critical patent/CN110531977B/en
Publication of CN110531977A publication Critical patent/CN110531977A/en
Application granted granted Critical
Publication of CN110531977B publication Critical patent/CN110531977B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to an automatic control method, a device, a computer device, a readable storage medium and an instrument, wherein the method comprises the following steps: when flow data for automatically controlling an instrument is obtained, the flow data is displayed on a flow editing page in a flow chart mode; acquiring step modification data for the flow data; constructing new flow data according to the flow data and the step modification data; generating a script file for controlling the instrument according to the new flow data; when the script file is called, the new flow data is executed according to the operation steps defined by the script file, so that the control of the instrument is realized, the computer program of the instrument is not required to be redeveloped, and the working efficiency is improved.

Description

仪器的自动化控制方法、装置、计算机设备和存储介质Instrument automatic control method, device, computer equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种仪器的自动化控制方法、装置、计算机设备和存储介质。The present application relates to the field of computer technology, in particular to an instrument automatic control method, device, computer equipment and storage medium.

背景技术Background technique

随着计算机技术在医学和化学分析领域的应用,越来越多医学和化学分析仪器在进行分析时,无需人工进行手动操作,即通过计算机实现仪器的自动化操作,具体方式是为仪器开发对应的计算机程序,然后将该计算机程序嵌入仪器中,以便运行该计算机程序来实现仪器的自动化操作。With the application of computer technology in the field of medical and chemical analysis, more and more medical and chemical analysis instruments do not need manual operation when performing analysis, that is, the automatic operation of the instrument is realized through the computer, and the specific method is to develop corresponding instruments for the instrument. computer program, and then embedding the computer program in the instrument so that the computer program can be run to automate the operation of the instrument.

然而,计算机程序一旦开发完成,仪器的工作流程就被确定下来,若需要在工作流程中新增步骤或对其中的步骤进行修改时,需要对仪器的计算机程序进行重新开发才能进行更改,从而影响工作效率。However, once the computer program is developed, the workflow of the instrument is determined. If it is necessary to add new steps or modify the steps in the workflow, it is necessary to redevelop the computer program of the instrument to make changes, thereby affecting work efficiency.

发明内容Contents of the invention

基于此,有必要针对仪器性能测试流程更改效率低的技术问题,提供一种仪器的自动化控制方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide an automatic instrument control method, device, computer equipment and storage medium for the technical problem of low efficiency in instrument performance test process modification.

一种仪器的自动化控制方法,所述方法包括:An automatic control method for an instrument, the method comprising:

当获取到用于对仪器进行自动化控制的流程数据时,将所述流程数据以流程图的形式展示于流程编辑页面;When the process data for automatic control of the instrument is obtained, the process data is displayed on the process editing page in the form of a flow chart;

获取针对所述流程数据的步骤修改数据;Obtaining step modification data for said process data;

根据所述流程数据和所述步骤修改数据构建新流程数据;constructing new process data according to the process data and the step modification data;

根据所述新流程数据生成用于控制所述仪器的脚本文件;generating a script file for controlling the instrument according to the new process data;

当所述脚本文件被调用时,按照所述脚本文件定义的操作步骤执行所述新流程数据,以实现对所述仪器的控制。When the script file is invoked, the new process data is executed according to the operation steps defined in the script file, so as to realize the control of the instrument.

在一个实施例中,所述获取针对所述流程数据的步骤修改数据,包括:In one embodiment, the obtaining step modification data for the process data includes:

当检测到修改指令时,获取所述流程图对应的步骤参数;所述步骤参数包括动作指令参数和计时时间;When a modification instruction is detected, obtain step parameters corresponding to the flowchart; the step parameters include action instruction parameters and timing time;

将所述步骤参数展示于所述流程编辑页面;Displaying the step parameters on the process editing page;

获取对所述步骤参数进行修改所得的步骤修改数据。Obtain step modification data obtained by modifying the step parameters.

在一个实施例中,所述获取针对所述流程数据的步骤修改数据,包括:In one embodiment, the obtaining step modification data for the process data includes:

接收步骤添加指令;Receive steps to add instructions;

根据所述步骤添加指令选取对应的步骤修改数据;Selecting the corresponding step to modify the data according to the step adding instruction;

所述按照所述脚本文件定义的操作步骤执行所述新流程数据,包括:The executing the new process data according to the operation steps defined in the script file includes:

确定所述新流程数据中各步骤之间的逻辑顺序;Determining the logical sequence between the steps in the new process data;

将所述逻辑顺序作为所述脚本文件定义的操作步骤的顺序,执行所述新流程数据。The new process data is executed using the logical sequence as the sequence of operation steps defined by the script file.

在一个实施例中,所述获取针对所述流程数据的步骤修改数据,还包括:In one embodiment, the obtaining step modification data for the process data further includes:

在所述流程编辑页面中展示与所述仪器对应的各动作的动作标识列表;Displaying an action identification list of each action corresponding to the instrument on the process editing page;

所述根据所述步骤添加指令选取对应的步骤修改数据包括:Said selecting corresponding step modification data according to said step addition instruction includes:

在展示的动作标识列表中,选取步骤添加指令指定的动作标识;In the displayed action ID list, select the step to add the action ID specified by the instruction;

获取所述动作标识对应的动作指令参数,将所述动作指令参数确定为所述流程数据的步骤修改数据。An action instruction parameter corresponding to the action identifier is acquired, and the action instruction parameter is determined as step modification data of the process data.

在一个实施例中,所述获取针对所述流程数据的步骤修改数据,包括:In one embodiment, the obtaining step modification data for the process data includes:

在所述流程编辑页面中展示子流程标识;Display the sub-process identification on the process editing page;

当检测到所述子流程标识中目标子流程标识被触发时,获取所述目标子流程标识对应的子流程数据;When it is detected that the target sub-process identification in the sub-process identification is triggered, acquire the sub-process data corresponding to the target sub-process identification;

将所述子流程数据作为所述流程数据的步骤修改数据。The sub-process data is used as step modification data of the process data.

在一个实施例中,所述方法还包括:In one embodiment, the method also includes:

在所述新流程数据对应的各步骤中选取目标步骤;selecting a target step from each step corresponding to the new process data;

从所述新流程数据对应的各步骤中确定所述目标步骤的前置步骤;当所述前置步骤的数量为多个时,所述前置步骤用于,在执行所述目标步骤之前同时执行多个所述前置步骤。Determine the preceding step of the target step from the steps corresponding to the new process data; when the number of the preceding steps is multiple, the preceding step is used to simultaneously execute the target step A number of said preceding steps are performed.

一种仪器的自动化控制装置,所述装置包括:An automatic control device for an instrument, said device comprising:

流程数据展示模块,用于当获取到用于对仪器进行自动化控制的流程数据时,将所述流程数据以流程图的形式展示于流程编辑页面;The process data display module is used to display the process data in the form of a flow chart on the process editing page when the process data for automatic control of the instrument is obtained;

步骤修改数据获取模块,用于获取针对所述流程数据的步骤修改数据;A step modification data acquisition module, configured to obtain step modification data for the process data;

新流程数据构建模块,用于根据所述流程数据和所述步骤修改数据构建新流程数据;A new process data building module, configured to construct new process data according to the process data and the step modification data;

脚本文件生成模块,用于根据所述新流程数据生成用于控制所述仪器的脚本文件;A script file generating module, configured to generate a script file for controlling the instrument according to the new process data;

新流程数据执行模块,用于当所述脚本文件被调用时,按照所述脚本文件定义的操作步骤执行所述新流程数据,以实现对所述仪器的控制。The new process data execution module is used for executing the new process data according to the operation steps defined in the script file when the script file is invoked, so as to control the instrument.

在一个实施例中,所述步骤修改数据获取模块,还用于:In one embodiment, the steps modify the data acquisition module, and are also used for:

当检测到修改指令时,获取所述流程图对应的步骤参数;所述步骤参数包括动作指令参数和计时时间;When a modification instruction is detected, obtain step parameters corresponding to the flowchart; the step parameters include action instruction parameters and timing time;

将所述步骤参数展示于所述流程编辑页面;Displaying the step parameters on the process editing page;

获取对所述步骤参数进行修改所得的步骤修改数据。Obtain step modification data obtained by modifying the step parameters.

在一个实施例中,所述步骤修改数据获取模块,还用于:In one embodiment, the steps modify the data acquisition module, and are also used for:

接收步骤添加指令;Receive steps to add instructions;

根据所述步骤添加指令选取对应的步骤修改数据;Selecting the corresponding step to modify the data according to the step adding instruction;

所述新流程数据执行模块,还用于:The new process data execution module is also used for:

确定所述新流程数据中各步骤之间的逻辑顺序;Determining the logical sequence between the steps in the new process data;

将所述逻辑顺序作为所述脚本文件定义的操作步骤的顺序,执行所述新流程数据。The new process data is executed using the logical sequence as the sequence of operation steps defined by the script file.

在一个实施例中,所述步骤修改数据获取模块,还用于:In one embodiment, the steps modify the data acquisition module, and are also used for:

在所述流程编辑页面中展示与所述仪器对应的各动作的动作标识列表;Displaying an action identification list of each action corresponding to the instrument on the process editing page;

所述步骤修改数据选取模块还用于:Said step modifies the data selection module and is also used for:

在展示的动作标识列表中,选取步骤添加指令指定的动作标识;In the displayed action ID list, select the step to add the action ID specified by the instruction;

获取所述动作标识对应的动作指令参数,将所述动作指令参数确定为所述流程数据的步骤修改数据。An action instruction parameter corresponding to the action identifier is acquired, and the action instruction parameter is determined as step modification data of the process data.

在一个实施例中,所述步骤修改数据获取模块,还用于:In one embodiment, the steps modify the data acquisition module, and are also used for:

在所述流程编辑页面中展示子流程标识;Display the sub-process identification on the process editing page;

当检测到所述子流程标识中目标子流程标识被触发时,获取所述目标子流程标识对应的子流程数据;When it is detected that the target sub-process identification in the sub-process identification is triggered, acquire the sub-process data corresponding to the target sub-process identification;

将所述子流程数据作为所述流程数据的步骤修改数据。The sub-process data is used as step modification data of the process data.

在一个实施例中,所述装置还包括:In one embodiment, the device also includes:

目标步骤选取模块,用于在所述新流程数据对应的各步骤中选取目标步骤;A target step selection module, configured to select a target step in each step corresponding to the new process data;

前置步骤确定模块,用于从所述新流程数据对应的各步骤中确定所述目标步骤的前置步骤;当所述前置步骤的数量为多个时,所述前置步骤用于,在执行所述目标步骤之前同时执行多个所述前置步骤。A preceding step determination module, configured to determine a preceding step of the target step from each step corresponding to the new process data; when the number of the preceding steps is multiple, the preceding step is used to: A plurality of said preceding steps are executed concurrently prior to executing said target step.

一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行以上仪器的自动化控制方法中任一项所述方法的步骤。A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is made to perform the steps of any one of the above automatic control methods for instruments.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行仪器的自动化控制方法中任一项所述方法的步骤。A computer device, comprising a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes any one of the methods described in the automatic control method of the instrument step.

上述仪器的自动化控制方法、装置、计算机设备和存储介质,当需要在工作流程中新增步骤或对其中的步骤进行修改时,通过获取用于对仪器进行自动化控制的流程数据,将流程数据以流程图的形式展示于流程编辑页面;获取针对流程数据的步骤修改数据;根据流程数据和步骤修改数据构建新流程数据;然后再根据新流程数据生成用于控制仪器的脚本文件;即可通过调用脚本文件,按照脚本文件定义的操作步骤执行新流程数据,实现对仪器的控制,而不必对仪器的计算机程序进行重新开发,提高了工作效率。For the automatic control method, device, computer equipment and storage medium of the above-mentioned instrument, when it is necessary to add new steps or modify the steps in the workflow, the process data for automatic control of the instrument is acquired, and the process data is converted into The form of the flowchart is displayed on the process editing page; obtain the step modification data for the process data; construct new process data according to the process data and step modification data; and then generate script files for controlling the instrument according to the new process data; you can call The script file executes the new process data according to the operation steps defined by the script file to realize the control of the instrument without having to redevelop the computer program of the instrument, which improves the work efficiency.

附图说明Description of drawings

图1为一个实施例中仪器的自动化控制方法的应用环境图;Fig. 1 is the application environment figure of the automatic control method of instrument in an embodiment;

图2为一个实施例中仪器的自动化控制方法的流程示意图;Fig. 2 is a schematic flow chart of the automatic control method of the instrument in an embodiment;

图3为一个实施例中获取流程数据的步骤修改数据步骤的流程示意图;Fig. 3 is a schematic flow diagram of the step of obtaining process data and modifying data step in one embodiment;

图4为一个实施例中获取流程数据的步骤修改数据步骤的流程示意图;Fig. 4 is a schematic flow diagram of the step of obtaining process data and modifying data step in one embodiment;

图5为一个实施例中仪器的自动化控制装置的结构框图;Fig. 5 is the structural block diagram of the automatic control device of instrument in an embodiment;

图6为另一个实施例中仪器的自动化控制装置的结构框图;Fig. 6 is the structural block diagram of the automatic control device of instrument in another embodiment;

图7为一个实施例中计算机设备的结构框图。Figure 7 is a block diagram of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

图1为一个实施例中仪器的自动化控制方法的应用环境图。参照图1,该仪器的自动化控制方法应用于仪器的自动化控制系统。该仪器的自动化控制系统包括终端110和仪器120。终端110和仪器120通过可以是本地连接或网络连接。终端110具体可以是台式终端或移动终端,移动终端具体可以手机、平板电脑、笔记本电脑等中的至少一种。Fig. 1 is an application environment diagram of an automatic control method for an instrument in an embodiment. Referring to Fig. 1, the automatic control method of the instrument is applied to the automatic control system of the instrument. The automatic control system of the instrument includes a terminal 110 and an instrument 120 . The terminal 110 and the instrument 120 may be connected through a local connection or a network. The terminal 110 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like.

如图2所示,在一个实施例中,提供了一种仪器的自动化控制方法。本实施例主要以该方法应用于上述图1中的终端110来举例说明。参照图2,该仪器的自动化控制方法具体包括如下步骤:As shown in Fig. 2, in one embodiment, an automatic control method of an instrument is provided. This embodiment is mainly described by taking the method applied to the terminal 110 in FIG. 1 above as an example. With reference to Fig. 2, the automatic control method of this instrument specifically comprises the following steps:

S202,当获取到用于对仪器进行自动化控制的流程数据时,将流程数据以流程图的形式展示于流程编辑页面。S202. When the process data for automatic control of the instrument is obtained, display the process data in the form of a flow chart on the process editing page.

其中,仪器可以是体外诊断领域的仪器或者化学分析领域的仪器,如生化分析仪、化学发光分析仪、尿液分析仪、血液分析仪、分子诊断或基因检测分析仪等。用于对仪器进行自动化控制的流程数据包括流程步骤、步骤参数以及流程步骤之间计时时间等信息。流程图用于直观的表示仪器工作步骤之间的逻辑关系。流程编辑页面用于可视化的对流程数据进行修改。Wherein, the instrument may be an instrument in the field of in vitro diagnostics or an instrument in the field of chemical analysis, such as a biochemical analyzer, a chemiluminescence analyzer, a urine analyzer, a blood analyzer, a molecular diagnostic or genetic detection analyzer, and the like. The process data used for automatic control of the instrument includes information such as process steps, step parameters, and timing time between process steps. The flowchart is used to visually represent the logical relationship between the working steps of the instrument. The process editing page is used to modify the process data visually.

在一个实施例中,仪器上运行有用于控制仪器的应用程序,该应用程序通过流程数据对仪器的控制流程进行描述。当终端在检测到流程编辑指令时,根据流程编辑指令获取对仪器进行自动化控制的流程数据,并根据所获取的流程数据的流程步骤、步骤参数以及流程步骤之间计时时间等信息生成流程图,然后将所生成的流程图展示于流程编辑页面,以便用户基于所展示的流程图,对流程步骤进行修改。In one embodiment, an application program for controlling the instrument runs on the instrument, and the application program describes the control process of the instrument through process data. When the terminal detects the process editing instruction, it obtains the process data for automatic control of the instrument according to the process editing command, and generates a flow chart according to the process steps, step parameters, and timing time between process steps of the obtained process data, etc. Then display the generated flow chart on the process editing page, so that the user can modify the process steps based on the displayed flow chart.

S204,获取针对流程数据的步骤修改数据。S204. Obtain step modification data for the process data.

在一个实施例中,用户可以基于在流程编辑页面展示的流程图,对流程数据对应的各流程步骤进行修改,比如修改步骤参数、添加或移除步骤、嵌套子流程、设定前置步骤等。用户在对流程步骤进行修改后,终端获取相应的步骤修改数据,以便根据该步骤修改数据构建出新的流程数据。In one embodiment, the user can modify the process steps corresponding to the process data based on the flow chart displayed on the process editing page, such as modifying step parameters, adding or removing steps, nesting sub-processes, and setting pre-steps wait. After the user modifies the process steps, the terminal obtains the corresponding step modification data, so as to construct new process data according to the step modification data.

在一个实施例中,用户在对流程步骤进行修改后,通过触发流程编辑界面上的保存按钮,保存对流程数据的步骤修改数据。当终端检测到流程编辑页面上的保存按钮被触发时,获取相应的步骤修改数据。In one embodiment, after the user modifies the process steps, the step modification data of the process data is saved by triggering a save button on the process editing interface. When the terminal detects that the save button on the process editing page is triggered, it obtains the corresponding step modification data.

S206,根据流程数据和步骤修改数据构建新流程数据。S206. Construct new process data according to the process data and step modification data.

其中根据流程数据和步骤修改数据构建新流程数据,可以是将步骤修改数据增加到流程数据中,也可以是将步骤修改数据从流程数据中删除,还可以是将步骤修改数据替换流程数据中对应的部分数据。The new process data is constructed according to the process data and step modification data, which can be to add the step modification data to the process data, or to delete the step modification data from the process data, or to replace the corresponding step modification data in the process data part of the data.

例如:流程编辑页面所展示的流程A包含有:步骤1-步骤2-步骤3-步骤4;用户基于该流程又在步骤4之后新增了步骤5。当终端检测到流程编辑页面上的保存按钮被触发时,获取关于步骤5的流程数据,并将该流程数据作为流程A的步骤修改数据,然后将流程修改数据增加到流程A的流程数据中,从而得到新流程数据。其中关于步骤5的流程数据可以是步骤5的步骤参数。For example: Process A displayed on the process editing page includes: Step 1-Step 2-Step 3-Step 4; based on this process, the user adds Step 5 after Step 4. When the terminal detects that the save button on the process editing page is triggered, obtain the process data about step 5, and use the process data as the step modification data of process A, and then add the process modification data to the process data of process A, To obtain new process data. The process data about step 5 may be step parameters of step 5.

S208,根据新流程数据生成用于控制仪器的脚本文件。S208, generating a script file for controlling the instrument according to the new process data.

在一个实施例中,终端在获取到步骤修改数据之后,根据流程数据和步骤修改数据构建出了新流程数据,然后基于该新流程数据生成了相应的脚本文件,其中该脚本文件定义了仪器的工作流程,即通过运行该脚本文件,可以实现对仪器各个部分的控制,以执行脚本文件通过工作流程定义的各个操作步骤。In one embodiment, after obtaining the step modification data, the terminal constructs new process data according to the process data and the step modification data, and then generates a corresponding script file based on the new process data, wherein the script file defines the Workflow, that is, by running the script file, the control of each part of the instrument can be realized, so as to execute each operation step defined by the script file through the workflow.

S210,当脚本文件被调用时,按照脚本文件定义的操作步骤执行新流程数据,以实现对仪器的控制。S210, when the script file is invoked, execute the new process data according to the operation steps defined in the script file, so as to realize the control of the instrument.

在一个实施例中,当所生成的脚本文件被调用时,解析该脚本文件,得到该脚本文件所定义的步骤,按照所定义的操作步骤执行新流程数据,从而实现对仪器的控制。In one embodiment, when the generated script file is invoked, the script file is parsed to obtain the steps defined in the script file, and the new process data is executed according to the defined operation steps, thereby realizing the control of the instrument.

在一个实施例中,当所生成的脚本文件被调用时,确定各个新流程数据各步骤之间的逻辑顺序,然后将所确定的逻辑顺序作为脚本文件定义的操作步骤的顺序,按照该顺序执行新流程数据。In one embodiment, when the generated script file is invoked, the logical sequence between the steps of each new process data is determined, and then the determined logical sequence is used as the sequence of the operation steps defined by the script file, and the new process is executed according to this sequence. process data.

在另一个实施例中,在按照脚本文件定义的操作步骤执行新流程数据的过程中,还可以获取在执行过程中所产生的数据,并将所获得的数据按照预设的格式展示于分析结果展示页面。其中,预设的格式可以是图表或者文字。In another embodiment, during the process of executing the new process data according to the operation steps defined in the script file, the data generated during the execution process can also be obtained, and the obtained data can be displayed in the analysis result according to the preset format Display the page. Wherein, the preset format may be chart or text.

上述实施例中,当需要在工作流程中新增步骤或对其中的步骤进行修改时,通过获取用于对仪器进行自动化控制的流程数据,将流程数据以流程图的形式展示于流程编辑页面;获取针对流程数据的步骤修改数据;根据流程数据和步骤修改数据构建新流程数据;然后再根据新流程数据生成用于控制仪器的脚本文件;即可通过调用脚本文件,按照脚本文件定义的操作步骤执行新流程数据,实现对仪器的控制,而不必对仪器的计算机程序进行重新开发,提高了工作效率。In the above-mentioned embodiment, when it is necessary to add new steps or modify the steps in the workflow, the process data is displayed on the process editing page in the form of a flow chart by acquiring the process data for automatic control of the instrument; Obtain step modification data for process data; construct new process data based on process data and step modification data; then generate script files for controlling instruments based on new process data; call the script file to follow the operation steps defined by the script file Execute the new process data to realize the control of the instrument without having to redevelop the computer program of the instrument, which improves the work efficiency.

在一个实施例中,如图3所示,S204具体可以包括以下步骤:In one embodiment, as shown in FIG. 3, S204 may specifically include the following steps:

S302,当检测到修改指令时,获取流程图对应的步骤参数;步骤参数包括动作指令参数和计时时间。S302. When a modification instruction is detected, obtain step parameters corresponding to the flowchart; the step parameters include action instruction parameters and timing time.

S304,将步骤参数展示于流程编辑页面。S304, displaying the step parameters on the process editing page.

其中,修改指令可以由用户在流程编辑页面针对所展示的流程图的流程步骤触发。流程步骤的步骤类型包括动作类型、计时类型或流程类型。流程步骤的步骤参数包括动作指令参数和计时时间,动作指令参数可以是动作的起始位置、样本或试剂的取用量等,计时时间可以是两个动作之间的时间间隔,或者是样本的反应时间。Wherein, the modification instruction may be triggered by the user on the process editing page for the process steps of the displayed flow chart. The step type of a process step includes action type, timing type, or process type. The step parameters of the process steps include action command parameters and timing time. The action command parameters can be the starting position of the action, the amount of sample or reagent taken, etc. The timing time can be the time interval between two actions, or the response of the sample time.

在一个实施例中,用户在流程编辑页面,针对所展示的流程图的流程步骤触发修改指令,当终端检测到修改指令时,获取流程图对应的步骤参数。其中,修改指令可以对应于流程图中的用户选中的任意一个或多个步骤,也可以对应于流程图中的所有步骤。当修改指令对应于流程图中的任意一个或多个步骤时,相应的终端获取该任意一个或多个步骤的步骤参数;当修改指令对应于流程图的所有步骤时,相应的终端获取该流程图中每个步骤的步骤参数。终端在获取到流程图对应的步骤参数之后,将所获取的步骤参数展示于流程编辑页面。In one embodiment, the user triggers a modification instruction for the steps of the displayed flowchart on the flow editing page, and when the terminal detects the modification instruction, obtains the corresponding step parameters of the flowchart. Wherein, the modification instruction may correspond to any one or more steps selected by the user in the flow chart, and may also correspond to all steps in the flow chart. When the modification instruction corresponds to any one or more steps in the flow chart, the corresponding terminal obtains the step parameters of the any one or more steps; when the modification instruction corresponds to all steps in the flow chart, the corresponding terminal obtains the flow chart Step parameters for each step in the graph. After obtaining the step parameters corresponding to the flow chart, the terminal displays the obtained step parameters on the flow editing page.

S306,获取对步骤参数进行修改所得的步骤修改数据。S306. Obtain step modification data obtained by modifying step parameters.

在一个实施例中,终端将所获取的步骤参数展示于流程编辑页面后,用户在流程编辑页面上可以浏览流程图对应的步骤参数,并对步骤参数进行相关修改。用户在对步骤参数进行修改后,通过触发流程编辑界面上的保存按钮,保存对步骤参数的修改数据,即步骤修改数据。当终端检测到流程编辑页面上的保存按钮被触发时,获取步骤修改数据。In one embodiment, after the terminal displays the acquired step parameters on the flow editing page, the user can browse the corresponding step parameters of the flow chart on the flow editing page and make related modifications to the step parameters. After modifying the step parameters, the user triggers the save button on the process editing interface to save the modification data of the step parameters, that is, the step modification data. Get step modification data when the terminal detects that the save button on the process edit page is triggered.

在上述实施例中,当终端检测到修改指令时,获取流程图对应的步骤参数,将步骤参数展示于流程编辑页面,并在用户对步骤参数进行修改之后,获取对步骤修改数据,不必对仪器的计算机程序进行重新开发,便可以修改步骤参数,从而提高了工作效率。In the above embodiment, when the terminal detects a modification instruction, it obtains the step parameters corresponding to the flow chart, displays the step parameters on the process editing page, and obtains the modification data of the steps after the user modifies the step parameters, without having to modify the instrument The computer program can be redeveloped, and the step parameters can be modified, thereby improving work efficiency.

在另一个实施例中,S204具体还可以包括接收步骤添加指令;根据步骤添加指令选取对应的步骤修改数据。In another embodiment, S204 may specifically include receiving a step addition instruction; selecting corresponding step modification data according to the step addition instruction.

其中,步骤添加指令可以携带有目标添加步骤的步骤内容或标识。其中标识可以是计时标识、动作标识或流程标识。步骤内容与标识对应,例如步骤内容是:抓手抓杯、吸样针吸样,对应的标识可以是:抓杯、吸样,且“抓杯”、“吸样”这两个标识为动作标识。Wherein, the step adding instruction may carry the step content or identification of the target adding step. The identifier can be a timing identifier, an action identifier or a process identifier. The step content corresponds to the logo. For example, the step content is: grab the cup with the gripper, and suck the sample with the sampling needle. The corresponding logo can be: grab the cup, suck the sample, and the two logos of "grab the cup" and "suck the sample" are actions logo.

在一个实施例中,用户在流程编辑页面针对所展示的流程图触发步骤添加指令,其中该步骤添加指令中携带有目标添加步骤的步骤内容,该当终端检测到步骤添加指令时,解析该步骤添加指令,获得目标添加步骤的步骤内容,然后根据目标添加步骤的步骤内容获取对应的步骤参数,并将所获取的步骤参数作为步骤修改数据。In one embodiment, the user triggers a step addition instruction for the displayed flow chart on the flow editing page, wherein the step addition instruction carries the step content of the target addition step, and when the terminal detects the step addition instruction, it parses the step addition instruction command to obtain the step content of the target addition step, and then obtain the corresponding step parameters according to the step content of the target addition step, and use the obtained step parameters as step modification data.

在一个实施例中,在流程编辑页面展示仪器所支持的各步骤的标识,当终端检测到步骤添加指令时,解析该步骤添加指令,并根据该步骤添加指令选取目标添加步骤的标识,然后获取该标识对应的步骤参数,并将所获取的步骤参数作为确定为流程数据的步骤修改数据。例如,所选取的目标添加步骤的步骤标识为计时标识,则获取对应的计时时间;所选取的目标添加步骤的步骤标识为动作标识,则获取对应的动作指令参数;若所选取的目标添加步骤的步骤标识为流程标识,则获取该流程标识所对应的流程数据。In one embodiment, the identification of each step supported by the instrument is displayed on the flow editing page. When the terminal detects a step addition instruction, it parses the step addition instruction, and selects the identification of the target addition step according to the step addition instruction, and then obtains The corresponding step parameter is identified, and the obtained step parameter is used as step modification data determined as process data. For example, if the step identification of the selected target addition step is a timing identification, then the corresponding timing time will be obtained; if the step identification of the selected target addition step is an action identification, then the corresponding action command parameters will be obtained; if the selected target addition step If the step ID is a process ID, the process data corresponding to the process ID is obtained.

在一个实施例中,终端将所获取的步骤参数展示与流程编辑页面,以便用户对目标添加步骤的步骤参数进行修改。待用户在流程编辑页面对目标添加步骤的步骤参数进行修改之后,获取对目标添加步骤的步骤参数的修改数据,将对目标添加步骤的步骤参数的修改数据确定为流程数据的步骤修改数据。In one embodiment, the terminal displays the obtained step parameters on the process editing page, so that the user can modify the step parameters of the target adding step. After the user modifies the step parameters of the target addition step on the process editing page, obtain the modification data of the step parameters of the target addition step, and determine the modification data of the step parameters of the target addition step as the step modification data of the process data.

在一个实施例中,在流程编辑页面展示仪器所对应的各动作的动作标识列表,当终端检测到步骤添加指令时,解析该步骤添加指令,并在展示的动作标识列表中,选取步骤添加指令对应的动作标识,然后获取选中的动作标识对应的动作指令参数,将所获取的动作指令参数确定为流程数据的步骤修改数据。In one embodiment, the action identification list of each action corresponding to the instrument is displayed on the process editing page. When the terminal detects the step addition instruction, it parses the step addition instruction, and selects the step addition instruction from the displayed action identification list. The corresponding action ID, and then obtain the action command parameter corresponding to the selected action ID, and determine the acquired action command parameter as the step modification data of the process data.

在一个实施例中,终端将所获取的动作指令参数展示于流程编辑页面,以便用户对目标添加步骤的动作指令参数进行修改。待用户在流程编辑页面对目标添加步骤的动作指令参数进行修改之后,获取对目标添加步骤的动作指令参数的修改数据,将对目标添加步骤的动作指令参数的修改数据确定为流程数据的步骤修改数据。In one embodiment, the terminal displays the acquired action instruction parameters on the process editing page, so that the user can modify the action instruction parameters of the target adding step. After the user modifies the action command parameters of the target addition step on the process editing page, obtain the modification data of the action command parameters of the target addition step, and determine the modification data of the action command parameters of the target addition step as the step modification of the process data data.

在一个实施例中,在流程编辑页面展示仪器所对应的流程标识。其中流程标识为仪器所支持的流程的标识。当终端检测到步骤添加指令时,解析该步骤添加指令,并在展示的流程标识列表中,选取步骤添加指令对应的流程标识,然后获取选中的流程标识对应的流程数据,将所获取的流程数据确定为流程数据的步骤修改数据。In one embodiment, the process identifier corresponding to the instrument is displayed on the process editing page. The process ID is the ID of the process supported by the instrument. When the terminal detects a step addition command, it parses the step addition command, and selects the process ID corresponding to the step addition command in the displayed process ID list, then obtains the process data corresponding to the selected process ID, and converts the acquired process data to Steps identified as process data modify data.

在一个实施例中,终端将所获取的流程标识的流程数据以流程图的形式展示于流程编辑页面,以便用户对目标添加步骤的流程数据进行修改。待用户在流程编辑页面对目标添加步骤的流程数据进行修改之后,获取对目标添加步骤的流程数据的修改数据,将对目标添加步骤的流程数据的修改数据确定为流程数据的步骤修改数据。In one embodiment, the terminal displays the obtained process data of the process identification in the form of a flow chart on the process editing page, so that the user can modify the process data of the target adding step. After the user modifies the process data of the target addition step on the process editing page, obtain the modification data of the process data of the target addition step, and determine the modification data of the process data of the target addition step as the step modification data of the process data.

在上述实施例中,用户可以在流程编辑页面针对所展示的流程图,触发步骤添加指令。当终端检测到步骤添加指令时,根据步骤添加指令选取对应的步骤修改数据,不必对仪器的计算机程序进行重新开发,便可以添加新的流程步骤,从而提高了工作效率。In the above embodiment, the user can trigger steps to add instructions for the displayed flow chart on the flow editing page. When the terminal detects the step addition instruction, the corresponding step is selected according to the step addition instruction to modify data, and new process steps can be added without redeveloping the computer program of the instrument, thereby improving work efficiency.

在一个实施例中,如图4所示,S204具体还可以包括以下步骤:In one embodiment, as shown in FIG. 4, S204 may specifically include the following steps:

S402,在流程编辑页面中展示子流程标识。S402, displaying sub-process identifiers on the process editing page.

其中,子流程标识是子流程的标识,子流程是相对的,例如流程A可以嵌套在流程B中,则流程A相对于流程B是子流程。在执行流程数据时,可执行主流程的过程中执行子流程,即在执行流程B的过程中执行流程A。Wherein, the sub-process identifier is the identification of the sub-process, and the sub-process is relative. For example, if process A can be nested in process B, then process A is a sub-process relative to process B. When the process data is executed, the sub-process can be executed during the execution of the main process, that is, the process A can be executed during the execution of the process B.

在一个实施例中,终端根据所获取的流程数据,确定支持嵌套到该流程数据的子流程标识,并在流程编辑页面展示所确定的子流程标识。In one embodiment, the terminal determines, according to the acquired process data, a sub-process identifier that supports embedding into the process data, and displays the determined sub-process identifier on the process editing page.

S404,当检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据。S404. When it is detected that the target sub-process identifier in the sub-process identifier is triggered, obtain sub-process data corresponding to the target sub-process identifier.

S406,将子流程数据作为流程数据的步骤修改数据。S406, using the sub-process data as the step modification data of the process data.

在一个实施例中,在流程编辑页面用户可以对所展示的子流程标识进行选择,并触发所选中的目标子流程,以实现将该目标子流程嵌套在当前所展示的主流程的流程图中。当终端检测到子流程标识中的目标子流程标识被触发时,获取目标子流程的标识对应的子流程数据,并将所获取的子流程数据作为流程编辑数据的步骤修改数据。In one embodiment, on the process editing page, the user can select the displayed sub-process identifier, and trigger the selected target sub-process, so as to nest the target sub-process in the flow chart of the currently displayed main process middle. When the terminal detects that the target sub-process identification in the sub-process identification is triggered, it acquires the sub-process data corresponding to the target sub-process identification, and uses the acquired sub-process data as the step modification data of the process editing data.

上述实施例中,用户可以在流程编辑页面针对所展示的流程图和该流程对应的子流程标识,选择可嵌入该流程图的子流程的流程标识。当终端检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据;将子流程数据作为流程数据的步骤修改数据。不必对仪器的计算机程序进行重新开发,便可以得到包含主流程和子流程的新流程步骤,从而提高了工作效率。In the above-mentioned embodiment, the user can select the process identifier of the sub-process that can be embedded in the flow chart for the displayed flowchart and the sub-process identifier corresponding to the process on the process editing page. When the terminal detects that the target sub-process identification in the sub-process identification is triggered, it acquires the sub-process data corresponding to the target sub-process identification; and uses the sub-process data as the step modification data of the process data. New process steps including main process and sub-processes can be obtained without redeveloping the computer program of the instrument, thereby improving work efficiency.

在一个实施例中,仪器的自动化控制方法还包括:终端在根据流程数据和步骤修改数据构建出新流程数据之后,将新流程数据以新流程图的形式展示于流程编辑页面。在该流程编辑页面,用户可以对该新流程数据的各个步骤的逻辑顺序进行调整,比如指定前置步骤。In one embodiment, the automatic control method of the instrument further includes: after the terminal constructs new process data according to the process data and step modification data, displaying the new process data in the form of a new flow chart on the process editing page. On the process editing page, the user can adjust the logical order of each step of the new process data, such as specifying a preceding step.

在一个实施例中,根据用户在流程编辑页面的操作,终端在新流程数据对应的各步骤中选取目标步骤,然后从新流程数据对应的各步骤中确定目标步骤的前置步骤。目标步骤和目标步骤的前置步骤在执行时的逻辑顺序为:先执行目标步骤的前置步骤,再执行目标步骤。其中,当目标步骤的前置步骤为多个时,该多个前置步骤在执行时的逻辑顺序为:同时执行该多个前置步骤。In one embodiment, according to the user's operation on the process editing page, the terminal selects the target step from the steps corresponding to the new process data, and then determines the preceding steps of the target step from the steps corresponding to the new process data. The logic sequence of the execution of the target step and the predecessor step of the target step is: the predecessor step of the target step is executed first, and then the target step is executed. Wherein, when there are multiple preceding steps of the target step, the logic order of the multiple preceding steps during execution is: execute the multiple preceding steps simultaneously.

例如,一个化学发光分析仪的加样流程有四个步骤,依次为:抓手抓取反应杯,抓手放置反应杯到孵育器上,加样针在吸样位置吸取样本,加样针将样本排到孵育器上的反应杯中。当未设置前置步骤时,该流程按照上述步骤依次执行。对该加样流程的“加样针将样本排到孵育器上的反应杯中”这一步骤设置前置步骤,所设置的前置步骤为“抓手放置反应杯到孵育器上”和“加样针在吸样位置吸取样本”,则设置前置步骤后的加样流程的执行过程为:抓手抓取反应杯,抓手放置反应杯到孵育器上,同时加样针在吸样位置吸取样本,在上述步骤均完成后,加样针将样本排到孵育器上的反应杯中。For example, the sampling process of a chemiluminescence analyzer has four steps, which are as follows: the gripper grasps the cuvette, the gripper places the cuvette on the incubator, the sampling needle draws the sample at the sampling position, and the sampling needle puts the sample on the incubator. Samples drain into cuvettes on the incubator. When no pre-step is set, the process is executed sequentially according to the above steps. Set a pre-step for the step of "the sample needle discharges the sample into the cuvette on the incubator" of the sampling process, and the set pre-steps are "place the gripper on the cuvette on the incubator" and " The sampling needle draws the sample at the sampling position", then the execution process of the sampling process after setting the pre-steps is: grab the cuvette with the gripper, place the cuvette on the incubator with the gripper, and at the same time, the sampling needle is sucking the sample. After the above steps are completed, the sampling needle discharges the sample into the reaction cup on the incubator.

在一个实施例中,终端将新流程数据以流程的形式展示于流程编辑页面。该流程表可以包含新流程数据的各个步骤的步骤内容、步骤参数和前置步骤等信息。通过该流程表用户可以浏览或修改当前所编辑流程的各个步骤的步骤内容和步骤参数,也可以确定目标步骤的前置步骤。In one embodiment, the terminal displays the new process data in the form of a process on the process editing page. The process table may include information such as step content, step parameters, and preceding steps of each step of the new process data. Through this process table, users can browse or modify the step content and step parameters of each step of the currently edited process, and can also determine the predecessor steps of the target step.

上述实施例中,通过指定目标步骤的前置步骤,可以使得多个前置步骤同时执行,不必对仪器的计算机程序进行重新开发,便调整流程步骤的逻辑顺序,从而提高了工作效率。In the above embodiment, by specifying the preceding steps of the target step, multiple preceding steps can be executed simultaneously, and the logical order of the process steps can be adjusted without redeveloping the computer program of the instrument, thereby improving work efficiency.

下面以化学发光分析仪为例,说明执行流程数据以实现仪器控制的过程。The following takes a chemiluminescence analyzer as an example to illustrate the process of executing process data to achieve instrument control.

化学发光分析仪上有加样针、抓手、读书模块等部件,加样针可用于吸取样本,抓手可用于转移样本反应杯,读数模块可用于对反应后的样本进行分析。The chemiluminescence analyzer has components such as a sampling needle, a gripper, and a reading module. The sampling needle can be used to absorb samples, the gripper can be used to transfer sample cuvettes, and the reading module can be used to analyze the reacted samples.

若所生成的脚本文件对应的是一个加样流程,其中具体的流程内容如表1所示。当操作人员在仪器的操作界面上点击执行流程的按钮后,应用程序开始运行,并调用脚本文件,并向抓手发送控制指令,控制抓手从变量1的位置抓取反应杯,然后抓手再将反应杯放置到孵育器1号位,同时控制加样针吸取样本50uL,然后控制加样针在孵育器1号位排出样本50uL。If the generated script file corresponds to a sample adding process, the specific process content is shown in Table 1. When the operator clicks the button to execute the process on the operation interface of the instrument, the application program starts to run, calls the script file, and sends a control command to the gripper to control the gripper to grab the cuvette from the position of variable 1, and then the gripper Then place the cuvette in position 1 of the incubator, and control the sampling needle to draw 50uL of sample, and then control the sampling needle to discharge 50uL of sample at position 1 of the incubator.

表1加样流程Table 1 Sample loading process

若所生成的脚本文件对应的是读数流程,其中读数流程中嵌套有加样流程,具体的流程内容如表2所示。当操作人员在仪器的操作界面上点击执行流程的按钮后,应用程序开始运行,并调用脚本文件,首先执行加样流程,且加样流程开始时,抓手是从变量CA1位置抓取反应杯。在加样流程执行完毕后,开始计时,计时时间达到40秒之后,抓手从孵育器1号位抓取反应杯,并将反应杯放入读数站,然后仪器的读数模块进行读数,在读数结束后,抓手从读数站抓取反应杯并将反应杯放回读数站1号位。If the generated script file corresponds to the reading process, where the sample loading process is embedded in the reading process, the specific process content is shown in Table 2. When the operator clicks the button to execute the process on the operation interface of the instrument, the application program starts to run and calls the script file. First, the sample addition process is executed, and when the sample addition process starts, the gripper grabs the cuvette from the variable CA1 position . After the sample addition process is completed, start timing. After the timing reaches 40 seconds, the gripper grabs the cuvette from position 1 of the incubator, and puts the cuvette into the reading station, and then the reading module of the instrument performs reading. After the end, grab the cuvette from the reading station and put the cuvette back to position 1 of the reading station.

表2读数流程Table 2 Reading process

步骤序号Step number 步骤类型step type 步骤内容step content 步骤参数step parameters 前置步骤pre-step 11 流程类型Process type 加样流程Sampling process CA1CA1 22 计时类型timing type 计时时间timing time 40s40s 11 33 动作类型action type 抓手抓杯grab cup 11 22 44 动作类型action type 抓手放杯hand cup 读数站reading station 33 55 动作类型action type 读数reading 44 66 动作类型action type 抓手抓杯grab cup 读数站reading station 55 77 动作类型action type 抓手放杯hand cup 11 66

图2-4为一个实施例中仪器的自动化控制方法的流程示意图。应该理解的是,虽然图2-4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。2-4 are schematic flow charts of the automatic control method of the instrument in one embodiment. It should be understood that although the various steps in the flow charts in FIGS. 2-4 are displayed sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-4 may include a plurality of sub-steps or stages, these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

在一个实施例中,如图5所示,提供了一种仪器的自动化控制装置,该装置包括:流程数据展示模块502,步骤修改数据获取模块504,新流程数据构建模块506,脚本文件生成模块508和新流程数据执行模块510;其中:In one embodiment, as shown in Figure 5, an automatic control device for an instrument is provided, which includes: a process data display module 502, a step modification data acquisition module 504, a new process data construction module 506, and a script file generation module 508 and new process data execution module 510; wherein:

流程数据展示模块502,用于当获取到用于对仪器进行自动化控制的流程数据时,将流程数据以流程图的形式展示于流程编辑页面;The process data display module 502 is used to display the process data in the form of a flow chart on the process editing page when the process data for automatic control of the instrument is obtained;

步骤修改数据获取模块504,用于获取针对流程数据的步骤修改数据;A step modification data acquisition module 504, configured to obtain step modification data for process data;

新流程数据构建模块506,用于根据流程数据和步骤修改数据构建新流程数据;A new process data construction module 506, configured to construct new process data according to the process data and step modification data;

脚本文件生成模块508,用于根据新流程数据生成用于控制仪器的脚本文件;Script file generation module 508, for generating the script file for controlling the instrument according to the new process data;

新流程数据执行模块510,用于当脚本文件被调用时,按照脚本文件定义的操作步骤执行新流程数据,以实现对仪器的控制。The new process data execution module 510 is configured to execute the new process data according to the operation steps defined in the script file when the script file is invoked, so as to realize the control of the instrument.

上述实施例中,当需要在工作流程中新增步骤或对其中的步骤进行修改时,通过获取用于对仪器进行自动化控制的流程数据,将流程数据以流程图的形式展示于流程编辑页面;获取针对流程数据的步骤修改数据;根据流程数据和步骤修改数据构建新流程数据;然后再根据新流程数据生成用于控制仪器的脚本文件;即可通过调用脚本文件,按照脚本文件定义的操作步骤执行新流程数据,实现对仪器的控制,而不必对仪器的计算机程序进行重新开发,提高了工作效率。In the above-mentioned embodiment, when it is necessary to add new steps or modify the steps in the workflow, the process data is displayed on the process editing page in the form of a flow chart by acquiring the process data for automatic control of the instrument; Obtain step modification data for process data; construct new process data based on process data and step modification data; then generate script files for controlling instruments based on new process data; call the script file to follow the operation steps defined by the script file Execute the new process data to realize the control of the instrument without having to redevelop the computer program of the instrument, which improves the work efficiency.

在一个实施例中,步骤修改数据获取模块504,还用于:当检测到修改指令时,获取流程图对应的步骤参数;步骤参数包括动作指令参数和计时时间;将步骤参数展示于流程编辑页面;获取对步骤参数进行修改所得的步骤修改数据。In one embodiment, the step modification data acquisition module 504 is also used to: when a modification instruction is detected, obtain the step parameters corresponding to the flowchart; the step parameters include action instruction parameters and timing time; display the step parameters on the process editing page ;Get the step modification data obtained by modifying the step parameters.

在上述实施例中,当终端检测到修改指令时,获取流程图对应的步骤参数,将步骤参数展示于流程编辑页面,并在用户对步骤参数进行修改之后,获取对步骤修改数据,不必对仪器的计算机程序进行重新开发,便可以修改步骤参数,从而提高了工作效率。In the above embodiment, when the terminal detects a modification instruction, it obtains the step parameters corresponding to the flow chart, displays the step parameters on the process editing page, and obtains the modification data of the steps after the user modifies the step parameters, without having to modify the instrument The computer program can be redeveloped, and the step parameters can be modified, thereby improving work efficiency.

在一个实施例中,步骤修改数据获取模块504,还用于:接收步骤添加指令;根据步骤添加指令选取对应的步骤修改数据;新流程数据执行模块,还用于:确定新流程数据中各步骤之间的逻辑顺序;将逻辑顺序作为脚本文件定义的操作步骤的顺序,执行新流程数据。In one embodiment, the step modification data acquisition module 504 is also used to: receive step addition instructions; select corresponding step modification data according to the step addition instructions; the new process data execution module is also used to: determine each step in the new process data The logical sequence between them; the logical sequence is used as the sequence of the operation steps defined by the script file to execute the new process data.

当终端检测到修改指令时,获取流程图对应的步骤参数,将步骤参数展示于流程编辑页面,并在用户对步骤参数进行修改之后,获取对步骤修改数据,不必对仪器的计算机程序进行重新开发,便可以修改步骤参数,从而提高了工作效率。When the terminal detects the modification instruction, it will obtain the step parameters corresponding to the flow chart, display the step parameters on the process editing page, and obtain the modification data of the steps after the user modifies the step parameters, without having to redevelop the computer program of the instrument , you can modify the step parameters, thereby improving work efficiency.

在一个实施例中,步骤修改数据获取模块,还用于:在流程编辑页面中展示与仪器对应的各动作的动作标识列表;步骤修改数据选取模块还用于:在展示的动作标识列表中,选取步骤添加指令指定的动作标识;获取动作标识对应的动作指令参数,将动作指令参数确定为流程数据的步骤修改数据。In one embodiment, the step modification data acquisition module is also used to: display the action identification list of each action corresponding to the instrument on the process editing page; the step modification data selection module is also used to: in the displayed action identification list, The action identifier specified by the instruction is added in the selection step; the action instruction parameter corresponding to the action identifier is obtained, and the action instruction parameter is determined as the step modification data of the process data.

在上述实施例中,用户可以在流程编辑页面针对所展示的流程图,触发步骤添加指令。当终端检测到步骤添加指令时,根据步骤添加指令选取对应的步骤修改数据;不必对仪器的计算机程序进行重新开发,便可以添加新的流程步骤,从而提高了工作效率。In the above embodiment, the user can trigger steps to add instructions for the displayed flow chart on the flow editing page. When the terminal detects the step addition instruction, the corresponding step is selected according to the step addition instruction to modify data; new process steps can be added without redeveloping the computer program of the instrument, thereby improving work efficiency.

在一个实施例中,步骤修改数据获取模块,还用于:在流程编辑页面中展示子流程标识;当检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据;将子流程数据作为流程数据的步骤修改数据。In one embodiment, the step of modifying the data acquisition module is also used to: display the sub-process identifier on the process editing page; when it is detected that the target sub-process identifier in the sub-process identifier is triggered, obtain the sub-process corresponding to the target sub-process identifier data; step modification data that takes subprocess data as process data.

上述实施例中,用户可以在流程编辑页面针对所展示的流程图和该流程对应的子流程标识,选择可嵌入该流程图的子流程的流程标识。当终端检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据;将子流程数据作为流程数据的步骤修改数据。不必对仪器的计算机程序进行重新开发,便可以得到包含主流程和子流程的新流程步骤,从而提高了工作效率。In the above-mentioned embodiment, the user can select the process identifier of the sub-process that can be embedded in the flow chart for the displayed flowchart and the sub-process identifier corresponding to the process on the process editing page. When the terminal detects that the target sub-process identification in the sub-process identification is triggered, it acquires the sub-process data corresponding to the target sub-process identification; and uses the sub-process data as the step modification data of the process data. New process steps including main process and sub-processes can be obtained without redeveloping the computer program of the instrument, thereby improving work efficiency.

在一个实施例中,如图6所示,该装置还包括:目标步骤选取模块512和前置步骤确定模块514;其中:In one embodiment, as shown in FIG. 6, the device further includes: a target step selection module 512 and a preceding step determination module 514; wherein:

目标步骤选取模块512,用于在新流程数据对应的各步骤中选取目标步骤;A target step selection module 512, configured to select a target step in each step corresponding to the new process data;

前置步骤确定模块514,用于从新流程数据对应的各步骤中确定目标步骤的前置步骤;当前置步骤的数量为多个时,前置步骤用于,在执行目标步骤之前同时执行多个前置步骤。The preceding step determination module 514 is used to determine the preceding step of the target step from the steps corresponding to the new process data; when the number of preceding steps is multiple, the preceding step is used to simultaneously execute multiple steps before executing the target step pre-steps.

上述实施例中,通过指定目标步骤的前置步骤,可以使得多个前置步骤同时执行,不必对仪器的计算机程序进行重新开发,便调整流程步骤的逻辑顺序,从而提高了工作效率。In the above embodiment, by specifying the preceding steps of the target step, multiple preceding steps can be executed simultaneously, and the logical order of the process steps can be adjusted without redeveloping the computer program of the instrument, thereby improving work efficiency.

图7示出了一个实施例中计算机设备的内部结构图。该计算机设备具体可以是图1中终端110。如图7所示,该计算机设备包括该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、输入装置和显示屏。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作系统,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现仪器的自动化控制方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行仪器的自动化控制方法。计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。Figure 7 shows a diagram of the internal structure of a computer device in one embodiment. Specifically, the computer device may be the terminal 110 in FIG. 1 . As shown in FIG. 7 , the computer equipment includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein, the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system, and may also store a computer program. When the computer program is executed by the processor, the processor can realize the automatic control method of the instrument. A computer program may also be stored in the internal memory, and when the computer program is executed by the processor, the processor may execute the automatic control method of the instrument. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the computer equipment, or It can be an external keyboard, touchpad or mouse.

本领域技术人员可以理解,图7中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 7 is only a block diagram of a part of the structure related to the solution of this application, and does not constitute a limitation to the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,本申请提供的仪器的自动化控制装置可以实现为一种计算机程序的形式,计算机程序可在如图7所示的计算机设备上运行。计算机设备的存储器中可存储组成该仪器的自动化控制装置的各个程序模块,比如,图5所示的流程数据展示模块502,步骤修改数据获取模块504,新流程数据构建模块506,脚本文件生成模块508和新流程数据执行模块510。各个程序模块构成的计算机程序使得处理器执行本说明书中描述的本申请各个实施例的仪器的自动化控制方法中的步骤。In one embodiment, the automatic control device for the instrument provided in the present application can be implemented in the form of a computer program, and the computer program can be run on the computer equipment as shown in FIG. 7 . Each program module of the automatic control device that forms the instrument can be stored in the memory of the computer equipment, such as the process data display module 502 shown in Figure 5, the step modification data acquisition module 504, the new process data construction module 506, and the script file generation module 508 and a new process data execution module 510 . The computer program constituted by each program module enables the processor to execute the steps in the automatic control method of the instrument in each embodiment of the application described in this specification.

例如,图7所示的计算机设备可以通过如图5所示的仪器的自动化控制装置中的流程数据展示模块502执行S202。计算机设备可通过步骤修改数据获取模块504执行S204。计算机设备可通过新流程数据构建模块506执行S206。计算机设备可通过脚本文件生成模块508执行S208。计算机设备可通过新流程数据执行模块510执行S210。For example, the computer equipment shown in FIG. 7 can execute S202 through the process data display module 502 in the automatic control device of the instrument as shown in FIG. 5 . The computer device can execute S204 by modifying the data acquisition module 504 . The computer device can execute S206 through the new process data construction module 506 . The computer device can execute S208 through the script file generation module 508 . The computer device can execute S210 through the new process data execution module 510 .

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器存储有计算机程序,计算机程序被处理器执行时,使得处理器执行以下步骤:当获取到用于对仪器进行自动化控制的流程数据时,将流程数据以流程图的形式展示于流程编辑页面;获取针对流程数据的步骤修改数据;根据流程数据和步骤修改数据构建新流程数据;根据新流程数据生成用于控制仪器的脚本文件;当脚本文件被调用时,按照脚本文件定义的操作步骤执行新流程数据,以实现对仪器的控制。In one embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor performs the following steps: When the process data is available, display the process data in the form of a flow chart on the process edit page; obtain the step modification data for the process data; construct new process data according to the process data and step modification data; generate the instrument control tool according to the new process data Script file; when the script file is invoked, execute the new process data according to the operation steps defined in the script file, so as to realize the control of the instrument.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:当检测到修改指令时,获取流程图对应的步骤参数;步骤参数包括动作指令参数和计时时间;将步骤参数展示于流程编辑页面;获取对步骤参数进行修改所得的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the step of the process data, the processor is made to specifically perform the following steps: when a modification instruction is detected, obtain the step parameters corresponding to the flow chart; the step parameters include Action instruction parameters and timing time; display step parameters on the process editing page; obtain step modification data obtained by modifying step parameters.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:接收步骤添加指令;根据步骤添加指令选取对应的步骤修改数据;计算机程序被处理器执行按照脚本文件定义的操作步骤执行新流程数据的步骤时,使得处理器具体还执行以下步骤:确定新流程数据中各步骤之间的逻辑顺序;将逻辑顺序作为脚本文件定义的操作步骤的顺序,执行新流程数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the process data, the processor is made to specifically perform the following steps: receiving a step addition instruction; selecting the corresponding step modification data according to the step addition instruction; the computer program When the processor executes the steps of executing the new process data according to the operation steps defined in the script file, the processor specifically performs the following steps: determine the logical sequence between the steps in the new process data; use the logical sequence as the operation defined in the script file The sequence of steps to execute the new process data.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:在流程编辑页面中展示与仪器对应的各动作的动作标识列表;计算机程序被处理器执行根据步骤添加指令选取对应的步骤修改数据的步骤时,使得处理器具体还执行以下步骤::在展示的动作标识列表中,选取步骤添加指令指定的动作标识;获取动作标识对应的动作指令参数,将动作指令参数确定为流程数据的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step of modifying the process data, the processor is made to specifically perform the following steps: displaying the action identification list of each action corresponding to the instrument on the process editing page; When the program is executed by the processor to select the corresponding step to modify the data according to the step addition instruction, the processor specifically performs the following steps: in the displayed action identification list, select the action identification specified by the step addition instruction; obtain the action identification corresponding The action command parameter of the action command parameter is determined as the step modification data of the process data.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:在流程编辑页面中展示子流程标识;当检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据;将子流程数据作为流程数据的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the process data, the processor is made to specifically perform the following steps: displaying the sub-process identification on the process editing page; when detecting the target in the sub-process identification When the sub-process identifier is triggered, obtain the sub-process data corresponding to the target sub-process identifier; use the sub-process data as the step modification data of the process data.

在一个实施例中,计算机程序被处理器执行时,使得处理器还执行以下步骤:在新流程数据对应的各步骤中选取目标步骤;从新流程数据对应的各步骤中确定目标步骤的前置步骤;当前置步骤的数量为多个时,前置步骤用于,在执行目标步骤之前同时执行多个前置步骤。In one embodiment, when the computer program is executed by the processor, the processor further executes the following steps: selecting a target step from each step corresponding to the new process data; determining a preceding step of the target step from each step corresponding to the new process data ; When the number of preceding steps is multiple, the preceding step is used to execute multiple preceding steps simultaneously before executing the target step.

在一个实施例中,提供了一种计算机可读存储介质,存储有计算机程序,计算机程序被处理器执行时,使得处理器执行以下步骤:当获取到用于对仪器进行自动化控制的流程数据时,将流程数据以流程图的形式展示于流程编辑页面;获取针对流程数据的步骤修改数据;根据流程数据和步骤修改数据构建新流程数据;根据新流程数据生成用于控制仪器的脚本文件;当脚本文件被调用时,按照脚本文件定义的操作步骤执行新流程数据,以实现对仪器的控制。In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor performs the following steps: when the process data for automatic control of the instrument is acquired , display the process data in the form of a flow chart on the process editing page; obtain the step modification data for the process data; construct new process data according to the process data and step modification data; generate script files for controlling the instrument according to the new process data; When the script file is invoked, execute the new process data according to the operation steps defined by the script file, so as to realize the control of the instrument.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:当检测到修改指令时,获取流程图对应的步骤参数;步骤参数包括动作指令参数和计时时间;将步骤参数展示于流程编辑页面;获取对步骤参数进行修改所得的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the step of the process data, the processor is made to specifically perform the following steps: when a modification instruction is detected, obtain the step parameters corresponding to the flow chart; the step parameters include Action instruction parameters and timing time; display step parameters on the process editing page; obtain step modification data obtained by modifying step parameters.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:接收步骤添加指令;根据步骤添加指令选取对应的步骤修改数据;计算机程序被处理器执行按照脚本文件定义的操作步骤执行新流程数据的步骤时,使得处理器具体还执行以下步骤:确定新流程数据中各步骤之间的逻辑顺序;将逻辑顺序作为脚本文件定义的操作步骤的顺序,执行新流程数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the process data, the processor is made to specifically perform the following steps: receiving a step addition instruction; selecting the corresponding step modification data according to the step addition instruction; the computer program When the processor executes the steps of executing the new process data according to the operation steps defined in the script file, the processor specifically performs the following steps: determine the logical sequence between the steps in the new process data; use the logical sequence as the operation defined in the script file The sequence of steps to execute the new process data.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:在流程编辑页面中展示与仪器对应的各动作的动作标识列表;计算机程序被处理器执行根据步骤添加指令选取对应的步骤修改数据的步骤时,使得处理器具体还执行以下步骤::在展示的动作标识列表中,选取步骤添加指令指定的动作标识;获取动作标识对应的动作指令参数,将动作指令参数确定为流程数据的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step of modifying the process data, the processor is made to specifically perform the following steps: displaying the action identification list of each action corresponding to the instrument on the process editing page; When the program is executed by the processor to select the corresponding step to modify the data according to the step addition instruction, the processor specifically performs the following steps: in the displayed action identification list, select the action identification specified by the step addition instruction; obtain the action identification corresponding The action command parameter of the action command parameter is determined as the step modification data of the process data.

在一个实施例中,计算机程序被处理器执行获取针对流程数据的步骤修改数据的步骤时,使得处理器具体执行以下步骤:在流程编辑页面中展示子流程标识;当检测到子流程标识中目标子流程标识被触发时,获取目标子流程标识对应的子流程数据;将子流程数据作为流程数据的步骤修改数据。In one embodiment, when the computer program is executed by the processor to obtain the step modification data for the process data, the processor is made to specifically perform the following steps: displaying the sub-process identification on the process editing page; when detecting the target in the sub-process identification When the sub-process identifier is triggered, obtain the sub-process data corresponding to the target sub-process identifier; use the sub-process data as the step modification data of the process data.

在一个实施例中,计算机程序被处理器执行时,使得处理器还执行以下步骤:在新流程数据对应的各步骤中选取目标步骤;从新流程数据对应的各步骤中确定目标步骤的前置步骤;当前置步骤的数量为多个时,前置步骤用于,在执行目标步骤之前同时执行多个前置步骤。In one embodiment, when the computer program is executed by the processor, the processor further executes the following steps: selecting a target step from each step corresponding to the new process data; determining a preceding step of the target step from each step corresponding to the new process data ; When the number of preceding steps is multiple, the preceding step is used to execute multiple preceding steps simultaneously before executing the target step.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include non-volatile and/or volatile memory. Nonvolatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Chain Synchlink DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

1. A method of automated control of an instrument, the method comprising:
when flow data for automatically controlling an instrument is obtained, the flow data is displayed on a flow editing page in a flow chart form, wherein the step types of flow steps in the flow chart comprise action types, timing types and flow types;
when a save button of the flow editing page is triggered, acquiring step modification data for the flow data, including displaying identifiers of steps supported by the instrument on the flow editing page, when a step addition instruction is detected, analyzing the step addition instruction, selecting identifiers of target addition steps according to the step addition instruction, acquiring step parameters corresponding to the identifiers of the target addition steps, when modification instructions corresponding to all flow steps of the flow chart are detected, acquiring step parameters corresponding to all flow steps of the flow chart, displaying the step parameters on the flow editing page, acquiring modification data of the step parameters, and taking the modification data as step modification data of the flow data;
Constructing new flow data according to the flow data and the step modification data, and displaying the new flow data on the flow editing page in a new flow chart form so that a user can adjust the logic sequence of each flow step of the new flow data on the flow editing page;
generating a script file for controlling the instrument according to the new flow data;
when the script file is called, executing the new flow data according to the operation steps defined by the script file so as to realize the control of the instrument.
2. The method of claim 1, wherein the step of obtaining the modified data for the flow data comprises:
when a modification instruction is detected, step parameters corresponding to the flow chart are obtained; the step parameters comprise action instruction parameters and timing time;
displaying the step parameters on the flow editing page;
and acquiring step modification data obtained by modifying the step parameters.
3. The method of claim 1, wherein the step of obtaining the modified data for the flow data comprises:
receiving a step adding instruction;
Selecting corresponding step modification data according to the step addition instruction;
the executing the new flow data according to the operation steps defined by the script file comprises the following steps:
determining a logic sequence among the steps in the new flow data;
and executing the new flow data by taking the logic sequence as the sequence of the operation steps defined by the script file.
4. A method according to claim 3, characterized in that the method further comprises:
displaying an action identification list of each action corresponding to the instrument in the flow editing page;
the step modification data selecting corresponding to the step addition instruction comprises the following steps:
in the displayed action identifier list, the selection step adds an action identifier designated by the instruction;
and acquiring action instruction parameters corresponding to the action identifiers, and determining the action instruction parameters as step modification data of the flow data.
5. The method of claim 1, wherein the step of obtaining the modified data for the flow data comprises:
displaying sub-process identifiers in the process editing page;
when the target sub-process identification in the sub-process identification is detected to be triggered, sub-process data corresponding to the target sub-process identification is acquired;
And taking the sub-flow data as step modification data of the flow data.
6. The method according to any one of claims 1 to 5, further comprising:
selecting a target step from the steps corresponding to the new flow data;
determining a pre-step of the target step from the steps corresponding to the new flow data; when the number of the pre-steps is plural, the pre-steps are used to execute plural pre-steps simultaneously before executing the target step.
7. An automated control device for an instrument, the device comprising:
the flow data display module is used for displaying the flow data on a flow editing page in a flow chart mode when the flow data for automatically controlling the instrument are acquired, wherein the step types of the flow steps in the flow chart comprise an action type, a timing type and a flow type;
a step modification data obtaining module, configured to obtain step modification data for the flow data when it is detected that a save button of the flow editing page is triggered, including displaying, on the flow editing page, an identifier of each step supported by the instrument, when it is detected that the step adding instruction is detected, parsing the step adding instruction, selecting, according to the step adding instruction, an identifier of a target adding step, obtaining a step parameter corresponding to the identifier of the target adding step, and when it is detected that modification instructions corresponding to all flow steps of the flow chart are detected, obtaining step parameters corresponding to all flow steps of the flow chart, displaying the step parameters on the flow editing page, obtaining modification data of the step parameters, and taking the modification data as step modification data of the flow data;
The new flow data construction module is used for constructing new flow data according to the flow data and the step modification data, and displaying the new flow data on the flow editing page in a new flow chart form so that a user can adjust the logic sequence of each flow step of the new flow data on the flow editing page;
the script file generation module is used for generating a script file for controlling the instrument according to the new flow data;
and the new flow data executing module is used for executing the new flow data according to the operation steps defined by the script file when the script file is called so as to realize the control of the instrument.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the target step selection module is used for selecting a target step from the steps corresponding to the new flow data;
a pre-step determining module, configured to determine a pre-step of the target step from steps corresponding to the new flow data; when the number of the pre-steps is plural, the pre-steps are used to execute plural pre-steps simultaneously before executing the target step.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 6.
10. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 6.
CN201910831617.0A 2019-09-04 2019-09-04 Instrument automatic control method, device, computer equipment and storage medium Active CN110531977B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910831617.0A CN110531977B (en) 2019-09-04 2019-09-04 Instrument automatic control method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910831617.0A CN110531977B (en) 2019-09-04 2019-09-04 Instrument automatic control method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110531977A CN110531977A (en) 2019-12-03
CN110531977B true CN110531977B (en) 2023-08-11

Family

ID=68666720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910831617.0A Active CN110531977B (en) 2019-09-04 2019-09-04 Instrument automatic control method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110531977B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180023A (en) * 2020-09-28 2021-01-05 山东悟空仪器有限公司 Liquid chromatography analysis method and device and liquid chromatography workstation
CN112650474B (en) * 2020-12-18 2024-03-22 咪咕互动娱乐有限公司 Control script generation method, device, network equipment and storage medium
CN112596844A (en) * 2020-12-29 2021-04-02 凌云光技术股份有限公司 Visual process modeling device and method compatible with multiple styles

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000079350A1 (en) * 1999-06-22 2000-12-28 Privity Ventures, Inc. Process automation
US7136865B1 (en) * 2001-03-28 2006-11-14 Siebel Systems, Inc. Method and apparatus to build and manage a logical structure using templates
WO2013170525A1 (en) * 2012-05-16 2013-11-21 Liu Yong Method and device for presenting or drawing logical flow relationship of computer application program organization in the form of logical flow chart
CN103543359A (en) * 2013-10-28 2014-01-29 中国电子科技集团公司第四十一研究所 Method for achieving self-defining test function sequence in a microwave measurement apparatus
CN105589739A (en) * 2014-11-13 2016-05-18 腾讯数码(深圳)有限公司 Process control system and method
CN109582577A (en) * 2018-11-30 2019-04-05 成都德辰博睿信息技术有限公司 Wireless device detection method, device, computer equipment and storage medium
CN109614085A (en) * 2018-10-23 2019-04-12 深圳微迅信息科技有限公司 Function realizing method, device, computer equipment and storage medium
CN109634253A (en) * 2018-11-13 2019-04-16 武汉精能电子技术有限公司 A kind of automatic flow control method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9996368B2 (en) * 2007-12-28 2018-06-12 International Business Machines Corporation Method to enable semi-automatic regeneration of manuals by saving manual creation operations as scripts
US20120117537A1 (en) * 2010-11-02 2012-05-10 Velocio Networks, Inc. Flow Chart Programming Platform for Testers and Simulators

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000079350A1 (en) * 1999-06-22 2000-12-28 Privity Ventures, Inc. Process automation
US7136865B1 (en) * 2001-03-28 2006-11-14 Siebel Systems, Inc. Method and apparatus to build and manage a logical structure using templates
WO2013170525A1 (en) * 2012-05-16 2013-11-21 Liu Yong Method and device for presenting or drawing logical flow relationship of computer application program organization in the form of logical flow chart
CN103543359A (en) * 2013-10-28 2014-01-29 中国电子科技集团公司第四十一研究所 Method for achieving self-defining test function sequence in a microwave measurement apparatus
CN105589739A (en) * 2014-11-13 2016-05-18 腾讯数码(深圳)有限公司 Process control system and method
CN109614085A (en) * 2018-10-23 2019-04-12 深圳微迅信息科技有限公司 Function realizing method, device, computer equipment and storage medium
CN109634253A (en) * 2018-11-13 2019-04-16 武汉精能电子技术有限公司 A kind of automatic flow control method and system
CN109582577A (en) * 2018-11-30 2019-04-05 成都德辰博睿信息技术有限公司 Wireless device detection method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110531977A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN110531977B (en) Instrument automatic control method, device, computer equipment and storage medium
CN110389896A (en) Automatic code analysis and testing method, device and computer-readable storage medium
CN103019839B (en) A kind of file fast display method, device and terminal
CN110320318B (en) Sample analysis apparatus, method and storage medium
WO2020006878A1 (en) Voice recognition test method and apparatus, computer device and storage medium
CN110716866B (en) Code quality scanning method, device, computer equipment and storage medium
CN110162466B (en) Automatic test method, device, computer equipment and storage medium
WO2018121582A1 (en) Script generation method and device
CN114328276A (en) Test case generation method and device, and test case display method and device
CN110059002B (en) Test data generation method, test equipment, storage medium and device
CN110321284A (en) Test data input method, device, computer equipment and storage medium
CN111026669A (en) Test log management method, test log management device and storage medium
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
CN109524103A (en) Analyzer resurveys method, apparatus, computer equipment and storage medium automatically
WO2019019955A1 (en) Gesture test method and apparatus, computer device and storage medium
CN114090436A (en) Test method and device
CN112102911A (en) Sample reinspection method, sample reinspection device, computer equipment and storage medium
CN106528412B (en) A kind of related gesture dispensing test frame of Android application
CN111831535A (en) A code positioning method, device and computer storage medium for a test case
CN113672826B (en) Page jump method, device, computer equipment and storage medium
CN102135970A (en) Method and device for downloading website content
CN113220304B (en) Redundancy detection method, device, electronic device and readable storage medium
CN113885963B (en) Secondary development file execution method, device and storage medium
CN119150363B (en) Application privacy security detection method based on large language model driving
CN116974653B (en) Class loading method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40011030

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room A1, 11th Floor, Shoushi Building, 245-251 Hennessy Road, Wan Chai, Hong Kong, China

Patentee after: Hong Kong Dade Changlong Biotechnology Co.,Ltd.

Country or region after: Hongkong, China

Address before: Room A2, 11th Floor, On Lok Industrial Building, 109-111 On Lok Road, Yuen Long, New Territories, Hong Kong, China

Patentee before: Hong Kong Dade Changlong Biotechnology Co.,Ltd.

Country or region before: Hongkong, China

CP03 Change of name, title or address