Disclosure of Invention
Based on this, it is necessary to provide an automated control method, an apparatus, a computer device and a storage medium for an instrument, aiming at the technical problem that the instrument performance test flow is low in modification efficiency.
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 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, executing the new flow data according to the operation steps defined by the script file so as to realize the control of the instrument.
In one embodiment, the step of obtaining the step modification data for the flow data includes:
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.
In one embodiment, the step of obtaining the step modification data for the flow data includes:
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.
In one embodiment, the step of obtaining the step modification data for the flow data 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.
In one embodiment, the step of obtaining the step modification data for the flow data includes:
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.
In one embodiment, the method further comprises:
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.
An automated control device for an instrument, the device comprising:
the flow data display module is used for displaying the flow data in a flow editing page in a flow chart mode when the flow data for automatically controlling the instrument are acquired;
A step modification data acquisition module for acquiring step modification data for the flow data;
a new flow data construction module for constructing new flow data according to the flow data and the step modification data;
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.
In one embodiment, the step modifies the data acquisition module to further:
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.
In one embodiment, the step modifies the data acquisition module to further:
receiving a step adding instruction;
selecting corresponding step modification data according to the step addition instruction;
the new flow data execution module is further configured to:
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.
In one embodiment, the step modifies the data acquisition module to further:
displaying an action identification list of each action corresponding to the instrument in the flow editing page;
the step modification data selection module is further configured to:
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.
In one embodiment, the step modifies the data acquisition module to further:
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.
In one embodiment, 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.
A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of any one of the methods of automated control of an instrument above.
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 any one of the methods of automated control of an instrument.
When new steps are needed to be added in the workflow or the steps in the workflow are modified, the flow data for automatically controlling the instrument are acquired and displayed on a flow editing page in the form of a flow chart; acquiring step modification data for the flow data; constructing new flow data according to the flow data and the step modification data; then generating a script file for controlling the instrument according to the new flow data; the script file is called, new flow data is executed according to the operation steps defined by the script file, 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.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
FIG. 1 is a diagram of an application environment for an automated control method of an instrument in one embodiment. Referring to fig. 1, the automated control method of the instrument is applied to an automated control system of the instrument. The automation control system of the instrument includes a terminal 110 and an instrument 120. Terminal 110 and instrument 120 are connected by a connection, which may be local or a network. The terminal 110 may be a desktop terminal or a mobile terminal, and the mobile terminal may be at least one of a mobile phone, a tablet computer, a notebook computer, and the like.
In one embodiment, as shown in FIG. 2, an automated control method of an instrument is provided. The present embodiment is mainly exemplified by the application of the method to the terminal 110 in fig. 1. Referring to fig. 2, the method for automatically controlling the instrument specifically includes the following steps:
s202, when flow data for automatically controlling the instrument is obtained, the flow data is displayed on a flow editing page in a flow chart mode.
The instrument can be an instrument in the field of in-vitro diagnosis or an instrument in the field of chemical analysis, such as a biochemical analyzer, a chemiluminescent analyzer, a urine analyzer, a blood analyzer, a molecular diagnosis or a gene detection analyzer, and the like. The flow data used for automatically controlling the instrument comprises flow steps, step parameters, timing time among the flow steps and other information. The flow chart is used to visually represent the logical relationship between the instrument's working steps. The flow editing page is used for visually modifying the flow data.
In one embodiment, an application program for controlling the instrument is run on the instrument, the application program describing the control flow of the instrument by flow data. When the terminal detects a flow editing instruction, flow data for automatically controlling the instrument is obtained according to the flow editing instruction, a flow chart is generated according to flow steps, step parameters, timing time among the flow steps and other information of the obtained flow data, and then the generated flow chart is displayed on a flow editing page so that a user can modify the flow steps based on the displayed flow chart.
S204, step modification data aiming at the flow data is acquired.
In one embodiment, the user may modify each process step corresponding to the process data, such as modifying step parameters, adding or removing steps, nesting sub-processes, setting pre-steps, etc., based on the flow chart presented in the process editing page. After the user modifies the procedure step, the terminal acquires corresponding step modification data so as to construct new procedure data according to the step modification data.
In one embodiment, after the user modifies the flow step, the step modification data for the flow data is saved by triggering a save button on the flow editing interface. When the terminal detects that a save button on the flow editing page is triggered, corresponding step modification data are acquired.
S206, constructing new flow data according to the flow data and the step modification data.
The new flow data is constructed according to the flow data and the step modification data, and the step modification data can be added into the flow data, or deleted from the flow data, or replaced with the corresponding partial data in the flow data.
For example: the flow A displayed by the flow editing page comprises: step 1-step 2-step 3-step 4; the user adds step 5 after step 4 again based on the flow. When the terminal detects that the save button on the flow editing page is triggered, the flow data about step 5 is acquired, the flow data is used as step modification data of the flow A, and then the flow modification data is added into the flow data of the flow A, so that new flow data is obtained. Wherein the flow data regarding step 5 may be the step parameters of step 5.
S208, generating a script file for controlling the instrument according to the new flow data.
In one embodiment, after the terminal obtains the step modification data, new flow data is constructed according to the flow data and the step modification data, and then a corresponding script file is generated based on the new flow data, wherein the script file defines the working flow of the instrument, 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 working flow.
S210, when the script file is called, executing new flow 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 generated script file is called, the script file is parsed to obtain steps defined by the script file, and new flow data is executed according to the defined operation steps, thereby realizing control of the instrument.
In one embodiment, when the generated script file is called, a logical order between steps of each new flow data is determined, and then the determined logical order is used as an order of operation steps defined by the script file, and the new flow data is executed in the order.
In another embodiment, in the process of executing the new flow data according to the operation steps defined by the script file, the data generated in the execution process may also be acquired, and the acquired data may be displayed on the analysis result display page according to a preset format. The preset format can be a chart or a text.
In the above embodiment, when a new step is required to be added or a step in the workflow is required to be modified, the flow data is displayed on the flow editing page in the form of a flow chart by acquiring the flow data for automatically controlling the instrument; acquiring step modification data for the flow data; constructing new flow data according to the flow data and the step modification data; then generating a script file for controlling the instrument according to the new flow data; the script file is called, new flow data is executed according to the operation steps defined by the script file, 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.
In one embodiment, as shown in fig. 3, S204 may specifically include the following steps:
s302, when a modification instruction is detected, step parameters corresponding to the flow chart are obtained; the step parameters include action instruction parameters and timing time.
S304, the step parameters are displayed on a flow editing page.
Wherein the modification instruction may be triggered by a user at a flow edit page for a flow step of the presented flow chart. The step types of the flow steps include an action type, a timing type, or a flow type. The step parameters of the flow step include an action instruction parameter and a timing time, wherein the action instruction parameter can be an initial position of an action, a sampling amount of a sample or a reagent, and the like, and the timing time can be a time interval between two actions or a reaction time of the sample.
In one embodiment, the user triggers a modification instruction for the flow steps of the illustrated flow chart on the flow editing page, and when the terminal detects the modification instruction, step parameters corresponding to the flow chart are obtained. The modification instruction may correspond to any one or more steps selected by a user in the flowchart, or may correspond to all steps in the flowchart. When the modification instruction corresponds to any one or more steps in the flow chart, the corresponding terminal acquires the step parameters of the any one or more steps; when the modification instruction corresponds to all steps of the flowchart, the corresponding terminal acquires the step parameters of each step in the flowchart. After the terminal acquires the step parameters corresponding to the flow chart, the acquired step parameters are displayed on a flow editing page.
S306, step modification data obtained by modifying the step parameters are obtained.
In one embodiment, after the terminal displays the acquired step parameters on the flow editing page, the user can browse the step parameters corresponding to the flow chart on the flow editing page and make relevant modifications to the step parameters. After the user modifies the step parameters, the step modification data is saved by triggering a save button on the flow editing interface. And when the terminal detects that the save button on the flow editing page is triggered, acquiring the step modification data.
In the above embodiment, when the terminal detects the modification instruction, the step parameters corresponding to the flowchart are acquired, the step parameters are displayed on the flow editing page, and after the user modifies the step parameters, the step modification data are acquired, so that the step parameters can be modified without redevelopment of the computer program of the instrument, thereby improving the working efficiency.
In another embodiment, S204 may specifically further include receiving a step addition instruction; and selecting corresponding step modification data according to the step addition instruction.
The step adding instruction can carry step content or identification of the target adding step. Wherein the identification may be a timing identification, an action identification or a flow identification. The step content corresponds to the identification, for example, the step content is: the tongs grasp the cup, inhale the appearance needle and inhale the appearance, the sign that corresponds can be: the method comprises the steps of grabbing a cup and sucking samples, wherein two marks, namely a grabbing cup and sucking samples, are action marks.
In one embodiment, a user triggers a step adding instruction on a flow editing page aiming at the displayed flow chart, wherein the step adding instruction carries step content of a target adding step, when the terminal detects the step adding instruction, the step adding instruction is analyzed to obtain step content of the target adding step, then corresponding step parameters are obtained according to the step content of the target adding step, and the obtained step parameters are used as step modification data.
In one embodiment, when the terminal detects the step addition instruction, the step addition instruction is parsed, the identifier of the target addition step is selected according to the step addition instruction, then the step parameter corresponding to the identifier is obtained, and the obtained step parameter is used as step modification data determined as flow data. For example, if the step identifier of the selected target adding step is a timing identifier, acquiring a corresponding timing time; the step identification of the selected target adding step is an action identification, and corresponding action instruction parameters are obtained; if the step identifier of the selected target adding step is a flow identifier, acquiring flow data corresponding to the flow identifier.
In one embodiment, the terminal displays the acquired step parameters and the flow 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 adding step in the flow editing page, acquiring modification data of the step parameters of the target adding step, and determining the modification data of the step parameters of the target adding step as step modification data of the flow data.
In one embodiment, in the action identifier list of each action corresponding to the flow editing page display instrument, when the terminal detects the step adding instruction, the step adding instruction is analyzed, in the displayed action identifier list, the action identifier corresponding to the step adding instruction is selected, then the action instruction parameter corresponding to the selected action identifier is acquired, and the acquired action instruction parameter is determined as step modification data of the flow data.
In one embodiment, the terminal displays the acquired action instruction parameters on a flow editing page so that a user can modify the action instruction parameters of the target adding step. After the user modifies the action instruction parameters of the target adding step in the flow editing page, the modification data of the action instruction parameters of the target adding step is obtained, and the modification data of the action instruction parameters of the target adding step is determined as step modification data of the flow data.
In one embodiment, the process identifier corresponding to the instrument is displayed on the process editing page. Wherein the flow identification is an identification of the flow supported by the instrument. When the terminal detects the step adding instruction, the step adding instruction is analyzed, a flow identifier corresponding to the step adding instruction is selected from the displayed flow identifier list, then flow data corresponding to the selected flow identifier is acquired, and the acquired flow data is determined as step modification data of the flow data.
In one embodiment, the terminal displays the acquired flow data of the flow identifier on a flow editing page in the form of a flow chart so that the user can modify the flow data of the target adding step. After the user modifies the flow data of the target adding step in the flow editing page, the modification data of the flow data of the target adding step is obtained, and the modification data of the flow data of the target adding step is determined as the step modification data of the flow data.
In the above embodiment, the user may trigger a step addition instruction on the flow editing page for the illustrated flow chart. When the terminal detects the step adding instruction, the corresponding step modification data is selected according to the step adding instruction, and new flow steps can be added without redevelopment of a computer program of the instrument, so that the working efficiency is improved.
In one embodiment, as shown in fig. 4, S204 may specifically further include the following steps:
s402, showing the sub-flow identification in the flow editing page.
The sub-flow identifier is an identifier of a sub-flow, and the sub-flows are opposite, for example, the flow a may be nested in the flow B, and then the flow a is a sub-flow relative to the flow B. When executing the flow data, the sub-flow may be executed during the execution of the main flow, i.e., the flow a is executed during the execution of the flow B.
In one embodiment, the terminal determines a sub-flow identifier supporting nesting to the flow data according to the acquired flow data, and displays the determined sub-flow identifier on a flow editing page.
S404, when the target sub-flow identification in the sub-flow identification is detected to be triggered, sub-flow data corresponding to the target sub-flow identification is acquired.
S406, using the sub-flow data as step modification data of the flow data.
In one embodiment, the user may select the presented sub-process identifier on the process editing page and trigger the selected target sub-process to implement nesting of the target sub-process in the flow chart of the currently presented main process. When the terminal detects that a target sub-flow identifier in the sub-flow identifiers is triggered, sub-flow data corresponding to the target sub-flow identifier is acquired, and the acquired sub-flow data is used as step modification data of flow editing data.
In the above embodiment, the user may select, on the flow editing page, for the illustrated flow chart and the sub-flow identifier corresponding to the flow, the flow identifier of the sub-flow that may be embedded in the flow chart. When the terminal detects that a target sub-flow identifier in the sub-flow identifiers is triggered, sub-flow data corresponding to the target sub-flow identifier is acquired; and using the sub-flow data as step modification data of the flow data. The new process steps including the main process and the sub-process can be obtained without re-developing the computer program of the instrument, thereby improving the working efficiency.
In one embodiment, the automated control method of the instrument further comprises: after the terminal constructs new flow data according to the flow data and the step modification data, the new flow data is displayed on a flow editing page in the form of a new flow chart. In the process edit page, the user may adjust the logical order of the steps of the new process data, such as specifying the preceding steps.
In one embodiment, according to the operation of the user on the process editing page, the terminal selects a target step from the steps corresponding to the new process data, and then determines a pre-step of the target step from the steps corresponding to the new process data. The logic sequence of the target step and the pre-step of the target step when executed is as follows: the pre-step of the target step is executed first, and then the target step is executed. When the number of the pre-steps of the target step is plural, the logic sequence of the pre-steps when being executed is as follows: the plurality of pre-steps is performed simultaneously.
For example, the sample application process of a chemiluminescent analyzer has four steps, in order: the reaction cup is grabbed by the gripper, the reaction cup is placed on the incubator by the gripper, the sample is sucked by the sample-adding needle at the sample-sucking position, and the sample is discharged into the reaction cup on the incubator by the sample-adding needle. When the pre-step is not set, the flow is sequentially executed according to the above steps. The method comprises the steps of arranging a sample into a reaction cup on an incubator by a sample adding needle in the sample adding process, wherein the arranged pre-step is that a hand grip is used for placing the reaction cup on the incubator and the sample is sucked by the sample adding needle at a sample sucking position, and the execution process of the sample adding process after the pre-step is as follows: the reaction cup is grabbed by the gripper, the reaction cup is placed on the incubator by the gripper, the sample is sucked by the sample adding needle at the sample sucking position, and after the steps are finished, the sample is discharged into the reaction cup on the incubator by the sample adding needle.
In one embodiment, the terminal presents the new flow data in the form of a flow on a flow editing page. The flow table may contain information such as step content, step parameters, and pre-steps of the various steps of the new flow data. Through the flow chart, a user can browse or modify the step content and the step parameters of each step of the current edited flow, and can also determine the pre-step of the target step.
In the above embodiment, by designating the pre-step of the target step, a plurality of pre-steps can be executed simultaneously, and the logic sequence of the flow steps can be adjusted without redevelopment of the computer program of the instrument, thereby improving the working efficiency.
The process of executing the flow data to achieve instrument control is described below using a chemiluminescent analyzer as an example.
The chemiluminescent analyzer is provided with a sample adding needle, a gripper, a reading module and the like, wherein the sample adding needle can be used for absorbing samples, the gripper can be used for transferring sample reaction cups, and the reading module can be used for analyzing the reacted samples.
If the generated script file corresponds to a sample loading process, the specific process content is shown in table 1. After an operator clicks a button for executing a flow on an operation interface of the instrument, an application program starts to run, a script file is called, a control instruction is sent to a gripper, the gripper is controlled to grasp a reaction cup from the position of a variable 1, then the gripper is used for placing the reaction cup to the position of a number 1 of an incubator, meanwhile, a sample adding needle is controlled to absorb a sample 50uL, and then the sample adding needle is controlled to discharge the sample 50uL at the position of the number 1 of the incubator.
TABLE 1 sample addition procedure
If the generated script file corresponds to a reading flow, a sample adding flow is nested in the reading flow, and specific flow content is shown in table 2. When an operator clicks a button for executing a flow on an operation interface of an instrument, an application program starts to run and invokes a script file, a sample adding flow is executed first, and when the sample adding flow starts, a gripper grabs a reaction cup from a variable CA1 position. After the sample adding process is finished, starting timing, after the timing time reaches 40 seconds, grabbing the reaction cup from the number 1 position of the incubator by the gripper, placing the reaction cup into the reading station, then reading by the reading module of the instrument, grabbing the reaction cup from the reading station by the gripper after the reading is finished, and placing the reaction cup back to the number 1 position of the reading station.
Table 2 read flow
Step number
|
Type of step
|
Content of steps
|
Step parameters
|
Pre-step
|
1
|
Flow type
|
Sample adding flow
|
CA1
|
|
2
|
Timing type
|
Timing time
|
40s
|
1
|
3
|
Action type
|
Cup with gripper
|
1
|
2
|
4
|
Action type
|
Cup is put to tongs
|
Reading station
|
3
|
5
|
Action type
|
Reading the number
|
|
4
|
6
|
Action type
|
Cup with gripper
|
Reading station
|
5
|
7
|
Action type
|
Cup is put to tongs
|
1
|
6 |
Fig. 2-4 are flow diagrams of an automated control method for an instrument in one embodiment. It should be understood that, although the steps in the flowcharts of fig. 2-4 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 5, there is provided an automated control device for an instrument, the device comprising: a flow data display module 502, a step modification data acquisition module 504, a new flow data construction module 506, a script file generation module 508 and a new flow data execution module 510; wherein:
the flow data display module 502 is configured to display, when flow data for performing automation control on an instrument is acquired, the flow data in a flow editing page in a form of a flow chart;
a step modification data obtaining module 504, configured to obtain step modification data for the flow data;
a new flow data construction module 506, configured to construct new flow data according to the flow data and the step modification data;
a script file generating module 508, configured to generate a script file for controlling the instrument according to the new flow data;
the new flow data executing module 510 is configured to execute the new flow data according to the operation steps defined by the script file when the script file is called, so as to control the instrument.
In the above embodiment, when a new step is required to be added or a step in the workflow is required to be modified, the flow data is displayed on the flow editing page in the form of a flow chart by acquiring the flow data for automatically controlling the instrument; acquiring step modification data for the flow data; constructing new flow data according to the flow data and the step modification data; then generating a script file for controlling the instrument according to the new flow data; the script file is called, new flow data is executed according to the operation steps defined by the script file, 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.
In one embodiment, the step modification data acquisition module 504 is further configured to: 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 a flow editing page; step modification data obtained by modifying the step parameters are obtained.
In the above embodiment, when the terminal detects the modification instruction, the step parameters corresponding to the flowchart are acquired, the step parameters are displayed on the flow editing page, and after the user modifies the step parameters, the step modification data are acquired, so that the step parameters can be modified without redevelopment of the computer program of the instrument, thereby improving the working efficiency.
In one embodiment, the step modification data acquisition module 504 is further configured to: receiving a step adding instruction; selecting corresponding step modification data according to the step addition instruction; the new flow data execution module is further used for: determining a logic sequence among steps in the new flow data; the logic sequence is used as the sequence of the operation steps defined by the script file, and the new flow data is executed.
When the terminal detects the modification instruction, step parameters corresponding to the flow chart are acquired, the step parameters are displayed on a flow editing page, step modification data are acquired after the user modifies the step parameters, and the step parameters can be modified without redevelopment of a computer program of the instrument, so that the working efficiency is improved.
In one embodiment, the step of modifying the data acquisition module is further for: displaying an action identification list of each action corresponding to the instrument in a flow editing page; the step modification data selection module is further used for: 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.
In the above embodiment, the user may trigger a step addition instruction on the flow editing page for the illustrated flow chart. When the terminal detects the step adding instruction, selecting corresponding step modification data according to the step adding instruction; new flow steps can be added without redevelopment of the computer program of the instrument, thereby improving the working efficiency.
In one embodiment, the step of modifying the data acquisition module is further for: displaying the sub-process identification in a process editing page; when the target sub-flow identification in the sub-flow identification is detected to be triggered, sub-flow data corresponding to the target sub-flow identification is acquired; and using the sub-flow data as step modification data of the flow data.
In the above embodiment, the user may select, on the flow editing page, for the illustrated flow chart and the sub-flow identifier corresponding to the flow, the flow identifier of the sub-flow that may be embedded in the flow chart. When the terminal detects that a target sub-flow identifier in the sub-flow identifiers is triggered, sub-flow data corresponding to the target sub-flow identifier is acquired; and using the sub-flow data as step modification data of the flow data. The new process steps including the main process and the sub-process can be obtained without re-developing the computer program of the instrument, thereby improving the working efficiency.
In one embodiment, as shown in fig. 6, the apparatus further comprises: a target step selection module 512 and a pre-step determination module 514; wherein:
a target step selection module 512, configured to select a target step from the steps corresponding to the new flow data;
a pre-step determining module 514, configured to determine 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 for executing plural pre-steps simultaneously before executing the target step.
In the above embodiment, by designating the pre-step of the target step, a plurality of pre-steps can be executed simultaneously, and the logic sequence of the flow steps can be adjusted without redevelopment of the computer program of the instrument, thereby improving the working efficiency.
FIG. 7 illustrates an internal block diagram of a computer device in one embodiment. The computer device may be specifically the terminal 110 of fig. 1. As shown in fig. 7, the computer device includes a processor, a memory, a network interface, an input device, and a display screen connected by a system bus. The memory includes a nonvolatile 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 that, when executed by a processor, causes the processor to implement an automated control method of an instrument. The internal memory may also store a computer program which, when executed by the processor, causes the processor to perform the method of automated control of the instrument. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the apparatus for automatically controlling an instrument provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 7. The memory of the computer device may store various program modules that make up the automation control of the instrument, such as the process data presentation module 502, the step modification data acquisition module 504, the new process data construction module 506, the script file generation module 508, and the new process data execution module 510 shown in fig. 5. The computer program of each program module causes the processor to carry out the steps in the method for the automated control of an instrument according to each embodiment of the application described in the present specification.
For example, the computer apparatus shown in fig. 7 may perform S202 through the flow data presentation module 502 in the automation control device of the instrument shown in fig. 5. The computer device may execute S204 by the step modification data acquisition module 504. The computer device may execute S206 through the new flow data construction module 506. The computer device may execute S208 through the script file generation module 508. The computer device may perform S210 through the new flow data execution module 510.
In one embodiment, a computer device is provided 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: when flow data for automatically controlling the 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 as to realize the control of the instrument.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: 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 a flow editing page; step modification data obtained by modifying the step parameters are obtained.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: receiving a step adding instruction; selecting corresponding step modification data according to the step addition instruction; the computer program, when executed by the processor, performs the steps of the new flow data according to the operational steps defined by the script file, causes the processor to specifically further perform the steps of: determining a logic sequence among steps in the new flow data; the logic sequence is used as the sequence of the operation steps defined by the script file, and the new flow data is executed.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: displaying an action identification list of each action corresponding to the instrument in a flow editing page; when the computer program is executed by the processor, the steps of selecting corresponding step modification data according to the step addition instruction cause the processor to specifically further execute 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.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: displaying the sub-process identification in a process editing page; when the target sub-flow identification in the sub-flow identification is detected to be triggered, sub-flow data corresponding to the target sub-flow identification is acquired; and using the sub-flow data as step modification data of the flow data.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: selecting a target step from the steps corresponding to the new flow data; determining a pre-step of a target step from steps corresponding to the new flow data; when the number of the pre-steps is plural, the pre-steps are used for executing plural pre-steps simultaneously before executing the target step.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of: when flow data for automatically controlling the 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 as to realize the control of the instrument.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: 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 a flow editing page; step modification data obtained by modifying the step parameters are obtained.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: receiving a step adding instruction; selecting corresponding step modification data according to the step addition instruction; the computer program, when executed by the processor, performs the steps of the new flow data according to the operational steps defined by the script file, causes the processor to specifically further perform the steps of: determining a logic sequence among steps in the new flow data; the logic sequence is used as the sequence of the operation steps defined by the script file, and the new flow data is executed.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: displaying an action identification list of each action corresponding to the instrument in a flow editing page; when the computer program is executed by the processor, the steps of selecting corresponding step modification data according to the step addition instruction cause the processor to specifically further execute 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.
In one embodiment, the computer program, when executed by the processor, causes the processor to perform the steps of obtaining step modification data for the flow data, specifically performing the steps of: displaying the sub-process identification in a process editing page; when the target sub-flow identification in the sub-flow identification is detected to be triggered, sub-flow data corresponding to the target sub-flow identification is acquired; and using the sub-flow data as step modification data of the flow data.
In one embodiment, the computer program, when executed by the processor, causes the processor to further perform the steps of: selecting a target step from the steps corresponding to the new flow data; determining a pre-step of a target step from steps corresponding to the new flow data; when the number of the pre-steps is plural, the pre-steps are used for executing plural pre-steps simultaneously before executing the target step.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The 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 a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.