CN114035447A - Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education - Google Patents

Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education Download PDF

Info

Publication number
CN114035447A
CN114035447A CN202111223089.4A CN202111223089A CN114035447A CN 114035447 A CN114035447 A CN 114035447A CN 202111223089 A CN202111223089 A CN 202111223089A CN 114035447 A CN114035447 A CN 114035447A
Authority
CN
China
Prior art keywords
program
module
hardware
simulation
statement
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
CN202111223089.4A
Other languages
Chinese (zh)
Other versions
CN114035447B (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.)
South China Normal University
Original Assignee
South China Normal University
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 South China Normal University filed Critical South China Normal University
Priority to CN202111223089.4A priority Critical patent/CN114035447B/en
Publication of CN114035447A publication Critical patent/CN114035447A/en
Application granted granted Critical
Publication of CN114035447B publication Critical patent/CN114035447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B17/00Systems involving the use of models or simulators of said systems
    • G05B17/02Systems involving the use of models or simulators of said systems electric

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a hardware simulator for graphical programming software of primary and secondary school artificial intelligence education, which adopts the simulation combining an integral mode and a local mode, is superior to the existing robot simulator only performing integral simulation, and is different from the existing simulation of the same type. The simulation that whole and local two kinds of modes combine can show the working effect of local hardware when providing audio-visual whole show for middle and primary school students, makes things convenient for the student to know the influence that each hardware during operation of robot brought for the robot more comprehensively. The work state and data information displayed by the simulation only meet the requirements of an artificial intelligence education classroom, namely hardware facility interface information and data obtained by work are displayed, and unnecessary information exchange between fine data on the hardware working principle level and actual hardware is not displayed. Therefore, the problem that the simulation mode of the existing hardware simulator is not suitable for an artificial intelligence education classroom can be solved.

Description

Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education
Technical Field
The embodiment of the invention relates to the technical field of hardware simulation, in particular to a hardware simulator for graphical programming software of primary and secondary school artificial intelligence education.
Background
Under the background of the era that artificial intelligence gradually enters the public visual field, artificial intelligence education is developed, students can learn the artificial intelligence technology which is rapidly developed, the huge effect of the artificial intelligence technology is realized, intelligent consciousness is formed, the correct development direction is established for the students, the learning quality is improved by effectively applying the artificial intelligence technology, the artificial intelligence technology is better adapted to the social trend and the like, and the artificial intelligence education has very important meanings. In the field of basic education, artificial intelligence education has received a certain attention.
In 2020, the primary and secondary schools around 100 of the city county such as Shenzhen city and Guangzhou city have started the primary and secondary school artificial intelligence education course.
In the process of gradually popularizing the artificial intelligence education of primary and secondary schools, the artificial intelligence courses of the primary and secondary schools are continuously developed, and a plurality of classic artificial intelligence course cases, such as cases which are close to life and easy to understand by students, like unmanned driving, are also developed. At present, the common artificial intelligence education in the market is mainly divided into two types, one type is traditional robot education, and the other type is programming education. Traditional robot education is more important on the control of robot, and the product of robot education generally lacks artificial intelligence element and form is single on the market to reach the purpose of educating the student with the control to the robot usually. The programming education is mainly focused on software directions, and the educational aim is achieved through the produced games or animations. This approach does not convey to the student the association of artificial intelligence technology with the real world.
The graphical programming software developed by the two products can not meet the requirement of course teaching continuity. A hardware emulator is one way to solve the above problem. The hardware simulator can be used for bearing the learning task after class without hardware facilities, and can also provide a new platform for students to carry out artificial intelligence learning, thereby reducing the cost of artificial intelligence education. However, the simulation modes of the common artificial intelligence education hardware simulator in the market are mainly divided into two types, one type is overall simulation, and the other type is simulation combining an overall mode and a local mode. The whole simulation is the whole simulation of the robot, and the local simulation is lacked, namely the simulation of local hardware such as a sensor and a motor is lacked, so that students cannot see the influence of the local hardware on the whole. Most of simulation combining the whole mode and the local mode in the market is applied to simulation of electronic design classes, simulated data are very fine and comprehensive, and simulation oriented to working principle levels is mostly performed, but the artificial intelligence education classroom does not need very fine simulation, and only hardware facility interface information and data obtained when hardware works are needed to be displayed, and information exchange between fine data on the working principle level of each hardware and actual hardware is not needed to be displayed. Therefore, the problems that the existing hardware simulator and simulation mode are not suitable for artificial intelligence education are faced at present.
Because the artificial intelligence education classroom has low requirements on the simulation degree of the hardware simulator, namely, a high-level physical engine, a delicate picture and extremely fine simulation are not required. Considering that the development simulator of python language is convenient to be connected with graphical programming software, the hardware simulator can be carried on a microcomputer such as a raspberry pie and the like, and can meet the simulation requirements of the artificial intelligence education classroom and other factors, the invention adopts the open source library pgzero in python to display the simulation interface and effect. The pgzero library is highly integrated into the pygale library and condenses the infinite loop for the picture presentation into a library built-in function. Due to the infinite loop function built in the pgzero library, the simulated picture can only show the simulation effect of the hardware according to a specific simulation logic sequence, and the built-in infinite loop function cannot control the whole simulation process by utilizing a program executed once.
Disclosure of Invention
The embodiment of the invention provides a hardware simulator for graphical programming software of artificial intelligence education of primary and middle schools, and aims to solve the problems that the cost of the conventional artificial intelligence education of the primary and middle schools is high, and the simulation mode of the conventional hardware simulator is not suitable for the artificial intelligence education.
The embodiment of the invention provides a hardware simulator for primary and secondary school artificial intelligence education graphical programming software, which comprises a resource management module, a code searching module, a code conversion module, a thread control module and an integrated execution module:
the resource management module is used for storing resource files to be called by the graphical programming software in the simulation process;
the code searching module is used for transmitting a true value to the code conversion module when a hardware control program statement needing simulation is found in a to-be-executed python program transmitted in the imaging programming software;
the code conversion module is used for converting the hardware control program statement into a hardware simulation display statement;
the thread control module is used for dividing the hardware simulation display statement and the remaining statements in the program to be executed python which do not need to be converted into two or more threads and controlling the locking and releasing time points of the two or more threads;
the integrated execution module is used for receiving statements of two or more threads transmitted by the thread control module, integrating the statements into an executable python simulation program file, and calling the resource file in the resource management module in real time to perform simulation display when the python simulation program file is operated.
Preferably, the code searching module comprises a special statement storage sub-module, a special statement identification sub-module and a parameter acquisition sub-module;
the special statement storage submodule is used for pre-storing a hardware control program statement to be subjected to simulation, the hardware control program statement comprises a characteristic statement and a corresponding simulator control variable, the characteristic statement is a function with parameters, and the characteristic statement is a judgment basis of a program statement to be converted in a python program to be executed;
the special statement identification submodule is used for traversing the to-be-executed python program and judging whether a hardware control program statement stored in the special statement storage submodule exists in the to-be-executed python program or not; if so, assigning the simulator control variable corresponding to the corresponding program statement as a true value, otherwise, not assigning;
and the parameter acquisition submodule is used for judging whether the function in the hardware control program statement has input parameters or not, if so, acquiring the parameters in the function, storing the parameters by using variables and transmitting the parameters to the code conversion module.
Preferably, the thread control module comprises a logic judgment sub-module and a thread writing sub-module;
the logic judgment submodule is used for controlling the writing logic of the thread writing submodule so that the combined writing sequence of the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program completely follows the logic sequence of the to-be-executed python program;
the thread writing sub-module is used for dividing the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program into two or more threads, performing synchronous and asynchronous control on each hardware simulation process by controlling the locking and releasing time points of the two or more threads, giving a logic sequence according to the logic judgment sub-module, generating a converted and multi-threaded python main program, and transmitting the python main program to the integrated execution module.
Preferably, the integration execution module comprises a calling submodule, a display submodule and an integration submodule;
the integration submodule is used for acquiring a python main program generated by the thread control module and subjected to thread control, integrating the python main program, a resource calling program of the calling submodule and an interface display program of the display module together, generating an executable python simulation program and operating the program;
the calling submodule is used for calling a resource file in the resource management module when a python simulation program text is operated, and the resource file comprises a picture, audio and a font;
and the display submodule is used for controlling the display of the running interface of the simulator and displaying the resource file called by the calling submodule on the running interface in real time.
Preferably, in the special statement identification submodule, an initial value of the simulator control variable is a false value; and the simulator control variable is used for controlling the corresponding simulator to perform simulation display.
The hardware simulator for the graphical programming software of the artificial intelligence education of the primary and secondary schools provided by the embodiment of the invention adopts the simulation combining the integral mode and the local mode, is superior to the existing robot simulator which only performs integral simulation, and is different from the existing simulation of the same type; the simulation that whole and local two kinds of modes combine can show the working effect of local hardware when providing audio-visual whole show for middle and primary school students, makes things convenient for the student to know the influence that each hardware during operation of robot brought for the robot more comprehensively. The work state and data information displayed by the simulation only meet the requirements of an artificial intelligence education classroom, namely hardware facility interface information and data obtained by work are displayed, and unnecessary information exchange between fine data on the hardware working principle level and actual hardware is not displayed. Therefore, the problem that the simulation mode of the existing hardware simulator is not suitable for an artificial intelligence education classroom can be solved; a hardware emulator on graphical programming software is built by using the python's pgzero library. The cost of using the software by a user is reduced by simulating the hardware part in the graphical programming software.
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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a block diagram of a hardware simulator for graphical programming software for artificial intelligence education in primary and secondary schools according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a specific use flow of a hardware simulator for the graphical programming software for the artificial intelligence education of primary and secondary schools according to the embodiment of the invention;
FIG. 3 is a diagram illustrating the operation relationship between the graphical programming software and the simulator according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the present application, the term "and/or" is only one kind of association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, the terms "comprise" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a system, product or apparatus that comprises a list of elements or components is not limited to only those elements or components but may alternatively include other elements or components not expressly listed or inherent to such product or apparatus. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
When the graphical programming software is used for splicing the hardware cases, certain hardware facilities such as a trolley and the like needed in the unmanned driving case are usually matched. Therefore, after the students finish the artificial intelligence courses, the students cannot review the learning contents on the courses through software without hardware facilities, and further cannot develop the interest of the artificial intelligence direction. If every student buys hardware facilities, the cost of popularizing artificial intelligence education will be greatly increased.
The hardware simulator can be used for bearing the learning task after class without hardware facilities, and can also provide a new platform for students to carry out artificial intelligence learning, thereby reducing the cost of artificial intelligence education. However, the simulation modes of the common artificial intelligence education hardware simulator in the market are mainly divided into two types, one type is overall simulation, and the other type is simulation combining an overall mode and a local mode. The whole simulation is the whole simulation of the robot, and the local simulation is lacked, namely the simulation of local hardware such as a sensor and a motor is lacked, so that students cannot see the influence of the local hardware on the whole.
Therefore, the embodiment of the invention provides a graphical programming software simulation method and a simulator for artificial intelligence education, wherein a hardware simulator on the graphical programming software is built by using a python pgzero library, the cost of using the software by a user is reduced by simulating the hardware part in the graphical programming software, a new platform suitable for an artificial intelligence education classroom is provided for students in middle and primary schools, and the popularization and the promotion of the artificial intelligence education in the middle and primary schools are facilitated. The following description and description will proceed with reference being made to various embodiments.
Fig. 1 is a hardware simulator for primary and secondary school artificial intelligence education graphical programming software, which includes a resource management module, a code search module, a code conversion module, a thread control module, and an integrated execution module:
the resource management module is used for storing resource files to be called by the graphical programming software in the simulation process;
specifically, a simulation button is set on a graphical programming software interface as a starting button of the simulator, a graphical programming block is dragged to an editing area in the graphical programming software for programming, a program obtained by converting the programming block in the editing area is displayed in a code display area, the obtained program is a python program to be executed and is also called a primitive program, and the program can be stored in the same directory position of the graphical programming software;
the code searching module is used for transmitting a true value to the code conversion module when a hardware control program statement needing simulation is found in a to-be-executed python program transmitted in the imaging programming software;
specifically, the code searching module comprises a special statement storage sub-module, a special statement identification sub-module and a parameter acquisition sub-module; at this time, when a simulation button on the graphical programming software interface is clicked, the simulator is started, and the code searching module automatically searches the python program file to be executed in the directory where the graphical programming software is located.
The special statement storage submodule is used for pre-storing hardware control program statements needing simulation, the hardware control program statements comprise characteristic statements and simulator control variables corresponding to each specific hardware control program statement, the characteristic statements are functions with parameters, and the characteristic statements are judgment bases of program statements needing conversion in a python program to be executed;
the special statement identification submodule is used for traversing the to-be-executed python program and judging whether a hardware control program statement stored in the special statement storage submodule exists in the to-be-executed python program or not; if yes, assigning the simulator control variable corresponding to the statement to be true, defaulting to be false under the condition that other variables are not assigned, and transmitting all variables to the code conversion module under the condition that other statements are not processed.
And the parameter acquisition submodule is used for judging whether the function in the hardware control program statement has an input parameter or not, if so, acquiring the parameter in the function, storing the parameter by using a variable and transmitting the parameter to the code conversion module.
The code conversion module is used for converting the hardware control program statement into a hardware simulation display statement;
specifically, the code searching module starts to operate after a variable is transmitted, receives the variable transmitted from the code searching module, converts the variable into a hardware simulation display statement if the variable is judged to be true, judges whether a corresponding simulator control variable exists at the same time, and writes corresponding parameters into the hardware simulation display statement if the corresponding simulator control variable exists. In the conversion process, a single statement is split into a plurality of hardware simulation display statements according to a preset condition, or a plurality of statements are combined into one hardware simulation display statement according to the preset condition. One or more hardware simulation display statements may be used as statements to control a hardware simulation process. And finally, transmitting all hardware simulation display statements to the thread control module.
The thread control module is used for dividing the hardware simulation display statement and the remaining statements in the program to be executed python which do not need to be converted into two or more threads and controlling the locking and releasing time points of the two or more threads; and generating a transformed python main program with multiple threads according to the given logic sequence of the logic judgment module, and finally transmitting the transformed python main program to the integrated execution module.
The thread control module comprises a logic judgment sub-module and a thread writing sub-module;
the logic judgment submodule is used for controlling the writing logic of the thread writing submodule, so that the combined writing sequence of the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program completely follows the logic sequence of the to-be-executed python program, the hardware simulation display function is realized, and the integrity of the logic of other statements is not damaged.
The thread writing sub-module is used for dividing the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program into two or more threads, performing synchronous and asynchronous control on each hardware simulation process by controlling the locking and releasing time points of the two or more threads, giving a logic sequence according to the logic judgment sub-module, generating a converted and multi-threaded python main program, and transmitting the python main program to the integrated execution module.
The integrated execution module is used for receiving statements of two or more threads transmitted by the thread control module, integrating the statements into an executable python simulation program file, and calling the resource file in the resource management module in real time to perform simulation display when the python simulation program file is operated.
The integration execution module comprises a calling submodule, a display submodule and an integration submodule; the execution is started after the transformed python main program with multiple threads passed by the thread control module is obtained.
The integration submodule is used for acquiring a python main program generated by the thread control module and subjected to thread control, integrating the python main program, a resource calling program of the calling submodule and an interface display program of the display module together, generating an executable python simulation program and operating the program;
the calling submodule is used for calling a resource file in the resource management module when a python simulation program text is operated, and the resource file comprises a picture, audio and a font; the system is provided for the simulator to refresh pictures in real time, call audio, fonts and the like, and has the function of storing resources to the resource management module in real time.
The display submodule is used for controlling the display of the running interface of the simulator, displaying the resource file called by the calling submodule on the running interface in real time, and refreshing the picture in real time, wherein the refreshing of the picture, the refreshing of the data, the refreshing of the output result and the like are included.
Compared with the existing simulators on the market, the simulator has the advantages of small occupied storage space, small occupied running memory during running and small calculation amount during running. The existing simulators on the market are difficult to operate on computer systems with small computing power and less memory, such as raspberries and other microcomputers, and the invention has the capability of being carried on the computer systems to operate.
The integration module acquires the python main program generated by the thread control module and subjected to thread control, integrates the python main program with the resource calling program of the calling module and the interface display program of the display module, generates an executable python simulation program, and runs the executable python simulation program to finally obtain a complete simulator which is executing the program and updates the picture in real time. The operation interface of the simulator is shown in fig. 3, and includes a simulator simulation work display area, a simulation robot operation observation area and a simulation operation data display area, where in fig. 3, the label 1 is: dragging the graphical programming block to an editing area for programming; the label 2 is: displaying the program obtained by the conversion of the programming block in a code display area; the label 3 is: displaying an output result obtained by operating the program in an operation display area; the label 4 is: after clicking a simulation button, carrying out simulation conversion on the program and operating to obtain a simulation picture; the label 5 is: acquiring data obtained by simulation work of the sensor and displaying the data in a simulation operation data display area; the reference number 6 is: and acquiring data obtained by the simulation work of the sensor and displaying the data in a simulation operation data display area.
As shown in fig. 3, the graphical programming software of the present invention has five areas, namely, a key function area, a graphical programming block placement area, an editing area, a code display area and a running display area. However, the graphical programming software interface shown in fig. 3 only represents the interface area and the general layout basically owned by most graphical programming software, and does not represent all the areas and the overall layout of a specific graphical programming software interface, nor all the areas and the overall layout of all the graphical programming software interfaces.
The embodiment of the invention also adopts a mode to solve the problem that hardware program control threads such as a camera and the like occupy the memory. Firstly, judging whether threads for controlling hardware programs such as a camera exist or not; if so, after executing the emulation program, the remaining threads are shut down, the threads are preferentially executed, and then the threads that are not under such hardware control are turned on again.
In order to solve the problems that a simulated picture can only show the simulation effect of hardware according to a specific simulation logic sequence and cannot control the whole simulation process by utilizing a program executed at one time due to an infinite loop function built in a pgzero library of python, the embodiment of the invention controls whether certain hardware is shown or not by setting a global variable based on the whole simulation program and changing the global variable. The program statements for controlling hardware simulation and the statements in the program to be executed without conversion (namely the program to be executed at one time) are divided into two or more threads, and the synchronous and asynchronous display of the hardware in the simulation picture is controlled by locking and releasing the threads, so that the integrity of the hardware simulation display function and the logic of the rest statements is realized.
The embodiment of the invention provides a quick operation mode. Firstly, setting a simulation button in graphical programming software, wherein the button controls the operation of a simulator; secondly, providing a python file generated after graphical programming; and finally, clicking a simulation button, starting the operation of the simulator, converting the python file, generating and operating the python file containing the simulation content, and finally displaying the simulation effect.
In summary, the embodiment of the invention adopts the simulation combining the integral simulation mode and the local simulation mode, which is superior to the existing robot simulator only performing integral simulation, but is different from the existing simulation of the same type. The simulation that whole and local two kinds of modes combine can show the working effect of local hardware when providing audio-visual whole show for middle and primary school students, makes things convenient for the student to know the influence that each hardware during operation of robot brought for the robot more comprehensively. The work state and data information displayed by the simulation only meet the requirements of an artificial intelligence education classroom, namely hardware facility interface information and data obtained by work are displayed, and unnecessary information exchange between fine data on the hardware working principle level and actual hardware is not displayed. Therefore, the problem that the simulation mode of the existing simulator is not suitable for an artificial intelligence education classroom can be solved.
The embodiments of the present invention can be arbitrarily combined to achieve different technical effects.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A hardware simulator for the graphical programming software of the artificial intelligence education of primary and middle schools is characterized by comprising a resource management module, a code searching module, a code conversion module, a thread control module and an integrated execution module:
the resource management module is used for storing resource files to be called by the graphical programming software in the simulation process;
the code searching module is used for transmitting a true value to the code conversion module when a hardware control program statement needing simulation is found in a to-be-executed python program transmitted in the imaging programming software;
the code conversion module is used for converting the hardware control program statement into a hardware simulation display statement;
the thread control module is used for dividing the hardware simulation display statement and the remaining statements in the program to be executed python which do not need to be converted into two or more threads and controlling the locking and releasing time points of the two or more threads;
the integrated execution module is used for receiving statements of two or more threads transmitted by the thread control module, integrating the statements into an executable python simulation program file, and calling the resource file in the resource management module in real time to perform simulation display when the python simulation program file is operated.
2. The hardware simulator for the graphical programming software of the artificial intelligence education for primary and secondary schools according to claim 1, wherein the code finding module comprises a special sentence storage sub-module, a special sentence recognition sub-module and a parameter acquisition sub-module;
the special statement storage submodule is used for pre-storing a hardware control program statement to be subjected to simulation, the hardware control program statement comprises a characteristic statement and a corresponding simulator control variable, the characteristic statement is a function with parameters, and the characteristic statement is a judgment basis of a program statement to be converted in a python program to be executed;
the special statement identification submodule is used for traversing the to-be-executed python program and judging whether a hardware control program statement stored in the special statement storage submodule exists in the to-be-executed python program or not; if so, assigning the simulator control variable corresponding to the corresponding program statement as a true value, otherwise, not assigning;
and the parameter acquisition submodule is used for judging whether the function in the hardware control program statement has input parameters or not, if so, acquiring the parameters in the function, storing the parameters by using variables and transmitting the parameters to the code conversion module.
3. The hardware simulator of graphical programming software for artificial intelligence education of claim 2, wherein the thread control module includes a logic judgment sub-module and a thread writing sub-module;
the logic judgment submodule is used for controlling the writing logic of the thread writing submodule so that the combined writing sequence of the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program completely follows the logic sequence of the to-be-executed python program;
the thread writing sub-module is used for dividing the hardware simulation display statement and the program statement which is not required to be converted in the to-be-executed python program into two or more threads, performing synchronous and asynchronous control on each hardware simulation process by controlling the locking and releasing time points of the two or more threads, giving a logic sequence according to the logic judgment sub-module, generating a converted and multi-threaded python main program, and transmitting the python main program to the integrated execution module.
4. The hardware simulator for the graphical programming software of the artificial intelligence education for primary and secondary schools according to claim 3, wherein the integration execution module comprises a calling sub-module, a showing sub-module and an integrating sub-module;
the integration submodule is used for acquiring a python main program generated by the thread control module and subjected to thread control, integrating the python main program, a resource calling program of the calling submodule and an interface display program of the display module together, generating an executable python simulation program and operating the program;
the calling submodule is used for calling a resource file in the resource management module when a python simulation program text is operated, and the resource file comprises a picture, audio and a font;
and the display submodule is used for controlling the display of the running interface of the simulator and displaying the resource file called by the calling submodule on the running interface in real time.
5. The hardware simulator of graphic programming software for artificial intelligence education of claim 2, wherein in the special sentence recognition sub-module, the initial value of the simulator control variable is a false value; and the simulator control variable is used for controlling the corresponding simulator to perform simulation display.
CN202111223089.4A 2021-10-20 2021-10-20 Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education Active CN114035447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111223089.4A CN114035447B (en) 2021-10-20 2021-10-20 Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111223089.4A CN114035447B (en) 2021-10-20 2021-10-20 Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education

Publications (2)

Publication Number Publication Date
CN114035447A true CN114035447A (en) 2022-02-11
CN114035447B CN114035447B (en) 2022-05-31

Family

ID=80141718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111223089.4A Active CN114035447B (en) 2021-10-20 2021-10-20 Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education

Country Status (1)

Country Link
CN (1) CN114035447B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291929A (en) * 2022-07-05 2022-11-04 华南师范大学 Programming block management system for artificial intelligence education graphical programming software
CN115760501A (en) * 2022-10-25 2023-03-07 华南师范大学 AI simulation teaching system based on graphical programming platform

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991019237A1 (en) * 1990-05-30 1991-12-12 Allen-Bradley Company, Inc. Graphical programming interface for machine/process controllers
CN101872367A (en) * 2009-04-21 2010-10-27 上海威璞电子科技有限公司 Board-level circuit programmable multi-FPGA (Field Programmable Gate Array) verification system adopting high-speed electronic switch array
CN105045698A (en) * 2015-07-27 2015-11-11 浪潮集团有限公司 Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON
US20160092175A1 (en) * 2014-09-29 2016-03-31 National Instruments Corporation Remote Interface to Logical Instruments
CN106094575A (en) * 2016-08-26 2016-11-09 中南大学 A kind of robotic conveyance's virtual visualization control method and system
CN106802929A (en) * 2016-12-27 2017-06-06 华南师范大学 The graphical analysis method and system of a kind of big data threedimensional model
CN107644563A (en) * 2017-04-28 2018-01-30 天津职业技术师范大学 Automotive electronics combined training platform based on graphic programming
CN109271144A (en) * 2018-08-24 2019-01-25 深圳市创客星空科技有限公司 A kind of cloud the integration environment development approach for study
CN109426158A (en) * 2017-09-01 2019-03-05 帝斯贝思数字信号处理和控制工程有限公司 For generating the method and test device of the enforceable model in test device
CN110533991A (en) * 2019-08-27 2019-12-03 南京蓝宙科技有限公司 A kind of graphic programming educational robot based on double-core MCU
CN111258553A (en) * 2020-01-09 2020-06-09 广东技术师范大学 Python-based computational thinking teaching system
CN111862727A (en) * 2020-07-28 2020-10-30 中国科学院自动化研究所 Artificial intelligence graphical programming teaching platform and method
CN111913405A (en) * 2020-06-23 2020-11-10 中车工业研究院有限公司 Multi-software joint simulation system
CN112382154A (en) * 2020-11-19 2021-02-19 上海麦猴教育科技有限公司 Intelligent children programming teaching system
CN112614403A (en) * 2020-12-25 2021-04-06 深圳市小喵科技有限公司 Hardware simulation method and device

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991019237A1 (en) * 1990-05-30 1991-12-12 Allen-Bradley Company, Inc. Graphical programming interface for machine/process controllers
CN101872367A (en) * 2009-04-21 2010-10-27 上海威璞电子科技有限公司 Board-level circuit programmable multi-FPGA (Field Programmable Gate Array) verification system adopting high-speed electronic switch array
US20160092175A1 (en) * 2014-09-29 2016-03-31 National Instruments Corporation Remote Interface to Logical Instruments
CN105045698A (en) * 2015-07-27 2015-11-11 浪潮集团有限公司 Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON
CN106094575A (en) * 2016-08-26 2016-11-09 中南大学 A kind of robotic conveyance's virtual visualization control method and system
CN106802929A (en) * 2016-12-27 2017-06-06 华南师范大学 The graphical analysis method and system of a kind of big data threedimensional model
CN107644563A (en) * 2017-04-28 2018-01-30 天津职业技术师范大学 Automotive electronics combined training platform based on graphic programming
CN109426158A (en) * 2017-09-01 2019-03-05 帝斯贝思数字信号处理和控制工程有限公司 For generating the method and test device of the enforceable model in test device
EP3451202A1 (en) * 2017-09-01 2019-03-06 dSPACE digital signal processing and control engineering GmbH Method for generating a model of a technical system which can be run on a test device and a test device
CN109271144A (en) * 2018-08-24 2019-01-25 深圳市创客星空科技有限公司 A kind of cloud the integration environment development approach for study
CN110533991A (en) * 2019-08-27 2019-12-03 南京蓝宙科技有限公司 A kind of graphic programming educational robot based on double-core MCU
WO2021035901A1 (en) * 2019-08-27 2021-03-04 蓝宙(江苏)技术有限公司 Graphical programming education robot based on dual-core mcu
CN111258553A (en) * 2020-01-09 2020-06-09 广东技术师范大学 Python-based computational thinking teaching system
CN111913405A (en) * 2020-06-23 2020-11-10 中车工业研究院有限公司 Multi-software joint simulation system
CN111862727A (en) * 2020-07-28 2020-10-30 中国科学院自动化研究所 Artificial intelligence graphical programming teaching platform and method
CN112382154A (en) * 2020-11-19 2021-02-19 上海麦猴教育科技有限公司 Intelligent children programming teaching system
CN112614403A (en) * 2020-12-25 2021-04-06 深圳市小喵科技有限公司 Hardware simulation method and device

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
OMAR A. MORRIS;KHALID H. ABED: "Using Python for Mapping Molecular Dynamics Simulation Openmm Onto the Xeon Phi Architecture", 《SOUTHEASTCON 2018》 *
孟繁超: "基于Python的嵌入式开发工具的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
张美玲: "基于mPython的小学信息技术教学项目的设计研究", 《中国优秀硕士学位论文全文数据库 社会科学Ⅱ辑》 *
杨婷: "图形化硬件描述语言的研究与实现", 《中国优秀硕士学位论文全文数据库 社会科学Ⅱ辑》 *
林志伟,徐冠华,吴森洋: "基于树莓派的三维打印上位机控制系统", 《实验技术与管理》 *
陈泽君等: "基于tracker和python的物理建模方法——以研究抛体运动的阻力变化为例", 《大学物理实验》 *
马琼雄等: "人工智能领域创新创业教学方法研究", 《科技创业》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291929A (en) * 2022-07-05 2022-11-04 华南师范大学 Programming block management system for artificial intelligence education graphical programming software
CN115291929B (en) * 2022-07-05 2023-04-11 华南师范大学 Programming block management system for artificial intelligence education graphical programming software
CN115760501A (en) * 2022-10-25 2023-03-07 华南师范大学 AI simulation teaching system based on graphical programming platform

Also Published As

Publication number Publication date
CN114035447B (en) 2022-05-31

Similar Documents

Publication Publication Date Title
US11721230B2 (en) Personalized learning system and method for the automated generation of structured learning assets based on user data
US10249207B2 (en) Educational teaching system and method utilizing interactive avatars with learning manager and authoring manager functions
CN112507140B (en) Personalized intelligent learning recommendation method, device, equipment and storage medium
US20190220516A1 (en) Method and apparatus for mining general text content, server, and storage medium
CN114035447B (en) Hardware simulator for graphic programming software of primary and secondary school artificial intelligence education
US20200202737A1 (en) Automated system for mapping ordinary 3d media as multiple event sinks to spawn interactive educational material
Kalelioğlu et al. Curriculum integration ideas for improving the computational thinking skills of learners through programming via scratch
Lu Mobile augmented reality technology for design and implementation of library document push system
US20200027364A1 (en) Utilizing machine learning models to automatically provide connected learning support and services
Papakostas et al. CoMoPAR: A Comprehensive Conceptual Model for Designing Personalized Augmented Reality Systems in Education
Baccari et al. Design for a context-aware and collaborative mobile learning system
CN117494814A (en) Prompt word full life cycle management method, system, electronic equipment and storage medium
Olmedo et al. Multimodal interaction with virtual worlds XMMVR: eXtensible language for MultiModal interaction with virtual reality worlds
Čyras et al. Structural legal visualization
Ashtari et al. PONI: A Personalized Onboarding Interface for Getting Inspiration and Learning About AR/VR Creation
CN115756692A (en) Method for automatically combining and displaying pages based on style attributes and related equipment thereof
Vidakis et al. A multimodal interaction framework for blended learning
KR20220113284A (en) Knowledge map update method and system
CN115099229A (en) Plan model generation method, plan model generation device, electronic device and storage medium
Farrimond et al. Using multimedia to present case studies for systems analysis
Khuri A user-centered approach for designing algorithm visualizations
CN117911730A (en) Method, apparatus and computer program product for processing topics
Supic A model of a case-based approach to context-aware content sequencing in Mobile learning environments
Lezhebokov et al. Three-dimensional content in mobile applications for educational information systems
CN117149339B (en) User interface relation recognition method and related device based on artificial intelligence

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