CN112836982A - Instruction list generation method and device and computer readable storage medium - Google Patents

Instruction list generation method and device and computer readable storage medium Download PDF

Info

Publication number
CN112836982A
CN112836982A CN202110198949.7A CN202110198949A CN112836982A CN 112836982 A CN112836982 A CN 112836982A CN 202110198949 A CN202110198949 A CN 202110198949A CN 112836982 A CN112836982 A CN 112836982A
Authority
CN
China
Prior art keywords
generating
list
instruction
instruction list
instructions
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.)
Granted
Application number
CN202110198949.7A
Other languages
Chinese (zh)
Other versions
CN112836982B (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.)
Weton Electronics Co ltd
Original Assignee
Weton Electronics 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 Weton Electronics Co ltd filed Critical Weton Electronics Co ltd
Priority to CN202110198949.7A priority Critical patent/CN112836982B/en
Publication of CN112836982A publication Critical patent/CN112836982A/en
Application granted granted Critical
Publication of CN112836982B publication Critical patent/CN112836982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06311Scheduling, planning or task assignment for a person or group
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method and a device for generating an instruction list and a computer readable storage medium, wherein the method comprises the following steps: when a generating device of the instruction list receives a generating request, determining a sequence initial value and a primitive polynomial according to the generating request; generating a pseudo-random sequence list according to the initial sequence value and the primitive polynomial; and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing, the instruction list comprises drawing instructions, and the drawing instructions comprise drawing shapes and drawing coordinates. The invention can avoid the error caused by manually writing drawing instructions by engineers.

Description

Instruction list generation method and device and computer readable storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating an instruction list, and a computer-readable storage medium.
Background
In the prior art, engineers often use a coding mode to generate electronic drawings, but because the coding mode is more and more complex, engineers need to manually write a large amount of drawing instructions, and therefore, when generating electronic drawings in the coding mode, human errors easily occur, resulting in large drawing instruction errors.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating an instruction list and a computer-readable storage medium, and aims to solve the technical problem that when an electronic drawing is generated in a coding mode in the prior art, artificial errors are easy to occur, and drawing instruction errors are large.
The embodiment of the invention provides a method for generating an instruction list, which comprises the following steps:
when a generation request is received, determining a sequence initial value and a primitive polynomial according to the generation request;
generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial;
and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing, the instruction list comprises drawing instructions, and the drawing instructions comprise drawing shapes and drawing coordinates.
In one embodiment, the step of generating a list of instructions from the list of pseudorandom sequences comprises:
acquiring a target sequence from the pseudo-random sequence, wherein the target sequence comprises a pseudo-random sequence for generating a corresponding drawing instruction;
obtaining drawing coordinates corresponding to the target sequence;
and generating the instruction list according to the drawing coordinates corresponding to the target sequence and a preset drawing shape.
In an embodiment, after the step of generating the instruction list according to the pseudo-random sequence list, the method further comprises:
and generating an electronic drawing according to the instruction list.
In an embodiment, the step of generating the electronic drawing according to the instruction list includes:
and generating the electronic drawing according to the instruction list through a preset drawing program, wherein the preset drawing program comprises a CAD drawing program.
In an embodiment, after the step of generating the electronic drawing according to the instruction list, the method further includes:
and printing the engineering drawing according to the electronic drawing.
In one embodiment, the step of generating a list of instructions from the list of pseudorandom sequences comprises:
acquiring a sequence value and a sequence number of the pseudo-random sequence list;
and generating a drawing instruction corresponding to the sequence number according to the sequence value so as to generate the instruction list.
In an embodiment, after the step of generating the instruction list according to the pseudo-random sequence list, the method further comprises:
and outputting the instruction list.
The embodiment of the invention also provides a device for generating the instruction list, which comprises the following steps: the present invention relates to a method for generating an instruction list, and more particularly, to a method for generating an instruction list, which includes a memory, a processor, and a program of the method for generating an instruction list stored in the memory and executable on the processor.
An embodiment of the present invention further provides a computer-readable storage medium, where a program of a method for generating an instruction list is stored on the computer-readable storage medium, and when the program of the method for generating an instruction list is executed by a processor, the steps of the method for generating an instruction list are implemented as described above.
In the technical solution of this embodiment, when receiving a generation request, a generation apparatus of an instruction list determines a sequence initial value and a primitive polynomial according to the generation request; generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial; and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing. Because the generation device of the instruction list can generate the instruction list according to the information carried by the generation request when receiving the generation request input by the user, the user can directly copy the drawing instruction in the instruction list when writing the drawing instruction, or directly lead the instruction list into the drawing tool, manual writing is not needed, and errors possibly caused by manual writing of engineers are avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a hardware architecture diagram of an instruction list generation method and apparatus according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for generating an instruction list according to a first embodiment of the present invention;
FIG. 2A is a diagram illustrating a method for generating an instruction list according to a first embodiment of the present invention;
FIG. 2B is a diagram illustrating a method for generating an instruction list according to a first embodiment of the present invention;
FIG. 2C is a diagram illustrating a method for generating an instruction list according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for generating an instruction list according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a method for generating an instruction list according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a step 30 of a fourth embodiment of the instruction list generating method according to the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a method for generating an instruction list according to the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: when a generating device of an instruction list receives a generating request, determining a sequence initial value and a primitive polynomial according to the generating request; generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial; and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing.
Because the generation device of the instruction list can generate the instruction list according to the information carried by the generation request when receiving the generation request input by the user, the user can directly copy the drawing instruction in the instruction list when writing the drawing instruction, or directly lead the instruction list into the drawing tool, manual writing is not needed, and errors possibly caused by manual writing of engineers are avoided.
As one implementation mode, the instruction list generation method and device can be as shown in FIG. 1.
The embodiment of the invention relates to a method and a device for generating an instruction list, wherein the method and the device for generating the instruction list comprise the following steps: a processor 101, e.g. a CPU, a memory 102, a communication bus 103, a coding node 104. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As in fig. 1, a detection program may be included in the memory 103 as a kind of computer storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
when a generation request is received, determining a sequence initial value and a primitive polynomial according to the generation request;
generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial;
and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing, the instruction list comprises drawing instructions, and the drawing instructions comprise drawing shapes and drawing coordinates.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring a target sequence from the pseudo-random sequence, wherein the target sequence comprises a pseudo-random sequence for generating a corresponding drawing instruction;
obtaining drawing coordinates corresponding to the target sequence;
and generating the instruction list according to the drawing coordinates corresponding to the target sequence and a preset drawing shape.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and generating an electronic drawing according to the instruction list.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and generating the electronic drawing according to the instruction list through a preset drawing program, wherein the preset drawing program comprises a CAD drawing program.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and printing the engineering drawing according to the electronic drawing.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
acquiring a sequence value and a sequence number of the pseudo-random sequence list;
and generating a drawing instruction corresponding to the sequence number according to the sequence value so as to generate the instruction list.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and outputting the instruction list.
In the technical scheme of this embodiment, when receiving a generation request input by a user, the generation device for the instruction list can generate the instruction list according to information carried in the generation request, so that the user can directly copy the drawing instruction in the instruction list or directly import the instruction list into a drawing tool when writing the drawing instruction, and does not need to write manually, thereby avoiding errors possibly caused by manual writing by engineers.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of the method for generating an instruction list according to the present invention, and the method includes the following steps:
step S10, when receiving the generation request, determines the initial value of the sequence and the primitive polynomial according to the generation request.
The measurement principle of an absolute grating ruler (a grating ruler or a magnetic grating ruler) is that a code channel with absolute position codes is carved on the grating ruler, and a reading head can obtain the absolute position by reading the codes of the current position.
The successful depiction of the codes on the grid ruler is the premise of realizing the function of the grid ruler. The commonly used coding methods at present include: binary coding, gray code coding, sine and cosine coding, vernier coding, etc. The coding modes are relatively simple, and the grid ruler drawing can be manufactured only through engineering drawing software (such as CAD).
The above four codes are all used in the existing products, but all have certain defects.
In the first scheme, when the critical value of the binary minimum value and the critical value of the binary maximum value are read, the condition of misreading can occur, and meanwhile, the size of the grid ruler is larger along with the higher number of binary digits, so that the volume is small and the digits are high; in the second scheme, the higher the Gray code number is, the larger the grid ruler size is, the smaller the size and the higher the digit can not be realized; in the third scheme, a sine and cosine encoder collects and outputs analog quantity, so that the anti-pollution performance is low, the requirement on the IP grade of the encoder is high, and the volume and the digit are high; in the fourth scheme, the vernier coding calculates the current absolute value through analog quantity, so that the anti-pollution performance is low, the requirement on the IP grade of a coder is high, and the cost is high;
the appearance of the pseudo-random sequence grid ruler makes up the defects of the four codes, and the pseudo-random sequence grid ruler has the advantages of small size, large measuring range, strong pollution resistance and the like. However, because the codes have randomness, the work hour of an engineer can be greatly increased, the energy of the engineer can be consumed, and the probability of wrong grid drawing can be increased when the grid ruler drawing is manufactured by using the traditional method.
In this embodiment, the generation request may be initiated by a user, and the user may initiate the generation request through an EXCEL program in the generation apparatus of the instruction list, specifically, after the user inputs the initial sequence value and the primitive polynomial in the EXCEL program, the generation apparatus of the instruction list may determine and obtain the initial sequence value and the primitive polynomial through the EXCEL program, where, for the initial sequence value, the length may be preset by the user, for example: when the user inputs 14, the initial sequence value of the pseudo-random sequence defaults to 14 binary numbers consisting of 1 s.
Optionally, the initial value of the sequence in the request for generation and the primitive polynomial are both variables and are defined and input by the user, wherein the primitive polynomial is an irreducible polynomial of degree n, and if only 1+ Z ^2^ n-1 can be divided completely and other 1-Z ^ L (L <2^ n-1) cannot be divided completely, the irreducible polynomial is called the primitive polynomial. Another definition of the primitive polynomial is: the coefficients are taken from the minimum polynomial over GF (p) rooted at the primitive domain element over GF (p ^ m). Because the primitive polynomial must take n ^ p ^ m-1 level elements as roots, p ^ m ≡ 1(mod n), the degree of the primitive polynomial must be m. For an nth degree polynomial, there are typically several primitive polynomials.
And step S20, generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial.
In the present embodiment, as for the meaning of the pseudo-random sequence, on the one hand it is predetermined and can be repeatedly produced and reproduced; different numbers of pseudo-random sequences can be generated according to the degree r (initial sequence value) of the original polynomial, and the number of generated sequences is (2^14) -1 ^ 16383 by taking r ^14 (initial sequence value is 14 and 1) as an example.
Optionally, the following primitive polynomial is taken as an example |:
f(x)=x14+x13+x9+x8+x4+x1+1
the structural logic diagram is shown in fig. 2A. The conversion to EXCEL formula language is:
f(x)=if(MOD((D4+D8+D9+D10+D13+D14),2),1,0)
that is, the sums of D4, D8, D9, D10, D13 and D14 are calculated, and then 2 is left, and if the remainder is 1, 1 is output, otherwise, 0 is output. As shown in fig. 2A, the pseudo-random sequence can be obtained by shifting and repeating the previous step according to the arrow direction in the table. It will be readily appreciated that other types of primitive polynomials may also be included in the present application.
Step S30, generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating engineering drawings, the instruction list comprises drawing instructions, and the drawing instructions comprise drawing shapes and drawing coordinates.
In this embodiment, the drawing shape and the drawing coordinates corresponding to the pseudo-random sequence list may be determined based on the obtained pseudo-random sequence list to generate the instruction list, specifically, the instruction list includes a drawing instruction, and the drawing instruction includes a drawing shape and drawing coordinates, where the drawing shape is preset, and the drawing coordinates are determined based on the pseudo-random sequence. For example: a target sequence can be obtained from the pseudo-random sequence, wherein the target sequence comprises a pseudo-random sequence for generating a corresponding drawing instruction; acquiring a drawing coordinate corresponding to a target sequence; and generating the instruction list according to the drawing coordinates corresponding to the target sequence and a preset drawing shape. For the generated instruction list, reference may be made to fig. 2C, where "REC" indicates that the preset drawing shape is a rectangle, and "132.5,101.75127.5, 98.25" indicates drawing coordinates of the drawing rectangle.
Optionally, for example, the initial sequence values are 14 1 s, and an absolute value truth table is generated by using the m sequence. The m-sequences having a bit length of 16383 are numbered. The number is coded from 0 to 16382, and the hexadecimal value is 0x 0000-0 x3 FFE. Since the bit width of the m-sequence is 14 bits, that is, the m-sequence is read 14 bits at a time, as shown in fig. 2, when the m-sequence is read 11111111111111 (binary), the corresponding absolute value is 0x0000, when the m-sequence is read 11111111111110 (binary), the corresponding absolute value is 0x0001 …, and when the m-sequence is read 01111111111111 (binary), the corresponding absolute value is 0x3 FFE. Thus, the current absolute value can be obtained by reading the values of the m-sequence. Further, the IF function is applied to the EXCEL program to determine whether the value of m is 1, and IF it is 1, a drawing command is generated, and IF it is 0, no drawing command is generated, so that the command list is generated.
In the technical scheme of this embodiment, when receiving a generation request input by a user, the generation device for the instruction list can generate the instruction list according to information carried in the generation request, so that the user can directly copy the drawing instruction in the instruction list or directly import the instruction list into a drawing tool when writing the drawing instruction, and does not need to write manually, thereby avoiding errors possibly caused by manual writing by engineers.
Referring to fig. 3, fig. 3 is a second embodiment of the method for generating an instruction list according to the present invention, and based on the first embodiment, after step S30, the method includes:
and step S40, generating an electronic drawing according to the instruction list.
In this embodiment, after the instruction list is generated, the electronic drawing may be generated according to the instruction list.
Optionally, the electronic drawing is generated according to the instruction list through a preset drawing program, where the preset drawing program includes a CAD drawing program. For example: and opening the CAD drawing program, and then sequentially leading the drawing instructions in the instruction list into a command box of the CAD drawing program in a command input window in the CAD and executing the drawing instructions to generate the electronic drawing.
In the technical scheme of the embodiment, the electronic drawing can be generated based on the generation request input by the user, so that the human participation is reduced, on one hand, the intelligent degree of the electronic drawing generation can be improved, and on the other hand, the error caused by the human operation is also reduced.
Referring to fig. 4, fig. 4 is a third embodiment of the method for generating an instruction list according to the present invention, and based on the first or second embodiment, after step S40, the method includes:
and step S50, printing the engineering drawing according to the electronic drawing.
In this embodiment, after the electronic drawing is generated, the engineering drawing may be printed based on the electronic drawing.
Optionally, the grating scale is a grating scale sensor, and the grating is a technology combining digital technology and traditional printing, and can show different special effects on a special film. The vivid three-dimensional world, the cinematic smooth animation segments and the gangrene fantasy effect are displayed on the plane. The grating is a sheet of strip lenses, and when viewed from one side of the lens, the image is seen as a thin line on the other side of the sheet, the position of the line being determined by the viewing angle. If we print these images on different lines, corresponding to the width of each lens, in sequential rows on the back of the lenticular sheet, respectively, we will see different images when we look through the lenses from different angles. A grating ruler: the numerical control machine tool has the advantages that the coordinate of the cutter and the coordinate of the workpiece are detected, whether the cutter has errors or not is observed in the numerical control machine tool commonly, the compensation effect of compensating the errors of the movement of the cutter is achieved, the effect that people see that the cutting is not inclined to the right is achieved, and then the standard that whether the force is required to be changed or not can be achieved for hands. A grating ruler displacement sensor (called a grating ruler for short) is a measurement feedback device working by utilizing the optical principle of a grating. The grating ruler displacement sensor is often applied to a closed loop servo system of a numerical control machine tool and can be used for detecting linear displacement or angular displacement. The signal output by the sensor is digital pulse, and the sensor has the characteristics of large detection range, high detection precision and high response speed. For example, in a numerically controlled machine tool, it is common to detect the coordinates of the tool and the workpiece to observe and track the feed error, so as to compensate for the motion error of the tool.
Optionally, the grid ruler is a magnetic grid ruler, and the magnetic grid ruler is a process of recording magnetic waves with strictly equal intervals on the magnetic grid ruler (or disc) by using a recording head by using a method similar to a recording technology, which is called magnetic recording. The magnetic scale on which the magnetic wave has been recorded is called a magnetic grid scale. The separation distance between adjacent grid waves on the magnetic grid ruler is called the wavelength of the magnetic grid, and is also called the pitch (grid distance) of the magnetic grid.
In the technical scheme of the embodiment, after the electronic drawing is generated based on the generation request input by the user, the electronic drawing is printed, so that the intelligent degree of generating the engineering drawing can be improved.
Referring to fig. 5, fig. 5 is a fourth embodiment of the method for generating an instruction list according to the present invention, and based on any one of the first to third embodiments, step S30 includes:
step S31, acquiring the sequence value and sequence number of the pseudo random sequence list.
In this embodiment, the sequence value is an absolute value of a binary number corresponding to a pseudorandom sequence in the pseudorandom sequence list, and the sequence number is a list change of IDs for each pseudorandom sequence.
Step S32, generating a drawing instruction corresponding to the sequence number according to the sequence value, so as to generate the instruction list.
In this embodiment, when the pseudo-random sequence having the sequence value of 1 in the pseudo-random sequence list is determined as a sequence in which a corresponding graph needs to be drawn, the ID is determined as the drawing coordinate, and the instruction list is generated based on a preset drawing shape.
In the technical solution of this embodiment, by converting the sequence value of the pseudo-random sequence list into an absolute value, when the generation apparatus of the instruction list reads and identifies the sequence value, the absolute value can be replaced by a longer pseudo-random sequence, thereby reducing the calculation resources required for reading and identifying.
Referring to fig. 6, fig. 6 shows a sixth embodiment of the method for generating an instruction list according to the present invention, which is based on any one of the first to fifth embodiments, and further includes, after step S30:
step S60, outputting the instruction list.
In this embodiment, the instruction list may be output to a display interface of the EXCEL, so that the user can visually know details of the drawing instruction, and further, a prompt message corresponding to the instruction list may be generated to remind the user of completion of generation.
In the technical scheme of the embodiment, the user experience can be improved by outputting the instruction list and the corresponding prompt information.
In order to achieve the above object, an embodiment of the present invention further provides a method and an apparatus for generating an instruction list, where the method and the apparatus for generating an instruction list include: the present invention relates to a method for generating an instruction list, and more particularly, to a method for generating an instruction list, which includes a memory, a processor, and a program of the method for generating an instruction list stored in the memory and executable on the processor.
To achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, on which a generation method program of an instruction list is stored, and when the generation method program of the instruction list is executed by a processor, the steps of the generation method of the instruction list as described above are implemented.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or program product for generating a list of instructions. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a program product for generating a list of instructions embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and instruction list generation methods program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by program instructions for generating a list of instructions. Methods of generating these instruction lists program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Methods of generating these lists of instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
Methods for generating these lists of instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method for generating an instruction list, the method comprising:
when a generation request is received, determining a sequence initial value and a primitive polynomial according to the generation request;
generating a pseudo-random sequence list according to the sequence initial value and the primitive polynomial;
and generating an instruction list according to the pseudo-random sequence list, wherein the instruction list is used for outputting and/or generating an engineering drawing, the instruction list comprises drawing instructions, and the drawing instructions comprise drawing shapes and drawing coordinates.
2. The method of generating a list of instructions of claim 1 wherein said step of generating a list of instructions from said list of pseudorandom sequences comprises:
acquiring a target sequence from the pseudo-random sequence, wherein the target sequence comprises a pseudo-random sequence for generating a corresponding drawing instruction;
obtaining drawing coordinates corresponding to the target sequence;
and generating the instruction list according to the drawing coordinates corresponding to the target sequence and a preset drawing shape.
3. The method of generating a list of instructions of claim 1 wherein after said step of generating a list of instructions from said list of pseudorandom sequences, said method further comprises:
and generating an electronic drawing according to the instruction list.
4. The method of generating an instruction list according to claim 3, wherein the step of generating an electronic drawing from the instruction list includes:
and generating the electronic drawing according to the instruction list through a preset drawing program, wherein the preset drawing program comprises a CAD drawing program.
5. The method of generating an instruction list of claim 3, wherein after the step of generating an electronic drawing from the instruction list, the method further comprises:
and printing the engineering drawing according to the electronic drawing.
6. The method of generating a list of instructions of claim 1 wherein said step of generating a list of instructions from said list of pseudorandom sequences comprises:
acquiring a sequence value and a sequence number of the pseudo-random sequence list;
and generating a drawing instruction corresponding to the sequence number according to the sequence value so as to generate the instruction list.
7. The method of generating a list of instructions of claim 1 wherein after said step of generating a list of instructions from said list of pseudorandom sequences, said method further comprises:
and outputting the instruction list.
8. A method and a device for generating an instruction list are characterized in that the method and the device for generating the instruction list comprise: a memory, a processor, and a program of a method for generating a list of instructions stored on the memory and executable on the processor, the processor implementing the steps of the method for generating a list of instructions according to any one of claims 1 to 7 when executing the program of the method for generating a list of instructions.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a generation method program of a list of instructions which, when executed by a processor, implements the steps of the generation method of a list of instructions according to any one of claims 1 to 7.
CN202110198949.7A 2021-02-22 2021-02-22 Instruction list generation method and device and computer readable storage medium Active CN112836982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110198949.7A CN112836982B (en) 2021-02-22 2021-02-22 Instruction list generation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110198949.7A CN112836982B (en) 2021-02-22 2021-02-22 Instruction list generation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112836982A true CN112836982A (en) 2021-05-25
CN112836982B CN112836982B (en) 2023-06-23

Family

ID=75934276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110198949.7A Active CN112836982B (en) 2021-02-22 2021-02-22 Instruction list generation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112836982B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4667301A (en) * 1983-06-13 1987-05-19 Control Data Corporation Generator for pseudo-random numbers
FR2792797A1 (en) * 1999-04-23 2000-10-27 Thomson Csf Video/fixed image embedded watermark system having watermarking and co embedding process using image binary processing determining origin position and needing read mechanism for video origin correct prediction.
US20030130992A1 (en) * 2002-01-10 2003-07-10 Jenn-Kwei Tyan Automatic document reading system for technical drawings
CN1547134A (en) * 1999-10-25 2004-11-17 ��������³���о��ɷ����޹�˾ Method and system for printing a document.
CN101763654A (en) * 2010-01-19 2010-06-30 江苏大学 Feather point matching method based on colored false random coding projection
US20130097489A1 (en) * 2011-10-14 2013-04-18 Siemens Product Lifecycle Management Software Inc. Drawing automation in computer aided design systems
US20130262043A1 (en) * 2012-03-29 2013-10-03 Niculaie Trif System and Method For Determining A Location Within Complex Structures Using Pseudorandom Encoding Techniques
CN103557878A (en) * 2013-07-26 2014-02-05 广东工业大学 Absolute grating ruler multi-track encoding method
CN107291421A (en) * 2017-06-09 2017-10-24 中国电子科技集团公司第四十研究所 System and method occurs for a kind of programmable graphics sequence
CN110097613A (en) * 2019-05-08 2019-08-06 广西大学 A kind of B-spline curves generation method and system based on probability calculation
CN111735482A (en) * 2020-07-06 2020-10-02 长春汇通光电技术有限公司 Absolute value encoder, bit reading method thereof and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4667301A (en) * 1983-06-13 1987-05-19 Control Data Corporation Generator for pseudo-random numbers
FR2792797A1 (en) * 1999-04-23 2000-10-27 Thomson Csf Video/fixed image embedded watermark system having watermarking and co embedding process using image binary processing determining origin position and needing read mechanism for video origin correct prediction.
CN1547134A (en) * 1999-10-25 2004-11-17 ��������³���о��ɷ����޹�˾ Method and system for printing a document.
US20030130992A1 (en) * 2002-01-10 2003-07-10 Jenn-Kwei Tyan Automatic document reading system for technical drawings
CN101763654A (en) * 2010-01-19 2010-06-30 江苏大学 Feather point matching method based on colored false random coding projection
US20130097489A1 (en) * 2011-10-14 2013-04-18 Siemens Product Lifecycle Management Software Inc. Drawing automation in computer aided design systems
US20130262043A1 (en) * 2012-03-29 2013-10-03 Niculaie Trif System and Method For Determining A Location Within Complex Structures Using Pseudorandom Encoding Techniques
CN103557878A (en) * 2013-07-26 2014-02-05 广东工业大学 Absolute grating ruler multi-track encoding method
CN107291421A (en) * 2017-06-09 2017-10-24 中国电子科技集团公司第四十研究所 System and method occurs for a kind of programmable graphics sequence
CN110097613A (en) * 2019-05-08 2019-08-06 广西大学 A kind of B-spline curves generation method and system based on probability calculation
CN111735482A (en) * 2020-07-06 2020-10-02 长春汇通光电技术有限公司 Absolute value encoder, bit reading method thereof and electronic equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MARCH,A ET AL: "Polynomial pseudo-random number generator via cyclic phase", 《MATHEMATICS AND COMPUTERS SIMULATION》 *
李昭然等: "一种矩阵码与伪随机码组合的光栅尺编码机制", 《制造业自动化》 *
王阳等: "基于伪随机序列的索引式绝对位置编码", 《计量学报》 *
龚华云: "基于伪随机编码调制的视觉诱发电位脑机接口研究", 《中国优秀硕士学位论文全文数据库 医药卫生科技辑》 *

Also Published As

Publication number Publication date
CN112836982B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US5371689A (en) Method of measuring cumulative processing time for modules required in process to be traced
CN101198968B (en) Method and system used for combination position and information code
CN103557878B (en) A kind of multi-track coding method of absolute grating ruler
CN105023595A (en) Apparatus for editing
CN1041842A (en) Adopt the film one video player of dedicated magnetic tracks on the film
KR20070036150A (en) Coding and decoding of data
CN112380716B (en) SLA 3D printing time estimation method and system based on learning algorithm
CN112486613A (en) Engineering project Web end construction progress management method and device and readable storage medium
CN107121072A (en) Two-dimentional absolute displacement encoder
CN112836982B (en) Instruction list generation method and device and computer readable storage medium
JPH07121084B2 (en) Television video signal special effect device
KR940009710B1 (en) Method and apparatus for reading bar-code under fast changing scanning speed
RU2353970C1 (en) Device for simulation of mobile objects exploration catalogue
CN105150701A (en) Printing equipment, as well as image harmomegathus printing control device and control method thereof
CN101592468B (en) Method and system for annular addressing of pseudo-random code displacement sensor
CN111289015A (en) Multi-resolution absolute position measuring device
CN103873037A (en) Power supply with switch control function
JP2021060341A (en) Absolute linear encoder
CN109163743B (en) Coding and decoding algorithm of two-dimensional absolute position measuring sensor
CN103200446A (en) Method and device for playing multi-media files
CN109341726B (en) Coding method of serial absolute encoder
CN113542086B (en) CAN signal initial position calculation method and DBC file generation method
CN116330663A (en) DLP-based 3D printing slice filling method
Reif et al. On frictional mechanical systems and their computational power
WO2023028967A1 (en) Absolute position measurement 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
GR01 Patent grant
GR01 Patent grant