Instrument control method and apparatus, electronic device, and storage medium
Patent Information
- Application Number
- PCT/CN2024/080327
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-03-06
- Publication Date
- 2025-10-02
AI Technical Summary
In the existing technology, instrument control is limited by the written control code, which cannot meet the differentiated needs of users for instrument control and has limited applicable scenarios.
An instrument control method is provided. By displaying a control instruction configuration interface and a table of instructions to be configured, the user is allowed to configure instrument control instructions and execute actions, including custom cell generation classes and preset instrument control interfaces, to achieve flexible configuration.
It realizes flexible configuration of instrument control, can be applied to various scenarios, meets the differentiated needs of users, and simplifies the operation process.
Smart Images

Figure CN2024080327_02102025_PF_FP_ABST
Abstract
Description
Instrument control method, device, electronic equipment and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of device control technology, for example, to an instrument control method, device, electronic device and storage medium. Background Art
[0002] In related technologies, instrument control is often achieved by technicians writing control codes. Once the control codes are written, the instrument can only execute the actions set by the control codes, which limits the application scenarios of instrument control and cannot meet the differentiated needs of users for instrument control.
[0003] Summary of the Invention
[0004] The present application provides an instrument control method, device, electronic device and storage medium to achieve flexible configuration of instrument control instructions so that the instrument control can be applied to various scenarios, thereby meeting the differentiated needs of users for instrument control.
[0005] According to one aspect of the present application, an instrument control method is provided, the method comprising: in response to a control instruction configuration operation for a target instrument, displaying a control instruction configuration interface, and displaying a table of instructions to be configured in the control instruction configuration interface; in response to an instruction information configuration operation for the table of instructions to be configured, obtaining an instrument control table corresponding to the target instrument, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action.
[0006] According to another aspect of the present application, an instrument control device is provided. The device includes: a to-be-configured instruction list display module, configured to display a control instruction configuration interface in response to a control instruction configuration operation for a target instrument, and to display the to-be-configured instruction list within the control instruction configuration interface; and an instrument control list acquisition module, configured to obtain an instrument control list corresponding to the target instrument in response to an instruction information configuration operation for the to-be-configured instruction list, wherein the instrument control list includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action.
[0007] According to another aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the instrument control method described in any embodiment of the present application.
[0008] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the instrument control method described in any embodiment of the present application when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0010] FIG1 is a flow chart of an instrument control method provided in Example 1 of the present application;
[0011] FIG2 is a flow chart of an instrument control method provided in Example 2 of the present application;
[0012] FIG3 is a flow chart of an instrument control method provided in Example 3 of the present application;
[0013] FIG4 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0014] FIG5 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0015] FIG6 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0016] FIG7 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0017] FIG8 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0018] FIG9 is a schematic structural diagram of an instrument control device provided in Example 4 of the present application;
[0019] FIG10 is a schematic structural diagram of an electronic device provided in Example 5 of the present application. DETAILED DESCRIPTION
[0020] The following will describe the technical solutions in the embodiments of this application in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0021] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus that includes a series of steps or units is not necessarily limited to those listed steps or units, but may include other steps or units that are not listed or are inherent to these processes, methods, products or apparatus.
[0022] Example 1
[0023] Figure 1 is a flow chart of an instrument control method provided in Example 1 of the present application. This embodiment is applicable to situations where an instrument is controlled. The method can be executed by an instrument control device, which can be implemented in the form of hardware and / or software. The instrument control device can be configured in an electronic device such as a computer or a server.
[0024] As shown in FIG1 , the method of this embodiment includes the following steps.
[0025] S110 , in response to a control instruction configuration operation for a target instrument, displaying a control instruction configuration interface, and displaying a table of instructions to be configured in the control instruction configuration interface.
[0026] The target instrument can be understood as the instrument to be controlled. The number of target instruments can be one, two, or more. In an embodiment of the present application, the method for determining the target instrument can be to display at least one instrument identifier, respond to an identifier selection operation for the instrument identifier, determine a selected instrument identifier, and use the instrument corresponding to the selected instrument identifier as the target instrument. The instrument identifier can be used to distinguish different instruments. The identifier selection operation can be understood as an operation for selecting an instrument identifier.
[0027] A control instruction configuration operation can be understood as an operation used to configure the control instructions of a target instrument. For example, a control instruction configuration operation can be a control triggering operation acting on a control instruction configuration control. The control instruction configuration interface can be understood as an interface used to configure the control instructions of a target instrument. The control instruction configuration interface displays a table of instructions to be configured. The table of instructions to be configured can be understood as a data table used to configure the instrument control instructions of the target instrument.
[0028] The instrument to be controlled, i.e., the target instrument, is determined. After receiving a control instruction configuration operation for the target instrument, a control instruction configuration interface may be displayed, and a table of instructions to be configured may be determined. The table of instructions to be configured may then be displayed in the control instruction configuration interface.
[0029] As an optional implementation in the embodiment of the present application, displaying the instruction table to be configured on the control instruction configuration interface may include: generating the instruction table to be configured by calling a custom cell generation class, and displaying the instruction table to be configured on the control instruction configuration interface.
[0030] The custom cell generation class can be used to create a data table for controlling the target instrument, i.e., a table of instructions to be configured. The fields that need to be configured in the table of instructions to be configured may include a control instruction field and an execution action field. The control instruction field can be used to set the control instructions for the instrument. The execution action field can be used to set the action to be performed by the instrument. In an embodiment of the present application, the scripting language of the custom cell generation class can be the Qt scripting language. The custom cell generation class can be implemented by inheriting from the QTableWidget class.
[0031] Load the custom cell generation class. After loading, execute the custom cell generation class to create a data table for controlling the target instrument, i.e., a table of commands to be configured. After the table of commands to be configured is created, it can be displayed in the control command configuration interface.
[0032] As another optional implementation in the embodiments of the present application, displaying the to-be-configured instruction table on the control instruction configuration interface may include: if an instrument control table already configured for a target instrument exists, using the configured instrument control table as the to-be-configured instruction table for the target instrument. This approach has the advantage of eliminating the need to recreate the instrument control table for the target instrument, thereby reducing memory usage.
[0033] S120. In response to the instruction information configuration operation on the instruction table to be configured, obtain an instrument control table corresponding to the target instrument, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction.
[0034] The command information configuration operation can be understood as an operation for configuring control command information for a target instrument. The instrument control table can be understood as a data table obtained by configuring the command information for the target instrument. The instrument control table can be used to control the target instrument to perform a series of actions. In the embodiments of the present application, after obtaining the instrument control table configured for the target instrument, the instrument control table can be stored in a preset storage space. The preset storage space can be set according to actual needs and is not limited here.
[0035] In an embodiment of the present application, an instrument control table may include at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction. The instrument control instruction may be used to control the target instrument to execute the instrument execution action. The instrument execution action may be understood as the action that the target instrument needs to perform in response to the instrument control instruction. Optionally, the instrument control instruction and the instrument execution action corresponding to the instrument control instruction may be stored correspondingly in the instrument control table. Exemplarily, the instrument control instruction and the instrument execution action corresponding to the instrument control instruction may be stored in the same row or column in the instrument control table.
[0036] In an embodiment of the present application, obtaining an instrument control table corresponding to the target instrument in response to a configuration operation of instruction information for the to-be-configured instruction table may include: obtaining a data table including instrument control instructions in response to the configuration operation of instruction information for the to-be-configured instruction table. After obtaining the data table, analyzing each instrument control instruction in the data table to determine an instrument execution action corresponding to the instrument control instruction. Furthermore, adding the instrument execution action corresponding to the instrument control instruction to the data table may result in obtaining an instrument control table corresponding to the target instrument.
[0037] In an embodiment of the present application, an instrument control table may include an instrument control code and instrument control parameters corresponding to the instrument control code. An instrument control code may be understood as a function code for controlling an instrument. Alternatively, the instrument control code may be the name of an instrument control function. An instrument control function may be understood as a method written in a computer language that can control an instrument, i.e., a program code for controlling an instrument. Instrument control parameters may be understood as parameters used to control a target instrument, causing the target instrument to perform an action consistent with the parameters. The number of instrument control parameters may be one, two, or more.
[0038] Based on this, the configuration operation in response to the instruction information of the instruction table to be configured to obtain the instrument control table corresponding to the target instrument may include: receiving an instrument control code input based on the instruction table to be configured and an instrument control parameter corresponding to the instrument control code, to obtain the instrument control table corresponding to the target instrument.
[0039] In an embodiment of the application, the instrument control codes and the instrument control parameters corresponding to each instrument control code may be stored in correspondence within the instrument control table. In the instrument control table, the instrument control codes and the instrument control parameters corresponding to each instrument control code may be stored in the same row or column. This arrangement has the advantage of not only intuitively displaying the correspondence between the instrument control codes and the instrument control parameters, but also enabling quick location of the instrument control code to modify the corresponding control parameters, resulting in simple and convenient operation.
[0040] For ease of understanding, the present embodiment provides an exemplary instrument control table, such as Table 1:
[0041] Table 1
[0042] As shown in the table above, three instrument control instructions are configured for the target instrument, meaning three instrument actions are set. Instrument control instruction number 1 includes the instrument control code TSV, instrument control parameter A = 1, and instrument control parameter B = 28.0. The TSV instrument control code sets the target temperature for temperature control. Instrument control parameter A = 1 indicates that the temperature control component is identified as 1, and instrument control parameter B = 28.0 indicates that the target temperature is set to 28.0°C. The instrument action corresponding to instrument control instruction number 1 is: Set the temperature of the temperature control component identified as 1 in the target instrument to 28.0°C. Instrument control instruction number 2 includes the instrument control code TEN, instrument control parameter A = 1, and instrument control parameter B = 1. The TEN instrument control code enables temperature control. Instrument control parameter A = 1 indicates that the temperature control module is identified as 1, and instrument control parameter B = 1 indicates enable. The instrument action corresponding to instrument control instruction number 2 is: Enable the temperature control module identified as 1 in the target instrument. It can be understood that when the instrument control parameter B in the instrument control instruction with sequence number 2 is 0, the instrument execution action corresponding to the instrument control instruction with sequence number 2 is: turning off the temperature control module identified as 1 in the target instrument.
[0043] The instrument control instruction with sequence number 3 includes the instrument control code AMR, instrument control parameter A=X, and instrument control parameter B=NULL. The AMR instrument control code resets one axis of the robotic arm. Instrument control parameter A=X represents the X-axis, and instrument control parameter B=NULL represents that instrument control parameter B is empty. The instrument action corresponding to the instrument control instruction with sequence number 3 is: Reset the robotic arm for the X-axis. The instrument control instruction with sequence number 4 includes the instrument control code ARW, instrument control parameter A=X, and instrument control parameter B=NULL. The ARW instrument control code waits for the X-axis to be reset. Instrument control parameter A=X represents the X-axis, and instrument control parameter B=NULL represents that instrument control parameter B is empty. The instrument action corresponding to the instrument control instruction with sequence number 4 is: Wait for the X-axis to be reset. The instrument control instruction with sequence number 5 includes the instrument control code ASS, the instrument control parameter A is Y, and the instrument control parameter B is 1000. Among them, the function of the ASS instrument control code is to set the speed of one axis of the robot arm, the instrument control parameter A is Y, which means setting the movement speed of the Y axis, and the instrument control parameter B is 1000, which means setting the movement speed to 1000.
[0044] The instrument control instruction numbered 5 corresponds to the following instrument action: Set the robot arm's Y-axis speed to 1000. The instrument control instruction numbered 6 includes the instrument control code AMM, the instrument control parameter A=Y, and the instrument control parameter B=1000. The AMM instrument control code moves a specific axis of the robot arm, the instrument control parameter A=Y indicates movement of the Y axis, and the instrument control parameter B=1000 indicates movement to position 1000. The instrument control instruction numbered 6 corresponds to the following instrument action: Control the robot arm to move the Y axis to position 1000.
[0045] In an embodiment of the present application, the method may further include: in response to an instruction information adjustment operation for the instrument control table, updating the instrument control table based on the instruction information adjustment operation. The instruction information adjustment operation can be understood as an operation for adjusting the instrument control instructions in the instrument control table. In an embodiment of the present application, the instruction information adjustment operation may include at least one of an operation of adding an instruction, modifying an instruction, and deleting an instruction. That is, the instruction information adjustment operation may include at least one of an instruction adding operation, an instruction deleting operation, and an instruction modifying operation. The instruction adding operation may be understood as an operation of adding a new instruction to the instrument control table. The instruction deleting operation may be understood as an operation of deleting the instrument control instruction in the instrument control table. The instruction modifying operation may be understood as an operation of modifying the instrument control instruction in the instrument control table.
[0046] The technical solution of the embodiment of the present application, by responding to the control instruction configuration operation for the target instrument, displays a control instruction configuration interface, and displays the instruction table to be configured in the control instruction configuration interface. This technical solution provides a visual instruction table to be configured to configure the control instruction information of the instrument, which is simple and convenient to operate. In response to the instruction information configuration operation for the instruction table to be configured, an instrument control table corresponding to the target instrument is obtained, which can realize flexible configuration of the control instructions of the target instrument, so that the instrument control meets the instrument control requirements. The instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action. The technical solution of the embodiment of the present application solves the technical problem that the existing instrument control has certain limitations in the usage scenarios, and realizes the flexible configuration of instrument control instructions so that the control of the instrument can be applied to a variety of scenarios, thereby meeting the differentiated needs of users for instrument control.
[0047] Example 2
[0048] FIG2 is a flow chart of an instrument control method provided in Example 2 of the present application. Based on the aforementioned embodiment, the instrument control method implemented in the present application optionally further includes: determining a target storage space for storing the instrument control table in response to an instrument startup operation for the target instrument; reading the instrument control table from the target storage space, wherein the instrument control table is configured with multiple instrument control instructions; and sequentially controlling the target instrument to execute the instrument execution actions corresponding to the multiple instrument control instructions according to the execution order of the multiple instrument control instructions. Technical features identical or similar to those in the aforementioned embodiment are not further described herein.
[0049] As shown in FIG2 , the method of this embodiment includes the following steps.
[0050] S210 : In response to a control instruction configuration operation for a target instrument, a control instruction configuration interface is displayed, and a table of instructions to be configured is displayed in the control instruction configuration interface.
[0051] S220: In response to the instruction information configuration operation on the instruction table to be configured, obtain an instrument control table corresponding to the target instrument, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction.
[0052] S230: In response to an instrument startup operation for the target instrument, determine a target storage space for storing the instrument control table.
[0053] An instrument startup operation can be understood as an operation used to control the startup of a target instrument. This can be a pressing operation on an instrument startup button, or a control triggering operation on an instrument startup control. The target storage space can be understood as the storage space used to store the instrument control table for the target instrument. Upon receiving an instrument startup operation for the target instrument, the target storage space for storing the instrument control table can be determined.
[0054] S240: Read the instrument control table from the target storage space, wherein the instrument control table is configured with multiple instrument control instructions.
[0055] After determining the storage space for storing the instrument control table of the target instrument, the instrument control table can be read from the target storage space. After reading the instrument control table, the instrument control table can be analyzed to obtain the instrument control instructions in the instrument control table.
[0056] S250 : Control the target instrument in sequence to execute instrument execution actions corresponding to the multiple instrument control instructions according to the execution order of the multiple instrument control instructions.
[0057] Determine a sequential execution order for the plurality of instrument control instructions, and then, based on the sequential execution order, sequentially control the target instrument to execute the instrument execution actions corresponding to the plurality of instrument control instructions. Sequentially controlling the target instrument to execute the instrument execution actions corresponding to the plurality of instrument control instructions based on the sequential execution order may be, based on the sequential execution order, sequentially calling preset instrument control interfaces corresponding to the plurality of instrument control instructions to control the target instrument to execute the instrument execution actions corresponding to the plurality of instrument control instructions. The preset instrument control interface may be an interface obtained by encapsulating a preset instrument control script for controlling the target instrument to execute the instrument execution actions.
[0058] For example, the target instrument is controlled using the instrument control instructions configured in Table 1. First, the temperature of the temperature control module identified as 1 in the target instrument is set to 28.0°C. Then, the temperature control module identified as 1 in the target instrument is enabled. After that, the control robot arm of the target instrument is controlled to move the Y axis to the 1000 position.
[0059] In an embodiment of the present application, determining the execution order of the multiple instrument control instructions can be performed by determining the execution order of the multiple instrument control instructions based on instruction indexes of the multiple instrument control instructions in the instrument control table. The instruction index can be understood as a sequence number of the instrument control instruction, which can be used to determine the execution order of the instrument control instructions. Alternatively, the order in which the multiple instrument control instructions are arranged in the instrument control table can be used as the execution order of the multiple instrument control instructions.
[0060] Based on the above embodiment, the method may further include: displaying operating status information of the target instrument in response to an operating status viewing operation on the target instrument. The operating status viewing operation can be understood as an operation for viewing the operating status of the target instrument. The operating status information can be understood as operating information of the target instrument, and may include operating information of multiple modules in the target instrument. During the process of controlling the target instrument to execute a corresponding instrument execution action, upon receiving the operating status viewing operation on the target instrument, the operating status information of the target instrument can be obtained; and the operating status information can then be displayed.
[0061] The technical solution of the embodiment of the present application determines a target storage space for storing the instrument control table in response to an instrument startup operation for the target instrument; reads the instrument control table from the target storage space, wherein the instrument control table is configured with multiple instrument control instructions; and controls the target instrument to execute the instrument execution actions corresponding to the multiple instrument control instructions in sequence according to the execution order of the multiple instrument control instructions, thereby controlling the workflow of the target instrument according to the execution order of the configured instructions in the instrument control table, so that the target instrument can be applied to a variety of scenarios.
[0062] Example 3
[0063] FIG3 is a flow chart of an instrument control method provided in Example 3 of the present application. Based on the aforementioned embodiment, optionally, the instrument control method implemented in the present application further includes: in response to an instrument control instruction for the target instrument, querying the instrument execution action corresponding to the instrument control instruction in the instrument control table; determining a preset instrument control interface corresponding to the instrument execution action, and controlling the target instrument to execute the instrument execution action by calling the preset instrument control interface; wherein the preset instrument control interface is an interface obtained by encapsulating a preset instrument control script for controlling the target instrument to execute the instrument execution action. Technical features identical or similar to those in the aforementioned embodiment are not repeated here.
[0064] As shown in FIG3 , the method of this embodiment includes the following steps.
[0065] S310 : In response to a control instruction configuration operation for a target instrument, a control instruction configuration interface is displayed, and a table of instructions to be configured is displayed in the control instruction configuration interface.
[0066] S320: In response to the instruction information configuration operation on the instruction table to be configured, obtain an instrument control table corresponding to the target instrument, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction.
[0067] S330 : In response to the instrument control instruction for the target instrument, query the instrument control table for an instrument execution action corresponding to the instrument control instruction.
[0068] After receiving an instrument control instruction for the target instrument, the instrument control instruction can be matched with the instrument control instructions in the instrument control table. When a match is found, the instrument execution action corresponding to the instrument control instruction can be determined. It should be noted that in the embodiment of the present application, after the instrument control table is configured for the target instrument, the instrument execution action configured for the instrument control instruction can be searched from the instrument control table based on the instrument control instruction for the target instrument to control the target instrument to perform the corresponding action.
[0069] S340: Determine a preset instrument control interface corresponding to the instrument execution action, and control the target instrument to execute the instrument execution action by calling the preset instrument control interface.
[0070] The preset instrument control interface is an interface obtained by encapsulating a preset instrument control script for controlling the target instrument to execute the instrument execution action.
[0071] After determining the instrument execution action corresponding to the instrument control instruction, a preset instrument control interface corresponding to the instrument execution action can be determined based on the correspondence between the instrument execution action and the preset instrument control interface. The preset instrument control interface can then be called to control the target instrument to execute the instrument execution action.
[0072] Based on the above embodiment, the method may further include: displaying operating status information of the target instrument in response to an operating status viewing operation on the target instrument. The operating status viewing operation can be understood as an operation for viewing the operating status of the target instrument. The operating status information can be understood as operating information of the target instrument, and may include operating information of multiple modules in the target instrument. During the process of controlling the target instrument to execute the instrument execution action, upon receiving the operating status viewing operation on the target instrument, the operating status information of the target instrument can be obtained; and the operating status information can then be displayed.
[0073] The technical solution of the embodiment of the present application is to query the instrument execution action corresponding to the instrument control instruction for the target instrument in the instrument control table in response to the instrument control instruction; determine the preset instrument control interface corresponding to the instrument execution action, and control the target instrument to execute the instrument execution action by calling the preset instrument control interface; wherein, the preset instrument control interface is an interface obtained by encapsulating the preset instrument control script used to control the target instrument to execute the instrument execution action, so as to realize the function of automatically controlling the target instrument to execute the corresponding action based on the instrument control instruction after the configuration of the instrument control instruction for the target instrument is completed.
[0074] Example 4
[0075] FIG4 is a schematic diagram of the structure of an instrument control device provided in Example 4 of the present application. As shown in FIG4 , the device includes: a to-be-configured instruction table display module 410 and an instrument control table acquisition module 420 .
[0076] The to-be-configured instruction table display module 410 is configured to display a control instruction configuration interface in response to a control instruction configuration operation for a target instrument, and to display the to-be-configured instruction table in the control instruction configuration interface; the instrument control table acquisition module 420 is configured to obtain an instrument control table corresponding to the target instrument in response to an instruction information configuration operation for the to-be-configured instruction table, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action.
[0077] The technical solution of the embodiment of the present application, by responding to the control instruction configuration operation for the target instrument, displays a control instruction configuration interface, and displays the instruction table to be configured in the control instruction configuration interface. This technical solution provides a visual instruction table to be configured to configure the control instruction information of the instrument, which is simple and convenient to operate. In response to the instruction information configuration operation for the instruction table to be configured, an instrument control table corresponding to the target instrument is obtained, which can realize flexible configuration of the control instructions of the target instrument, so that the instrument control meets the instrument control requirements. The instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action. The technical solution of the embodiment of the present application solves the technical problem that the existing instrument control has certain limitations in the usage scenarios, and realizes the flexible configuration of instrument control instructions so that the control of the instrument can be applied to a variety of scenarios, thereby meeting the differentiated needs of users for instrument control.
[0078] Optionally, the instruction table to be configured display module 410 is configured to generate the instruction table to be configured by calling a custom cell generation class, and display the instruction table to be configured on the control instruction configuration interface; wherein the script design language of the custom cell generation class is Qt script design language.
[0079] Optionally, the instrument control table includes an instrument control code and an instrument control parameter corresponding to the instrument control code. The instrument control table obtaining module 420 is configured to: receive an instrument control code input based on the instruction table to be configured and an instrument control parameter corresponding to the instrument control code, and obtain an instrument control table corresponding to the target instrument; wherein the instrument control code and the instrument control parameter corresponding to each instrument control code are stored correspondingly in the instrument control table.
[0080] Optionally, the device also includes a first control module 430 (see Figure 5 or Figure 6); the first control module 430 is configured to: respond to an instrument control instruction for the target instrument, query the instrument execution action corresponding to the instrument control instruction in the instrument control table; determine a preset instrument control interface corresponding to the instrument execution action, and control the target instrument to execute the instrument execution action by calling the preset instrument control interface; wherein, the preset instrument control interface is an interface obtained by encapsulating a preset instrument control script used to control the target instrument to execute the instrument execution action.
[0081] Optionally, the device also includes a second control module 440 (see Figure 5 or Figure 7); the second control module 440 is configured to: determine a target storage space for storing the instrument control table in response to an instrument startup operation for the target instrument; read the instrument control table from the target storage space, wherein the instrument control table is configured with multiple instrument control instructions; and control the target instrument to execute the instrument execution actions corresponding to the multiple instrument control instructions in sequence according to the order in which the multiple instrument control instructions are executed.
[0082] Optionally, the apparatus further includes an operation information viewing module 450 (see FIG. 5 , FIG. 8 or FIG. 9 ), and the operation information viewing module 450 is configured to: display the operation status information of the target instrument in response to an operation of viewing the operation status of the target instrument.
[0083] Optionally, the device also includes an instruction information adjustment module, which is configured to: respond to an instruction information adjustment operation on the instrument control table, and update the instrument control table based on the instruction information adjustment operation, wherein the instruction information adjustment operation includes at least one of adding instructions, modifying instructions, and deleting instructions.
[0084] The instrument control device provided in the embodiments of the present application can execute the instrument control method provided in any embodiment of the present application, and has functional modules corresponding to the execution method.
[0085] The multiple units and modules included in the above-mentioned instrument control device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the names of the multiple functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of this application.
[0086] Example 5
[0087] FIG10 shows a block diagram of an electronic device 10 that can be used to implement an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0088] As shown in FIG10 , the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 and a random access memory (RAM) 13, that is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0089] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0090] The processor 11 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the instrument control method.
[0091] In some embodiments, the instrument control method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the instrument control method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform the instrument control method in any other suitable manner (e.g., by means of firmware).
[0092] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0093] Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0094] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. Examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, erasable programmable read-only memory (EPROM) or flash memory, optical fibers, portable compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0095] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0096] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0097] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.
[0098] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the multiple steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.
Claims
1. An instrument control method, comprising: In response to a control instruction configuration operation for a target instrument, a control instruction configuration interface is displayed, and a table of instructions to be configured is displayed in the control instruction configuration interface; In response to the instruction information configuration operation for the instruction table to be configured, an instrument control table corresponding to the target instrument is obtained, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action.
2. The method according to claim 1, wherein The displaying of the table of commands to be configured in the control command configuration interface includes: The instruction table to be configured is generated by calling the custom cell generation class, and the instruction table to be configured is displayed on the control instruction configuration interface; wherein the script design language of the custom cell generation class is Qt script design language.
3. The method according to claim 1, wherein The instrument control table includes an instrument control code and an instrument control parameter corresponding to the instrument control code. The configuration operation in response to the instruction information of the instruction table to be configured obtains an instrument control table corresponding to the target instrument, including: receiving an instrument control code input based on the instruction table to be configured and an instrument control parameter corresponding to the instrument control code, and obtaining an instrument control table corresponding to the target instrument; The instrument control codes and the instrument control parameters corresponding to each instrument control code are stored correspondingly in the instrument control table.
4. The method according to claim 1, further comprising: In response to an instrument startup operation for the target instrument, determining a target storage space for storing the instrument control table; Reading the instrument control table from the target storage space, wherein the instrument control table is configured with a plurality of instrument control instructions; According to the execution order of the multiple instrument control instructions, the target instrument is controlled in sequence to execute the instrument execution actions respectively corresponding to the multiple instrument control instructions.
5. The method according to claim 1, further comprising: In response to an instrument control instruction for the target instrument, querying the instrument control table for an instrument execution action corresponding to the instrument control instruction; Determining a preset instrument control interface corresponding to the instrument execution action, and controlling the target instrument to execute the instrument execution action by calling the preset instrument control interface; The preset instrument control interface is an interface obtained by encapsulating a preset instrument control script for controlling the target instrument to execute the instrument execution action.
6. The method according to claim 4 or 5, further comprising: In response to an operation to view the operating status of the target device, operating status information of the target device is displayed.
7. The method according to claim 1, further comprising: In response to an instruction information adjustment operation on the instrument control table, the instrument control table is updated based on the instruction information adjustment operation, wherein the instruction information adjustment operation includes at least one of adding an instruction, modifying an instruction, and deleting an instruction.
8. An instrument control device comprising: a display module for a list of instructions to be configured, configured to display a control instruction configuration interface in response to a control instruction configuration operation for a target instrument, and to display a list of instructions to be configured in the control instruction configuration interface; An instrument control table obtaining module is configured to obtain an instrument control table corresponding to the target instrument in response to an instruction information configuration operation for the instruction table to be configured, wherein the instrument control table includes at least one instrument control instruction and an instrument execution action corresponding to the instrument control instruction, and the instrument control instruction is used to control the target instrument to execute the instrument execution action.
9. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the instrument control method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions, wherein the computer instructions are configured to enable a processor to implement the instrument control method according to any one of claims 1 to 7 when executed.