CN115525262A - Command execution method and device, nonvolatile storage medium and processor - Google Patents
Command execution method and device, nonvolatile storage medium and processor Download PDFInfo
- Publication number
- CN115525262A CN115525262A CN202211303452.8A CN202211303452A CN115525262A CN 115525262 A CN115525262 A CN 115525262A CN 202211303452 A CN202211303452 A CN 202211303452A CN 115525262 A CN115525262 A CN 115525262A
- Authority
- CN
- China
- Prior art keywords
- command
- executing
- target
- execution
- present application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/311—Functional or applicative languages; Rewrite languages
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13107—Logic symbols, plan LOP, functional block symbols FBS, functional programming FUP
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13144—GUI graphical user interface, icon, function bloc editor, OI operator interface
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13146—Process image blocks have a relation to software function blocks
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Computing Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a command execution method and device, a nonvolatile storage medium and a processor. Wherein, the method comprises the following steps: receiving a command input by a target object on a command line interface; analyzing and executing the command; and displaying a target graph on the graphical user interface, wherein the target graph is the execution result of the command. The method and the device solve the technical problems that complicated logic or large-scale configuration is easy to make mistakes through mouse operation and a large number of connection lines and settings need to be operated repeatedly, which is caused by the fact that a function block diagram configuration mode is only based on a graphical user interface, and the efficiency is low.
Description
Technical Field
The application relates to the field of industrial automation, in particular to a command execution method and device, a nonvolatile storage medium and a processor.
Background
The functional block diagram programming language is a common programming language in the field of modern industrial control. The principle is that the function is packaged in the function module, and a user only needs to know the use modes of input and output parameters without paying attention to the specific details of the function implementation. When the control system is programmed by engineering personnel, the engineering requirements can be met only by adding various functional blocks, bit numbers and various parameters in the functional block diagram configuration software and adding connecting lines among the input pins and the output pins of the functional blocks to establish a logical relationship. The configuration process is mainly completed by dragging various function blocks and position numbers on function block diagram configuration software and connecting the function blocks and the position numbers by dragging a mouse.
However, for complex control logic, the number of function blocks and bit numbers is large, the logic relationship between modules is complex, a large number of connecting wires need to be added among a large number of input and output pins, and a large number of connecting wires are dragged out through a mouse, so that the operation is complex, time-consuming, and prone to errors.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the application provides a command execution method and device, a nonvolatile storage medium and a processor, so as to at least solve the technical problems of low efficiency caused by the fact that complicated logic or large-scale configuration is easy to make mistakes through mouse operation and a large amount of connection and setting need to be repeatedly operated due to the fact that a function block diagram configuration mode is only based on a graphical user interface.
According to an aspect of the embodiments of the present application, there is provided a method for executing a command, including: receiving a command input by a target object on a command line interface; analyzing and executing the command; and displaying a target graph on the graphical user interface, wherein the target graph is the execution result of the command.
Optionally, parsing and executing the command includes: when the command is multiple, splitting the multiple commands into a single command; analyzing the single command according to the target sequence; the single command is executed according to the target sequence.
Optionally, before parsing and executing the command, the method further includes: checking whether the command is a command in a target command library; when the command is a command in the target command library, the command is executed.
Optionally, exception information for the command is displayed at the command line interface when the command is not a command in the target command library.
Optionally, the command line interface further displays at least the following information: the contents of the command and the result of the execution of the command.
Optionally, the command is in a format of at least one of: text and code.
Optionally, the method described above is applied at least in a functional block diagram program.
According to another aspect of the embodiments of the present application, there is also provided an apparatus for executing a command, including: the receiving module is used for receiving a command input by a target object on a command line interface; the execution module is used for analyzing and executing the command; and the display module is used for displaying the target graph on the graphical user interface, wherein the target graph is the execution result of the command.
According to still another aspect of the embodiments of the present application, there is provided a non-volatile storage medium, where the storage medium includes a stored program, and the program is configured to control, when running, an apparatus on which the storage medium is located to execute the above method for executing the command.
According to still another aspect of the embodiments of the present application, there is also provided a processor configured to execute a program stored in a memory, wherein the program executes the above method for executing a command.
In the embodiment of the application, a command input by a target object on a command line interface is received; analyzing and executing the command; the method comprises the steps of displaying a target graph on a graphical user interface, wherein the target graph is a command execution result mode, achieving the purposes of keeping the friendliness and usability of the original graphical user interface, completing configuration in a command line mode and executing commands in batches in a script file mode and the like by combining a command line and the graphical user interface, thereby achieving the technical effects of improving the configuration efficiency and improving the configuration correctness, and further solving the technical problems of low efficiency caused by the fact that a function block diagram configuration mode is only based on the graphical user interface, complicated logic or large-scale configuration is easy to make mistakes through mouse operation and a large amount of connection and setting needs to be operated repeatedly.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of executing a command according to an embodiment of the application;
FIG. 2 is a flow chart of another method of executing a command according to an embodiment of the application;
FIG. 3 is a functional block diagram configuration software according to an embodiment of the present application;
FIG. 4 is a block diagram of a command execution apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a hardware structure of a computer terminal (or an electronic device) according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In accordance with an embodiment of the present application, there is provided an embodiment of a method for executing commands, it is noted that the steps shown in the flowchart of the figure may be executed in a computer system such as a set of computer executable instructions, and that while a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different than that shown.
Fig. 1 is a flowchart of a method for executing a command according to an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step S102, receiving a command input by the target object on the command line interface.
According to an alternative embodiment of the present application, the target object may input a corresponding command in the command line interface to implement the processing of the function block diagram in the function block diagram configuration. For example, the target object can input a command with a command format of "add { block | ref | line } [ option ]" on the command line interface for the purpose of adding a function block, adding a data reference, and adding a connection line, and according to the function of the configuration software, various commands can be defined, and the following are part of the commands in this embodiment:
add command
Command format: add { block | ref | line } [ option ]
Adding a function block: add block < function Block type > [ function Block bit number name ] [ option ]
Add data reference: add ref < bit number name [. Pin ] > [ option ]
Add connecting line
Del command
Command format: del { block | ref | line } [ option ]
Deleting the function block: del block < function Block type > [ function Block bit number name ] [ option ]
Deleting data references: del ref < bit number > [ option ]
Deleting a connection
Rename command
The command format is as follows: rename { block | ref | line } [ option ]
Renaming the bit number name of the function block: rename block < original function block > < new function block name > [ option ]
Renaming data references: rename ref < bit number name > [ option ]
4. And others: the command can be re-expanded according to actual needs, such as:
searching commands: find { block | ref | line } [ option ]
Setting a position command: pos { block | ref } xy
A set parameter command.
Step S104, analyzing and executing the command.
And step S106, displaying a target graph on the graphical user interface, wherein the target graph is the execution result of the command.
In some optional embodiments of the present application, in a case that the command line is correctly input, a corresponding effect is displayed on the graphical user interface according to the analyzed command and the related parameters, for example, if a new function block command is input by a user, the display of the related function block is added on the canvas; if the user inputs a wiring command, wiring is added among the designated pins according to the parameters.
According to the steps, the command line is combined with the graphical user interface, the purposes of keeping the friendliness and usability of the original graphical user interface, completing configuration in a command line mode and executing commands in batches in a script file mode and the like are achieved, the technical effects of improving configuration efficiency and improving configuration correctness are achieved, and the technical problems that due to the fact that a function block diagram configuration mode is only based on the graphical user interface, errors are easy to occur due to mouse operation and a large amount of connection and setting needs to be repeatedly operated, and accordingly efficiency is low are solved.
According to an optional embodiment of the present application, parsing and executing the command comprises: when the command is multiple, splitting the multiple commands into a single command; analyzing the single command according to the target sequence; the single command is executed according to the target sequence.
According to another alternative embodiment of the present application, multiple commands may be executed in batches, in addition to a single command. There are two main ways: 1. multiple commands are copied/pasted (usually separated by carriage returns) to the command line input area. 2. And executing the plurality of commands by selecting the command script, wherein the command script is realized by writing the plurality of commands into a plain text file. When executing multiple commands, splitting the multiple commands into single commands, and analyzing and executing each single command one by one according to the sequence.
In some optional embodiments of the present application, before parsing and executing the command, it is further required to check whether the command is a command in the target command library; when the command is a command in the target command library, the command is executed.
As an optional embodiment of the present application, before parsing and executing the command, it is necessary to check the validity of the input command of the target object, verify whether the input command is a command in a command library in the configuration software, and prompt an error message and stop executing the corresponding command if the command line has an error. If the command line is correctly input, drawing a corresponding display effect in the graphical programming area according to the analyzed command and the related parameters.
In some optional embodiments of the present application, exception information for a command is displayed at the command line interface when the command is not a command in the target command library.
As another alternative embodiment of the present application, when the input command of the target object is not a command in the command library in the configuration software, the command line interface displays that the input command is an error command, and generates an error message to prompt the target object to continue inputting the correct command.
According to an alternative embodiment of the application, the command line interface further displays at least the following information: the content of the command and the result of the execution of the command.
According to another alternative embodiment of the present application, the command line interface may display specific contents of an input command, for example, a command for batch-add data references: "add ref ND0001000-c 25". And the result of the execution of the command, e.g., "ND0001000 data reference added".
In some alternative embodiments of the present application, the command is in a format of at least one of: text and code.
As an alternative embodiment of the present application, the multiple commands may be executed by selecting a command script, and the implementation manner of the command script is to write the multiple commands into a plain text file. A script is a plain text stored program that is an extension of a batch file, a script is usually an interpretive run rather than a compilation. The computer programming language that is created to shorten the traditional "compile, link, run" process is a scripting language. In terms of computer programming languages, scripts belong to extension languages or dynamic languages, and are used to control software applications, usually stored as text. Through the command script file, different users can conveniently carry out division of labor cooperation, and the configuration efficiency is improved. The script file can be conveniently exchanged, stored and distributed, and can be repeatedly executed in different occasions.
In some alternative embodiments of the present application, the above method is applied at least to a functional block diagram program.
As another alternative embodiment of the present application, the function block diagram programming language is a common programming language in the field of modern industrial control. The principle is that the function is packaged in the function module, and a user only needs to know the use modes of input and output parameters without paying attention to specific details of the function implementation. When an engineer programs a control system, the engineering requirements can be met only by adding various functional blocks, bit numbers, setting various parameters and adding connecting lines among input and output pins of the functional blocks to establish a logical relationship in functional block diagram configuration software. The present application can be applied to other configurations besides the functional block diagram configuration.
Fig. 2 is a flowchart of another method for executing a command according to an embodiment of the present application, and as shown in fig. 2, the method includes the following steps: in the command area, the user can input commands, and after the user inputs a command line, the configuration software carries out validity check and analysis on the commands input by the user. If the command line inputs an error, an error message is prompted, and the corresponding command is stopped from being executed. If the command line is correctly input, drawing a corresponding display effect in the graphical programming area according to the analyzed command and the related parameters (if a user inputs a new function block command, the display of the related function block is increased on the canvas, and if the user inputs a connecting line, the connecting line is added between the appointed pins according to the parameters), thereby achieving the what you see is what you get effect.
According to the steps, the command line is combined with the graphical user interface, the purposes of keeping the friendliness and usability of the original graphical user interface, completing configuration in a command line mode and executing commands in batches in a script file mode and the like are achieved, the technical effects of improving configuration efficiency and improving configuration correctness are achieved, and the technical problems that due to the fact that a function block diagram configuration mode is only based on the graphical user interface, errors are easy to occur due to mouse operation and a large amount of connection and setting needs to be repeatedly operated, and accordingly efficiency is low are solved.
Fig. 3 is a schematic diagram of a functional block diagram configuration software according to an embodiment of the present application, as shown in fig. 3, the schematic diagram includes: a programming area and a command area.
According to an optional embodiment of the present application, in the graphical programming region, a user may perform operations such as mouse clicking and dragging, and the following configuration is performed graphically:
1. and adding, deleting, modifying and setting information such as various attributes and the like by using the bit numbers, wherein the bit numbers are used for defining input and output point positions on the site.
2. The function blocks add, delete, change and set various attributes and other information.
Such as: and dragging the function blocks in the right function block library to the canvas to finish adding the function blocks.
3. And connecting the logical relations among the bit numbers and the functional blocks.
Such as: clicking the mouse among different pins and dragging can complete the connection.
4. The execution order of the function blocks is set.
Such as: the adjustment of the execution sequence can be completed by clicking the manual sorting icon of the toolbar and selecting the function blocks in sequence.
5. Other arrangements.
According to another alternative embodiment of the present application, the content of the command and the execution result of the command are displayed in the command area, and when the command is not a command in the target command library, exception information of the command is displayed in the command area. The target object can input a command with a command format of "add { block | ref | line } [ option ]" in the command line interface to achieve the purpose of adding a function block, adding a data reference, and adding a connection line, and the following are part of the commands in this embodiment:
add command
The command format is as follows: add { block | ref | line } [ option ]
Adding functional blocks: add block < function Block type > [ function Block bit number name ] [ option ]
Add data reference: add ref < bit number name [. Pin ] > [ option ]
Add connecting wire
Del command
The command format is as follows: del { block | ref | line } [ option ]
Deleting the function block: del block < function Block type > [ function Block bit number name ] [ option ]
Deleting data references: del ref < bit number > [ option ]
Deleting a connection
Rename command
Command format: rename { block | ref | line } [ option ]
Renaming the bit number name of the function block: rename block < original function block > < new function block name > [ option ]
Renaming data references: rename ref < bit number name > [ option ]
4. And others: the command can be re-expanded according to actual needs, such as:
and (3) searching commands: find { block | ref | line } [ option ]
Setting a position command: pos { block | ref } xy
A set parameter command.
It should be noted that the above commands are only examples, and the commands may be defined and extended according to actual needs. And is not limited to a specific command and format.
Fig. 4 is a structural diagram of a command execution device according to an embodiment of the present application, and as shown in fig. 4, the device includes:
the receiving module 40 is used for receiving a command input by the target object on the command line interface;
an execution module 42 for parsing and executing the command;
and the display module 44 is configured to display the target graph on the graphical user interface, where the target graph is a result of the execution of the command.
It should be noted that, reference may be made to the description related to the embodiment shown in fig. 1 for a preferred implementation of the embodiment shown in fig. 4, and details are not repeated here.
Fig. 5 is a block diagram of a hardware structure of a computer terminal (or an electronic device) that provides a method for executing a command according to an embodiment of the present invention. As shown in fig. 5, the computer terminal 50 (or electronic device 50) may include one or more (shown as 502a, 502b, \8230; 502 n) processors (which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 504 for storing data, and a transmission module 506 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 5 is only an illustration and is not intended to limit the structure of the electronic device. For example, computer terminal 50 may also include more or fewer components than shown in FIG. 5, or have a different configuration than shown in FIG. 5.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 50 (or electronic device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of variable resistance termination paths connected to the interface).
The memory 504 can be used for storing software programs and modules of application software, such as program instructions/data storage devices corresponding to the command execution method in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory 504, that is, implementing the command execution method described above. The memory 504 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 504 may further include memory located remotely from the processor, which may be connected to the computer terminal 50 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 506 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 50. In one example, the transmission device 506 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 506 can be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 50 (or electronic device).
It should be noted that, in some alternative embodiments, the computer device (or electronic device) shown in fig. 5 may include hardware elements (including circuitry), software elements (including computer code stored on a computer-readable medium), or a combination of both hardware and software elements. It should be noted that fig. 5 is only one example of a particular specific example and is intended to illustrate the types of components that may be present in the computer device (or electronic device) described above.
It should be noted that the electronic device shown in fig. 5 is used for executing the method for executing the command shown in fig. 1, and therefore the relevant explanation in the method for executing the command is also applicable to the electronic device, and is not described again here.
The embodiment of the application also provides a nonvolatile storage medium, which comprises a stored program, wherein when the program runs, the program controls the device where the storage medium is located to execute the execution method of the above commands.
The nonvolatile storage medium executes a program for: receiving a command input by a target object on a command line interface; analyzing and executing the command; and displaying a target graph on the graphical user interface, wherein the target graph is the execution result of the command.
The embodiment of the application also provides a processor, wherein the processor is used for running the program stored in the memory, and the program runs the execution method for executing the above commands.
The processor is used for running a program for executing the following functions: receiving a command input by a target object on a command line interface; analyzing and executing the command; and displaying a target graph on the graphical user interface, wherein the target graph is the execution result of the command.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be an indirect coupling or communication connection through some interfaces, units or modules, and may be electrical or in other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present application and it should be noted that, as will be apparent to those skilled in the art, numerous modifications and adaptations can be made without departing from the principles of the present application and such modifications and adaptations are intended to be considered within the scope of the present application.
Claims (10)
1.A method for executing a command, comprising:
receiving a command input by a target object on a command line interface;
parsing and executing the command;
and displaying a target graph on a graphical user interface, wherein the target graph is the execution result of the command.
2. The method of claim 1, wherein parsing and executing the command comprises:
when the command is multiple, splitting the multiple commands into a single command;
parsing a single said command according to a target sequence;
executing a single said command according to said target order.
3. The method of claim 1, wherein prior to parsing and executing the command, the method further comprises:
checking whether the command is a command in a target command library;
and when the command is a command in the target command library, executing the command.
4. The method of claim 3, comprising:
when the command is not a command in the target command library, displaying exception information of the command on a command line interface.
5. The method of claim 4, wherein the command line interface further displays at least the following information: the content of the command and the result of the execution of the command.
6. The method of claim 2, wherein the command is in at least one of the following formats: text and code.
7. The method according to any of claims 1 to 6, characterized in that the method is applied at least in a function block diagram program.
8. An apparatus for executing a command, comprising:
the receiving module is used for receiving a command input by a target object on a command line interface;
the execution module is used for analyzing and executing the command;
and the display module is used for displaying a target graph on a graphical user interface, wherein the target graph is the execution result of the command.
9. A non-volatile storage medium, comprising a stored program, wherein when the program runs, a device in which the non-volatile storage medium is located is controlled to execute the command execution method according to any one of claims 1 to 7.
10. A processor configured to execute a program stored in a memory, wherein the program when executed performs the method of executing a command according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211303452.8A CN115525262A (en) | 2022-10-24 | 2022-10-24 | Command execution method and device, nonvolatile storage medium and processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211303452.8A CN115525262A (en) | 2022-10-24 | 2022-10-24 | Command execution method and device, nonvolatile storage medium and processor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115525262A true CN115525262A (en) | 2022-12-27 |
Family
ID=84704159
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211303452.8A Pending CN115525262A (en) | 2022-10-24 | 2022-10-24 | Command execution method and device, nonvolatile storage medium and processor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115525262A (en) |
-
2022
- 2022-10-24 CN CN202211303452.8A patent/CN115525262A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8327280B2 (en) | Programmatic analysis of graphical sub-programs within a graphical program | |
US7650594B2 (en) | Graphical program analyzer with framework for adding user-defined tests | |
WO2021184725A1 (en) | User interface test method and apparatus, storage medium, and computer device | |
CN110688600A (en) | Online editing method, device and equipment based on HTML (Hypertext markup language) page and storage medium | |
CN102053911A (en) | Automated testing method and system based on Android and mobile terminal | |
CN104915297B (en) | A kind of automated testing method of the APP power consumption of android equipment | |
CN110765028B (en) | Visual construction method and device of verification environment and storage medium | |
CN103984626A (en) | Method and device for generating test-case script | |
CN107368420A (en) | API method of testings, device and electronic equipment | |
US20180189165A1 (en) | Method for assisting with debugging, and computer system | |
CN115017859A (en) | Layout generation method and device, computer readable storage medium and computer equipment | |
CN113282219B (en) | Method for drawing assembly line CPU architecture diagram and terminal equipment | |
CN106952426B (en) | Data processing method and device | |
JP2000216855A (en) | Method, editor, computer, control module and storage medium for editing configuration data for communication system | |
CN115525262A (en) | Command execution method and device, nonvolatile storage medium and processor | |
CN114201382A (en) | Test case generation method and device, storage medium and electronic equipment | |
CN112416734A (en) | Test method, device and storage medium | |
CN115080113A (en) | Item code detection method and device, readable storage medium and electronic equipment | |
CN104951325A (en) | Information display method and electronic equipment | |
CN109326330B (en) | Method and device for manufacturing biological information analysis tool and storage medium | |
CN115437621A (en) | Process editing method and device based on robot process automation | |
CN112131065A (en) | Method, device and system for verifying DAC (digital-to-analog converter) interface | |
CN111694637A (en) | Online full-automatic multi-agent control simulation compiling system | |
CN111030863A (en) | Node topology information determination method, device, equipment and storage medium | |
CN103116721B (en) | A kind of method and module thereof realizing Koji certification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |