CN112748954B - Method and device for configuring registers in batches and computer-readable storage medium - Google Patents

Method and device for configuring registers in batches and computer-readable storage medium Download PDF

Info

Publication number
CN112748954B
CN112748954B CN201911063076.8A CN201911063076A CN112748954B CN 112748954 B CN112748954 B CN 112748954B CN 201911063076 A CN201911063076 A CN 201911063076A CN 112748954 B CN112748954 B CN 112748954B
Authority
CN
China
Prior art keywords
cell
character string
register
configuration
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911063076.8A
Other languages
Chinese (zh)
Other versions
CN112748954A (en
Inventor
边浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN202210704206.7A priority Critical patent/CN115080118A/en
Priority to CN201911063076.8A priority patent/CN112748954B/en
Publication of CN112748954A publication Critical patent/CN112748954A/en
Application granted granted Critical
Publication of CN112748954B publication Critical patent/CN112748954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a method for configuring registers in batches, which is applied to a table format configuration interface of the registers and comprises the following steps: acquiring a first number which represents a register address and is edited in a cell of a table format configuration interface by a user or a register variable name containing the first number, and a character string adjacent to the first number; in the string: determining a stepping mode, a stepping value and a table modification range value according to the first substring, the adjacent second number, the second substring and the adjacent third number in sequence; and (3) taking the first number as the start and the second number as the step value of each cell in the table range, and sequentially configuring the value of the register address in each cell or the value of the character string in the number format corresponding to the first number position in the register variable name according to the determined step mode. A method for batch configuration of registers, and a computer-readable storage medium are also provided, accordingly. The invention can conveniently realize the batch configuration of the partial information of the register.

Description

Method and device for configuring registers in batches and computer-readable storage medium
Technical Field
The invention relates to a method and a device for configuring registers in batches and a computer readable storage medium.
Background
Most of the software of the method and the device for rapidly configuring the register address and the point variable name in batch on the current market has no batch modification function, part of the software provides an import and export function, batch modification is carried out by external Excel, and individual software provides an interface entrance, but the operation is complicated.
For example, chinese patent application No. CN201910447596.2 discloses an apparatus, a method and a system for configuring a register, but it does not disclose how to perform a batch fast configuration of register addresses or register variable names.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus and a computer readable storage medium for configuring registers in batch, so that a user can configure register information in a table format configuration interface of a register in batch and quickly.
The invention provides a method for configuring registers in batches, which is applied to a table format configuration interface of the registers and comprises the following steps:
A. acquiring a first number which represents a register address and is edited in a cell of a table format configuration interface by a user or a register variable name containing the first number, and a character string adjacent to the first number;
B. in the string:
when the first substring used for identifying the incremental or decremental stepping is judged, the stepping mode is determined according to the first substring;
determining a second number adjacent to the first substring as a step value when the second number is judged to be present;
when a second sub-character string used for identifying the table modification range is judged, and a third number adjacent to the second sub-character string is judged, the third number is determined as the table modification range value indicated by the character string;
C. and for each cell in the table range corresponding to the third number, taking the first number as a start, taking the second number as a stepping value, and sequentially configuring the value of the register address in each cell or the value of the character string in the digital format of the position corresponding to the first number in the register variable name according to the determined progressive or descending stepping mode.
Therefore, the invention provides a mode of inputting character strings, namely operators, on a table format configuration interface related to register addresses and variable names, thereby realizing rapid batch modification and input and greatly improving the working efficiency of engineering personnel.
Optionally, the first number and the character string adjacent to the first number are formed by a sequence of the first number, a first sub-character string, a second number, a second sub-character string, and a third number.
From above, the character strings can be set in the above order as needed.
Optionally, step B further includes: and C, when judging that the second number adjacent to the first substring does not exist, setting the step value to be 1.
By the above, the step value mode is defaulted, so that the user can input more conveniently for the step value.
Optionally, the configuration configures register variable names, the cells are cells corresponding to register variable name entries,
the step A also comprises the following steps: the edited register variable names in the cells also have symbols which are matched in pairs, and the adjacent first numbers and character strings are positioned in the symbols in the pairs;
step C, during configuration, the method also comprises the following steps: deleting the symbols that appear in the pairwise match.
From the above, the first number to be modified in the register variable name can be better distinguished.
Optionally, the register variable names edited in the cells have a plurality of pairs of the symbols which appear in a matching manner, and a plurality of groups of the same or different first numbers and character strings are correspondingly located in the plurality of pairs of the symbols;
step B, judging each group of character strings;
the method also comprises the following steps between the step B and the step C: taking the multiplication result of each third number in each group of character strings as a total table modification range value;
step C, the configuration further comprises: and C, sequentially executing the step C for each group in a calculation mode that each group forms a nested loop, and configuring the values of the sub-character strings in the numeric format corresponding to the first numeric position of each group in the register variable names in each cell in the modification range of the total table.
Thus, for the register variable name, when the register variable name has numbers at a plurality of positions, the present invention can also perform batch configuration of the numbers at the plurality of positions in the variable name.
Optionally, the character strings of each group in step a further include a third sub-character string representing a priority; and C, during configuration, taking the priority corresponding to the third substring as the priority of the loop in the nested loop.
In this way, when the numbers at the plurality of positions in the register variable name are arranged in a batch, the order in which the numbers at the plurality of positions are modified in a batch can be flexibly arranged by the third string indicating the priority.
The invention also provides a device for configuring registers in batches, which comprises:
the table format configuration interface comprises a table format configuration interface, a table format content acquisition module and a table format configuration interface, wherein the table format configuration interface is used for acquiring a first number which represents a register address and is edited by a user in a table format configuration interface or a register variable name containing the first number, and a character string adjacent to the first number;
the step mode determining module is used for determining a step mode according to the first sub-character string which is used for identifying step in an increasing or decreasing mode when the first sub-character string is judged to be provided with the step in the character string;
a step value determining module, configured to determine, when a second number adjacent to the first sub-string is determined to be present in the string, the second number as a step value;
the table modification range determining module is used for determining a second sub-character string used for identifying the table modification range and determining a third number as a table modification range value indicated by the character string when the second sub-character string is judged to have the third number adjacent to the second sub-character string;
and the batch configuration module is used for sequentially configuring the values of the register addresses in the cells or the values of the character strings in the digital format corresponding to the first number positions in the register variable names according to the determined increasing or decreasing stepping mode by taking the first number as the starting point and the second number as the stepping value for each cell in the table range corresponding to the third number.
Optionally, when the configuration is configured to configure register variable names, and the cell is a cell corresponding to a register variable name item, the register variable names edited in the cell acquired by the cell content acquisition module further have symbols that appear in a matching manner in pairs, and when the adjacent first number and character string are located in the pair of symbols,
the batch configuration module is also used for deleting the symbols which appear in the paired matching when the configuration is carried out.
Optionally, when the register variable names edited in the cells acquired by the cell content acquisition module have a plurality of pairs of the symbols which appear in a matching manner, and a plurality of groups of the same or different first numbers and character strings are correspondingly located in the plurality of pairs of the symbols,
the step mode determining module is also used for determining the step mode corresponding to each group of character strings;
the step value determining module is further used for taking the multiplication result of each third number in each group of character strings as the total table modification range value;
and when the batch configuration module is used for performing batch configuration, the batch configuration is sequentially executed for each group in a calculation mode that each group forms a nested loop, and the values of the sub-character strings in the digital format corresponding to the first digital positions of each group in the register variable names in each cell in the modification range of the total table are configured.
The present invention also provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for configuring registers in batches according to the above technical solutions.
Drawings
FIG. 1 is a flow diagram of a batch configuration register;
FIG. 2 is a schematic diagram of a first operation of a table format configuration interface; FIG. 2-A is a schematic diagram of a cell of a selected register address entry; FIG. 2-B is a schematic illustration of the editing of the cell; FIG. 2-C is a schematic diagram after performing configuration;
FIG. 3 is a diagram illustrating a second operation of the tabular configuration interface; FIG. 3-A is a schematic diagram of a cell for the selected register variable name; FIG. 3-B is a schematic illustration of the editing of the cell; FIG. 3-C is a schematic diagram after performing configuration;
FIG. 4 is a diagram illustrating a third operation of the table format configuration interface; FIG. 4-A is a schematic diagram of a cell for the selected register variable name; FIG. 4-B is a schematic illustration of the editing of the cell; FIG. 4-C is a schematic diagram after performing configuration;
FIG. 5 is a diagram illustrating a fourth operation of the table format configuration interface; FIG. 5-A is a schematic diagram of a cell for a selected register variable name; FIG. 5-B is a schematic diagram of the editing of the cell; FIG. 5-C is a schematic illustration after performing configuration;
FIG. 6 is a diagram illustrating a fifth operation of the table format configuration interface; FIG. 6-A is a schematic diagram of a cell for a selected register variable name; FIG. 6-B is a schematic illustration of the editing of the cell; fig. 6-C is a schematic diagram after performing configuration.
Detailed Description
The invention can be applied to the table format configuration interface of the register, namely, the information of the register is read through a configuration software, and is displayed through the table format configuration interface, the editing of the register information displayed by the configuration interface by a user can be received, and the configuration information on the configuration interface is updated to the register after the user clicks a certain submitting control (such as a virtual key) through the configuration interface. The method for configuring the register in batches according to the present invention is described in detail below, referring to the flowchart of the register in batches shown in fig. 1, and includes the following steps:
s100: and displaying the information of the register through a form style by the form configuration interface, clicking and selecting a cell in the form displayed by the form configuration interface by a user, and editing the information in the cell in an input or modification mode.
In the table style shown in fig. 2 to fig. 5, each column is information of a register to be configured, which includes a register Address item (Address), a register Variable Name item (Variable Name), and the like, and may further include a remark information item (records), and the like. In the following examples, the user will use the register Address entry (Address) and the register Variable Name entry (Variable Name) as examples to modify the register Address entry (Address) and the register Variable Name entry (Variable Name) in batches.
When the user selects a cell of the register address item, the edited content of the cell may be the register address (e.g. "10" in the cell with bold frame in fig. 2-B) and a character string connected to the register address. Wherein the character string includes: a first substring, e.g., "+ +" in the cell of the bold frame of FIG. 2-B; a second number, such as "2" in the cell of the bold frame of FIG. 2-B; a second substring, as in the cell of the bold frame of FIG. 2-B ":"; the third number, e.g., "4" in the cell of the bold frame of FIG. 2-B. That is, the content of the cell after being edited is "10 + +2: 4" as shown in fig. 2-B.
It should be noted that, when the user clicks the cell, the user may be prompted with the format to be input, so that the edited content of the cell can be subsequently and correctly parsed. The character string may also include other substrings that do not affect subsequent parsing, for example, "10 + +2,: 4", "10 + +2&: 4", "10, RE + +2: 4" or "10 + +2: 4" ("+ +" is followed and followed by an additional space), that is, a certain fault tolerance is supported in the subsequent parsing process.
When a cell of the register variable name item is selected by the user, the edited content of the cell may be a register variable name containing a first number (e.g., "IO 1" in the cell of the bold frame of fig. 3-B) and a character string adjacent to the first number, where the character string includes: a first substring, e.g., "+ +" in the cell of the bold frame of FIG. 3-B; a second number, such as "2" in the cell of the bold frame of FIG. 3-B; second substring, as in the cell of the bold frame of FIG. 3-B ": "; the third number, such as "3" in the cell of the bold frame of FIG. 3-B. That is, the edited content of the cell is "IO 1+ +2: 3" as shown in FIG. 3-B.
In addition, in order to better distinguish the first number to be modified in the register variable name, a pair of symbols which are matched to appear may be set, and the first number and the character string are placed in the pair of symbols, in this example, a pair of "()" is used, that is, the content of the cell after being edited may also be "IO (1+ +2: 3)". The advantage of using symbols that appear in pairs is that the position of the first number in the register variable name to be modified can be determined more unambiguously, for example for "IO 4(1+ +2: 3)", "4 IO (1+ +2: 3)", "IO (1+ +2:3) _ 4", "IO (1+ +2:3) _ OUT 4" or "(1 + +2:3) IO _ 4", where the "4" corresponding position is not erroneously modified in the bulk modification, only the number where "1" corresponds to the position is modified.
As with the above register address entry cells, when the user clicks on the register variable name entry cell, the user may be prompted for the format that should be entered, and the string may also include other substrings that do not affect subsequent parsing, wherein to avoid misinterpreting the other substrings in the string as register variable names, in this case, the above-described format using symbols that appear in pairs, such as "IO (1+ +2,: 3) _ 4", should be used.
S200: and acquiring the information in the cell edited by the user through the tabular configuration interface, judging whether the information is matched with the type of the corresponding item of the cell, and continuing the subsequent steps when the information is matched with the type of the corresponding item of the cell.
For example, when the cell is a cell of the register address entry, it is determined whether the content outside the character string in the information in the cell is in a numeric format.
S300: analyzing the content in the cell, and caching the analyzed instruction, wherein the analyzing step specifically comprises the following substeps:
s3001: and judging whether the character string has a first sub-character string for identifying progressive or progressive decreasing modes, if so, determining the progressive mode according to the first sub-character string, and executing the next sub-step, otherwise, exiting the process, and modifying the data in the cell according to a single data modification mode. Wherein the first string may also be referred to as an operator.
In this example, the incremental or decremental steps are identified using "+ +" or "-" as the first substring, respectively.
S3002: when judging that the character string has a second number adjacent to the first sub-character string, determining the second number as a stepping value; and if the step value is judged not to have the second number adjacent to the first substring, the step value is set to be 1.
For example, if the number of cells corresponding to the register address entry is "10 + +2: 4", the character string is "+ +2: 4", and the step value is determined to be 2.
For another example, when the cell corresponding to the register variable name is "IO 1+ +2: 3" or "IO (1+ +2: 3)", the character string is "+ +2: 3", and the step value is determined to be 2 accordingly.
For another example, when the cell corresponding to the register address entry is "10 + +: 4", or when the cell corresponding to the register variable name entry is "IO 1+ +: 4", the character strings are both "+: 4", and the first sub-character string "+", in the character string, is not provided with a second number adjacent thereto, and accordingly the step value is set to 1.
S3003: when judging that the character string has a second sub-character string for identifying a table modification range and has a third number adjacent to the second sub-character string, determining the third number as a table modification range value indicated by the character string; and when the second substring and the third number are judged not to exist, the table range is set to be the range from the cell corresponding to the item to the tail cell with the data, and the user input is simpler and more convenient when the modification is needed by a default modification range mode.
In this example, ": is used as the second substring.
For example, if a cell corresponding to a register address entry is "10 + +2: 4", the string is "+ +2: 4", and the table range is from the cell under the register address entry to 4 cells after the cell.
For another example, if a cell corresponding to a register variable name is "IO 1+ +2: 3" or "IO (1+ +2: 3)", the string is "+ +2: 3", and the table range is from the cell under the register variable name to 3 cells behind the cell.
For another example, as shown in fig. 6-B, when the cell corresponding to the register address entry is "10 + + 2", the character string is "+ + 2", and the second substring "does not appear: "and the numbers thereafter, whereby the table modified as shown in fig. 6-C ranges from the cell under the register address entry to the last cell with data, i.e., the cell modified to the last row of the register address entry as shown in fig. 6-C.
S400: and configuring corresponding cells according to the cached instruction. The triggering of the configuration action may be when the user finishes editing the cell and presses the enter key, or finishes editing the cell and clicks a certain configuration control displayed on the table format configuration interface.
The configuration process is as follows: and for each cell in the table range corresponding to the third number, taking the first number as a start, taking the second number as a stepping value, and sequentially configuring the value of the register address in each cell or the value of the character string in the digital format of the position corresponding to the first number in the register variable name according to the determined progressive or descending stepping mode.
Fig. 2-C and fig. 3-C show the results of analyzing the corresponding cells in fig. 2-B and fig. 3-B, respectively, and configuring the cells accordingly.
S500: and clicking a certain submitting control on the table format configuration interface by a user, and updating the configured content to the register after submitting the instruction.
In addition, the user can select to save as another or save the menu provided by the tabular configuration interface, store the configuration information in the computer in a file mode so as to be conveniently read from the computer when needed, and update the configured content to the register by using the submission control.
Therefore, the invention can realize batch configuration of the register address and the register variable name, and when the character string is analyzed in the step S300, the character string has certain fault tolerance, for example, blank spaces and other punctuation marks can be filtered out through the steps and can be normally analyzed.
When the cell is a cell corresponding to a register variable name item, and the configuration configures a register variable name, since the same or different first numbers may appear at different positions of the register variable name, for example, the register variable name is "BP 1_ IO1_ VAR", the first numbers may be configured when the register variable name is configured, which is described in detail below:
as described above, for a register variable name having a plurality of first digits, it is necessary to specify the position of the first digit in the register variable name to be modified, and therefore, it is necessary to use the above-mentioned plurality of pairs of symbols that appear in a pair-wise manner, and to arrange a plurality of sets of the same or different first digits and character strings in the plurality of pairs of symbols in a corresponding manner. Corresponding to the step S100, when editing a cell of the register variable name, the cell is edited as follows: "BP (1+ +:2) _ IO (1+ +:3) _ VAR", see the schematic diagram shown in FIG. 4-B.
When the content in the cell is analyzed, after a plurality of pairs of symbols which are matched in pairs are judged, each group of character strings in each pair of symbols is analyzed by adopting the description step of the step S300. The result of multiplying the third numbers in the strings of each group is used as the total table modified range value, i.e., 2 × 3 — 6 is used as the total table modified range value in this example.
When the cells are arranged, the above step S400 is sequentially executed for each group in a calculation manner in which each group forms a nested loop, so as to arrange the values of the substrings in the numeric format corresponding to the first numeric position of each group in the register variable names in the cells within the modification range of the total table.
For example, "BP (1+ +:2) _ IO (1+ +:3) _ VAR" in the cell of the bold frame of FIG. 4-B, which has two sets of first numbers and character strings, the first set being "1 + +: 2", the second set being "1 + +: 3", the two sets of calculation modes that constitute the nested loop refer to: the number of the respective first digit positions of the two groups is calculated and modified in such a way that the table modification operation performed for the first group is taken as an outer loop, the table modification range value 2 thereof is the number of outer loops, the table modification operation performed for the second group is taken as an inner loop, and the table modification range value 3 thereof is the number of inner loops.
The calculation process of the nested loop is specifically explained by BP (1+ +:2) _ IO (1+ +:3) _ VAR', and the nested loop formed by the calculation process is as follows: the outer loop corresponds to "BP": the stepping value is 1, and the external cycle times are 2; the internal circulation corresponds to IO': the number of loop times is 3 within the step value of 1, and the modification process according to the nested loop is as follows:
setting parameters in the outer loop to be first values, namely BP1, executing three loop calculations by the inner loop, wherein each loop in the inner loop is to add 1 to a first number corresponding to IO (default addition of 0 in the first loop), and accordingly, after the three inner loops, generating IO1, IO2 and IO3, wherein names of corresponding complete register variables are BP1_ IO1_ VAR, BP1_ IO2_ VAR and BP1_ IO3_ VAR;
setting the parameters in the outer loop to be a second value, setting the parameters to be BP2 according to the stepping value 1, executing loop calculation for three times again by the inner loop to generate IO1, IO2 and IO3, wherein the names of corresponding complete register variables are BP2_ IO1_ VAR, BP2_ IO2_ VAR and BP2_ IO3_ VAR;
the calculated BP1_ IO1_ VAR, BP1_ IO2_ VAR, BP1_ IO3_ VAR, BP2_ IO1_ VAR, BP2_ IO2_ VAR and BP2_ IO3_ VAR are sequentially configured into 6 cells corresponding to the register variable name entry, and the configuration result can be seen in fig. 4-C.
In addition, a third sub-character string representing priority can be edited in the character strings of each group; thus, when the related cells are configured, the priority of the third substring is also used as the priority of the loop in the nested loop. For example in "; the number "represents a third string; then "BP (1+ +: 2; 1) _ IO (1+ +: 3; 2) _ VAR" in the cells of the bold frame of FIG. 5-B may be used to indicate that the priority of the first set of loops is lower than the priority of the second set of loops, i.e., the first set as inner loops and the second set as outer loops.
The calculation process of the nested loop is specifically described as "BP (1+ +: 2; 1) _ IO (1+ +: 3; 2) _ VAR", and the nested loop is formed based on the priorities: the external circulation corresponds to IO: the stepping value is 1, and the external circulation times are 3; the inner loop corresponds to "BP": the number of loop times is 2 within the step value of 1, and the modification process according to the nested loop is as follows:
setting parameters in the outer loop to be first values, namely IO1, executing two loop calculations by the inner loop, wherein each loop in the inner loop is to add 1 to a first number corresponding to BP (default addition of 0 to the first loop), and accordingly, generating BP1 and BP2 after two inner loops, wherein corresponding complete register variable names are also named as BP1_ IO1_ VAR and BP2_ IO1_ VAR;
setting the parameters in the outer loop to be a second value, setting the parameters to be IO2 according to the stepping value 1, executing loop calculation twice again by the inner loop to generate BP1 and BP2, wherein the names of the corresponding complete register variables are BP1_ IO2_ VAR and BP2_ IO2_ VAR;
setting the parameter in the outer loop to be a third value, setting the parameter to be IO3 according to the stepping value 1, executing loop calculation twice again by the inner loop to generate BP1 and BP2, wherein the names of the corresponding complete register variables are BP1_ IO3_ VAR and BP2_ IO3_ VAR;
the calculated BP1_ IO1_ VAR, BP2_ IO1_ VAR, BP1_ IO2_ VAR, BP2_ IO2_ VAR, BP1_ IO3_ VAR and BP2_ IO3_ VAR are sequentially configured into 6 cells corresponding to the register variable name entry, and the corresponding configuration result can be seen in fig. 5-C.
As described above, the present invention can also perform batch configuration of numbers of a plurality of positions in a variable name with respect to a register variable name, and can flexibly configure the order in which the numbers of the plurality of positions in the variable name are batch-modified by the third string indicating the priority.
The invention also correspondingly provides a device for configuring the register by using the batch, which comprises the following steps:
the table format configuration interface comprises a table format configuration interface, a table format content acquisition module and a table format configuration interface, wherein the table format configuration interface is used for acquiring a first number which represents a register address and is edited by a user in a table format configuration interface or a register variable name containing the first number, and a character string adjacent to the first number;
the step mode determining module is used for determining a step mode according to the first sub-character string which is used for identifying step in an increasing or decreasing mode when the first sub-character string is judged to be provided with the step in the character string;
a step value determining module, configured to determine, when a second number adjacent to the first sub-string is determined to be present in the string, the second number as a step value; when judging that the second number adjacent to the first substring does not exist, setting the stepping value to 1;
the table modification range determining module is used for determining a second sub-character string used for identifying the table modification range and determining a third number as a table modification range value indicated by the character string when the second sub-character string is judged to have the third number adjacent to the second sub-character string;
and the batch configuration module is used for sequentially configuring the values of the register addresses in the cells or the values of the character strings in the digital format corresponding to the first number positions in the register variable names according to the determined increasing or decreasing stepping mode by taking the first number as the starting point and the second number as the stepping value for each cell in the table range corresponding to the third number.
When the configuration is used for configuring the register variable name, and the cell is a cell corresponding to the register variable name item, the register variable name edited in the cell acquired by the cell content acquisition module further has symbols which appear in a matching manner in pairs, and when the adjacent first number and character string are located in the pair of symbols, the batch configuration module is used for deleting the symbols which appear in a matching manner in pairs during configuration.
When the register variable names edited in the cells acquired by the cell content acquisition module have a plurality of pairs of symbols which are matched with each other in pairs, and a plurality of groups of the same or different first numbers and character strings are correspondingly positioned in the plurality of pairs of symbols,
the step mode determining module is used for determining the step mode corresponding to each group of character strings;
the step value determining module is further used for taking the multiplication result of each third number in each group of character strings as the total table modification range value;
the batch configuration module is also used for: and sequentially performing batch configuration on the groups in a calculation mode that each group forms a nested loop, and configuring the values of the sub-character strings in the numeric format corresponding to the first numeric position of each group in the register variable names in each cell in the modification range of the total table.
When the character strings of the groups in the cell acquired by the cell content acquisition module further include a third sub-character string representing priority, the method further includes:
the priority determining module is used for determining the priority of each group of character strings;
the batch configuration module is also used for: and taking the priority corresponding to the third substring as the priority of the loop in the nested loop.
The system also comprises a configuration submitting module used for updating the configured content to the register after acquiring the user submitting instruction.
The invention also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of steps S100-S500 of the above-described method for batch configuration of registers.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention, such as the above-described first sub-string representing incremental or decremental steps, may also be ">", "< <", or "+ + +" - - ", etc., respectively; the second substring can also be "#", "^" and the like; the symbols that appear in pairs can also be "[ ]", "< >", "{ }", or the like, or the position of the first sub-string and the second sub-string changes, or the position changes before and after the adjacent arrangement, all shall be included in the protection scope of the present invention. In addition, the embodiment of the present invention does not indicate that the order of execution of the steps of the present invention is limited, and for example, the order of the three steps 3001 to 3003 may be arbitrarily adjusted.

Claims (10)

1. A method for configuring registers in batches is applied to a tabular configuration interface of the registers, and is characterized by comprising the following steps:
A. acquiring a first number which represents a register address and is edited in a cell of a table format configuration interface by a user or a register variable name containing the first number, and a character string adjacent to the first number;
B. in the string:
when the first substring used for identifying the incremental or decremental stepping is judged, the stepping mode is determined according to the first substring;
determining a second number adjacent to the first substring as a step value when the second number is judged to be present;
when a second sub-character string used for identifying the table modification range is judged, and a third number adjacent to the second sub-character string is judged, the third number is determined as the table modification range value indicated by the character string;
C. and for each cell in the table range corresponding to the third number, taking the first number as a start, taking the second number as a stepping value, and sequentially configuring the value of the register address in each cell or the value of the character string in the digital format of the position corresponding to the first number in the register variable name according to the determined progressive or descending stepping mode.
2. The method of claim 1, wherein the first number and the character string adjacent to the first number are formed by a sequence of the first number, the first substring, the second number, the second substring, and the third number.
3. The method of claim 1, wherein step B further comprises: and C, when judging that the second number adjacent to the first substring does not exist, setting the step value to be 1.
4. The method according to any one of claims 1 to 3, wherein the configuration configures register variable names, the cells are cells corresponding to register variable name entries,
the step A also comprises the following steps: the edited register variable names in the cells also have symbols which are matched in pairs, and the adjacent first numbers and character strings are positioned in the symbols in the pairs;
step C, the configuration further comprises: deleting the symbols that appear in the pairwise match.
5. The method according to claim 4, characterized in that the edited register variable names in the cells have a plurality of pairs of the symbols which are matched in pairs, and a plurality of groups of the same or different first numbers and character strings are correspondingly positioned in the plurality of pairs of the symbols;
step B, judging each group of character strings;
the method also comprises the following steps between the step B and the step C: taking the multiplication result of each third number in each group of character strings as a total table modification range value;
step C, during configuration, the method also comprises the following steps: and C, sequentially executing the step C for each group in a calculation mode that each group forms a nested loop, and configuring the values of the sub-character strings in the numeric format corresponding to the first numeric position of each group in the register variable names in each cell in the modification range of the total table.
6. The method according to claim 5, wherein the character strings of step A further include a third sub-character string representing priority; and C, during configuration, taking the priority corresponding to the third substring as the priority of the loop in the nested loop.
7. An apparatus for bulk configuration of registers, comprising:
the table format configuration interface comprises a table format configuration interface, a table format content acquisition module and a table format selection module, wherein the table format configuration interface comprises a table format selection module, a table format selection module and a table format selection module;
the step mode determining module is used for determining a step mode according to the first sub-character string which is used for identifying step in an increasing or decreasing mode when the first sub-character string is judged to be provided with the step in the character string;
a step value determining module, configured to determine, when a second number adjacent to the first sub-string is determined to be present in the string, the second number as a step value;
the table modification range determining module is used for determining a second sub-character string used for identifying the table modification range and determining a third number as a table modification range value indicated by the character string when the second sub-character string is judged to have the third number adjacent to the second sub-character string;
and the batch configuration module is used for sequentially configuring the values of the register addresses in the cells or the values of the character strings in the digital format corresponding to the first number positions in the register variable names according to the determined increasing or decreasing stepping mode by taking the first number as the starting point and the second number as the stepping value for each cell in the table range corresponding to the third number.
8. The apparatus according to claim 7, wherein when the register variable name is configured to be configured, and the cell is a cell corresponding to a register variable name item, the register variable name edited in the cell acquired by the cell content acquisition module further has a symbol that appears in a matching manner in pairs, and when the adjacent first number and character string are located within the pair of symbols,
the batch configuration module is also used for deleting the symbols which appear in the paired matching when the configuration is carried out.
9. The apparatus according to claim 8, wherein when there are a plurality of pairs of said symbols that appear in cooperation with each other in register variable names edited in said cell acquired by a cell content acquisition module, and a plurality of groups of identical or different said first numbers and character strings are correspondingly located in said plurality of pairs of said symbols,
the step mode determining module is further used for determining the step mode corresponding to each group of character strings;
the step value determining module is further used for taking the multiplication result of each third number in each group of character strings as the total table modification range value;
and when the batch configuration module is used for performing batch configuration, the batch configuration is sequentially executed for each group in a calculation mode that each group forms a nested loop, and the values of the sub-character strings in the digital format corresponding to the first digital positions of each group in the register variable names in each cell in the modification range of the total table are configured.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for bulk configuration of registers according to any of claims 1 to 6.
CN201911063076.8A 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium Active CN112748954B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210704206.7A CN115080118A (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium
CN201911063076.8A CN112748954B (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911063076.8A CN112748954B (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202210704206.7A Division CN115080118A (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112748954A CN112748954A (en) 2021-05-04
CN112748954B true CN112748954B (en) 2022-08-23

Family

ID=75645014

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201911063076.8A Active CN112748954B (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium
CN202210704206.7A Pending CN115080118A (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202210704206.7A Pending CN115080118A (en) 2019-10-31 2019-10-31 Method and device for configuring registers in batches and computer-readable storage medium

Country Status (1)

Country Link
CN (2) CN112748954B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287459A (en) * 2019-05-30 2019-09-27 平安科技(深圳)有限公司 Table batch processing method, system, device and can storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183124B2 (en) * 2011-04-18 2015-11-10 Accenture Global Services Limited Automation controller for next generation testing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287459A (en) * 2019-05-30 2019-09-27 平安科技(深圳)有限公司 Table batch processing method, system, device and can storage medium

Also Published As

Publication number Publication date
CN115080118A (en) 2022-09-20
CN112748954A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
US10353882B2 (en) Packaging data science operations
CN102981746A (en) Handheld electronic device and method for calibrating input of webpage address
US20170031544A1 (en) Process and Apparatus for Selecting an Item from a Database
CN107402729B (en) Printing template construction method and template printing method
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
CN106484131A (en) A kind of input error correction method and input subtraction unit
CN107153535A (en) A kind of operation ElasticSearch method and device
CN112748954B (en) Method and device for configuring registers in batches and computer-readable storage medium
CN112988758B (en) Target object positioning method and device, electronic equipment and storage medium
CN111708957A (en) Method, device and computer equipment for updating front-end page based on index and value index
CN107330004A (en) A kind of collecting method based on url character strings
CN116431517A (en) Intelligent keyword prompting method and device for automatic test platform
CN105893614A (en) Information recommendation method and device and electronic equipment
CN109255104A (en) Certification template configuration method, apparatus, computer equipment and storage medium
CN115033436A (en) Page testing method and device, electronic equipment and storage medium
CN109814734B (en) Method for correcting Chinese pinyin input and processing terminal
CN109840110A (en) For handling the method, apparatus, equipment and readable storage medium storing program for executing of code message
US20220043060A1 (en) Debug support device, debug support method, and computer readable storage medium
AU2012209049B2 (en) Improved process and apparatus for selecting an item from a database
CN116484847A (en) Assembly for gap filling problem customization and working method thereof
CN113157173A (en) Information prompting method and device, electronic equipment and storage medium
CN117519696A (en) Page operation behavior rendering method and device
CN114637778A (en) Visual data acceptance method and system
JP6623040B2 (en) Butt processing device, butt processing method and butt processing program
JP6051969B2 (en) Hangul character input program and Hangul character input device

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20210504

Assignee: Beijing Shuili Intelligent Building Technology Co.,Ltd.

Assignor: KYLAND TECHNOLOGY Co.,Ltd.

Contract record no.: X2022990000047

Denomination of invention: Method, device and computer-readable storage medium for batch configuration of registers

License type: Common License

Record date: 20220121

GR01 Patent grant
GR01 Patent grant