Graphical programming system and graphical programming method for science education
By downloading and executing programs provided by the graphical programming platform with embedded devices, setting a timer with audio file duration, efficient interaction between embedded devices and graphical programming platform and accurate synchronization of audio playback, solving the problem of low audio playback synchronization and resource utilization in the existing technology.
Patent Information
- Application Number
- CN202411629088.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-15
- Publication Date
- 2025-04-08
AI Technical Summary
In existing hardware programming teaching, embedded devices such as micro cannot directly support playing common audio formats, such as MP3 and WAV files, resulting in the synchronization of audio playback and the execution of subsequent operations becoming a problem.
The program corresponding to the graphical code in the code area of the graphical programming platform is downloaded from the graphical programming platform through an embedded device, and the audio file duration to be recorded for the audio to be played. The embedded device sets the timer's duration based on the audio file duration, and uses the serial port to indicate the graphical programming platform to play the audio to be played.
It realizes efficient interaction between embedded devices and graphical programming platforms, ensures accurate synchronization of audio playback, and allows embedded devices to perform subsequent operations after audio playback, improving the resource utilization and efficiency of the device.
Smart Images

Figure CN119781755A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of graphical programming, and in particular to a graphical programming system and a graphical programming method for scientific education. Background Art
[0002] In existing hardware programming teaching, embedded devices such as micro are widely used. As a teaching tool, micro is suitable for elementary programming teaching because of its small size and simple functions. However, the hardware capabilities of micro itself are relatively limited, especially in audio playback. It cannot directly support the playback of common audio formats such as MP3 and WAV files. Therefore, in actual teaching, when audio needs to be played, it is often necessary to assist with the completion through a PC or other graphical programming platform. However, micro cannot directly access the audio resources of the PC, and cannot accurately determine the playback duration of the audio, which makes the synchronization of audio playback and the execution of subsequent operations difficult.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a graphical programming system and a graphical programming method for science education, so as to at least solve the technical problem of poor interaction between a graphical programming platform and an embedded device.
[0005] According to one aspect of an embodiment of the present invention, a graphical programming method for science education is provided, comprising: an embedded device downloads a program corresponding to a graphical code in a code area of the graphical programming platform from a graphical programming platform, wherein the program records the duration of an audio file of an audio to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting a first programming instruction block in the graphical code, and the first programming instruction block is used to instruct the playing of the audio to be played; the embedded device sets a timer duration based on the audio file duration, and at the same time, instructs the graphical programming platform to play the audio to be played through a serial port, wherein the duration of the timer is equal to the duration of the audio file duration; when the timer reaches the set duration, the embedded device executes a related operation indicated by a second programming instruction block after the first programming instruction block, or the embedded device instructs the graphical programming platform to execute a related operation indicated by the second programming instruction block after the first programming instruction block.
[0006] According to another aspect of an embodiment of the present invention, a graphical programming system for science education is also provided, comprising: a graphical programming platform; an embedded device, configured to download a program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, wherein the program records the duration of an audio file of the audio to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting a first programming instruction block in the graphical code, and the first programming instruction block is used to instruct the playing of the audio to be played; the duration of a timer is set based on the duration of the audio file, and at the same time, the graphical programming platform is instructed to play the audio to be played through a serial port, wherein the duration of the timer is equal to the duration of the audio file; when the timer reaches the set duration, the relevant operation indicated by the second programming instruction block after the first programming instruction block is executed, or the embedded device instructs the graphical programming platform to execute the relevant operation indicated by the second programming instruction block after the first programming instruction block.
[0007] In an embodiment of the present invention, an embedded device downloads a program corresponding to a graphical code in a code area of the graphical programming platform from a graphical programming platform, wherein the program records the duration of an audio file to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting a first programming instruction block in the graphical code, and the first programming instruction block is used to instruct the playing of the audio to be played; the embedded device sets the duration of a timer based on the duration of the audio file, and at the same time, instructs the graphical programming platform to play the audio to be played through a serial port, wherein the duration of the timer is equal to the duration in the audio file duration; when the timer reaches the set duration, the embedded device executes the related operation indicated by the second programming instruction block after the first programming instruction block or the embedded device instructs the graphical programming platform to execute the related operation indicated by the second programming instruction block after the first programming instruction block. Through the above scheme, the technical problem of poor interaction between the graphical programming platform and the embedded device is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0009] Figure 1 is a flow chart of a graphical programming method for science education according to an embodiment of the present invention;
[0010] Figure 2is a flow chart of another graphical programming method for science education according to an embodiment of the present invention;
[0011] Figure 3 is a prompt diagram according to an embodiment of the present invention that no embedded device is detected;
[0012] Figure 4 is a schematic diagram of a graphical programming code for selecting an audio file according to an embodiment of the present invention;
[0013] Figure 5 is a schematic diagram of a graphical programming code according to an embodiment of the present invention;
[0014] Figure 6 is a schematic diagram of another graphical programming code according to an embodiment of the present invention;
[0015] Figure 7 is an architectural diagram of a graphical programming system for science education according to an embodiment of the present invention;
[0016] Figure 8 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0018] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0019] According to an embodiment of the present invention, a method embodiment of a graphical programming method for science education is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0020] In the prior art, the PC is usually controlled by writing a PC script or application program, and after the audio playback ends, the PC communicates with the micro through the serial port to notify it that the music playback has ended. The micro reads the serial port information through a Python program in a loop to determine whether the PC audio has ended.
[0021] However, there are some obvious problems with the existing solutions. First, the micro continues to occupy CPU resources when looping to read the serial port, which makes it unable to perform other tasks at the same time, such as button input processing, animation display, or sensor data reading. This resource-exclusive design makes the microbit sluggish or even unresponsive when processing other events. At the same time, the continuous running loop will significantly increase the energy consumption of the device, especially in battery-powered scenarios, shortening the use time of the device.
[0022] In addition, the existing solution also has the risk of data loss. When the serial port communication speed is fast and some operations of the micro take a long time, data that cannot be read in time may be lost. In addition, to avoid high CPU usage, delays are usually introduced in the loop, but this will cause response delays, especially when it is necessary to quickly determine that the audio playback has stopped, the micro cannot respond immediately. These problems make the existing solution need to be improved in terms of efficiency and resource utilization.
[0023] Figure 1 is a graphical programming method for science education according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:
[0024] Step S102, the embedded device downloads a program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, wherein the program records the duration of the audio file to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting the first programming instruction building block in the graphical code, and the first programming instruction building block is used to instruct the playing of the audio to be played.
[0025] First, the graphical programming platform collects the audio to be played used by the program, and determines the duration of the audio file based on the audio to be played; the graphical programming platform embeds the duration of the audio file into the program. The duration of the audio file is obtained by the graphical programming platform after detecting the first programming instruction building block in the graphical code, and the first programming instruction building block is used to instruct the playing of the audio to be played.
[0026] Next, the embedded device downloads a program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, and obtains the duration of the audio file from the program. The embedded device is a micro position control board connected to the graphical programming platform; the graphical programming platform runs on a terminal device such as a PC, a tablet computer, or a mobile phone.
[0027] Step S104, the embedded device sets the duration of the timer based on the duration of the audio file, and at the same time, instructs the graphical programming platform to play the audio to be played through the serial port, wherein the duration of the timer is equal to the duration of the audio file.
[0028] The embedded device sets the duration of the timer based on the duration of the audio file and runs the program, wherein the duration of the timer is equal to the duration of the audio file; when the program executes the code corresponding to the first programming instruction block, the embedded device controls the timer to start timing, and at the same time, instructs the graphical programming platform to play the audio to be played through the serial port.
[0029] Before the timer reaches the set duration, the embedded device can perform operations unrelated to the program, such as button input processing, animation display, and sensor data reading.
[0030] Step S106, when the timer reaches the set duration, the embedded device executes the related operation indicated by the second programming instruction block after the first programming instruction block, or the embedded device instructs the graphical programming platform to execute the related operation indicated by the second programming instruction block after the first programming instruction block.
[0031] When the second programming instruction block is a block related to the operation of the embedded device, the embedded device executes the relevant operation indicated by the second programming instruction block; when the second programming instruction block is a block related to the operation of the graphical programming platform, the embedded device instructs the graphical programming platform to execute the relevant operation indicated by the second programming instruction block.
[0032] The embodiment of the present application also provides another graphical programming method for science education, which utilizes the collaborative work of a graphical programming platform (running on, for example, a PC, tablet, or mobile phone) and an embedded device (such as a micro) to achieve accurate audio playback and time control.
[0033] Micro, also known as microbit, is an educational micro development board used to help students learn programming and electronic circuit design. It is highly portable and easy to operate, making it suitable for beginners. The Micro mainboard has multiple sensors and components built in, including an LED display, two programmable buttons, an accelerometer, a magnetometer, and a Bluetooth module, which can perform a variety of interactive programming experiments.
[0034] In addition, Micro supports multiple programming languages, such as Python, JavaScript, Blocks, etc., allowing users to choose the appropriate programming method according to their needs and flexibly develop creative projects.
[0035] Micro is not only suitable for programming teaching, but also widely used in STEAM education, robot control, Internet of Things and other fields. Through the connection with external sensors, motors and other hardware devices, users can experience the practical application of programming in real life. The embodiment of the present application combines the graphical programming platform and micro to make programming simple and intuitive, thereby encouraging students to improve their logical thinking and innovation ability through experiments and exploration.
[0036] Specifically, the graphical programming method for science education provided in this embodiment is as follows: Figure 2 As shown, the following steps are included:
[0037] Step S202, initializing the graphical programming platform.
[0038] Users access the graphical programming platform through terminal devices and start creating programming projects. The graphical programming platform is a visual development environment where users can write instruction logic by dragging and dropping building blocks.
[0039] First, the user opens the graphical programming platform, and the platform detects whether the terminal device is connected to hardware such as an embedded device. If no hardware is detected, Figure 3 As shown, the user is prompted that the terminal device running the graphical programming platform is not connected to hardware. If it is detected that the graphical programming platform is connected to hardware such as micro, the relevant hardware driver and library files are automatically loaded, and the serial communication protocol is automatically initialized to ensure that the data transmission channel between the graphical programming platform and the embedded device has been established for subsequent program downloads and instruction execution. In this embodiment, the platform can support multiple hardware communication methods, including USB, Bluetooth, WIFI, etc.
[0040] Step S204: Graphical programming and audio file selection.
[0041] like Figure 4 As shown, the user can drag the corresponding programming building blocks to the code area in the graphical programming platform to write the program logic. Figure 4 , drag the "Play Sound" block in the code area and select an audio file. At this time, the user clicks the selection box on the programming block, and the platform will display the "Material Library", "Local Upload" and "Recording" options for the user to choose. Through the above options, the user can browse the audio resources provided by the platform, browse local audio, or directly record audio. The audio file can be in MP3 or WAV format, and the platform will automatically parse the basic information of the file, such as the audio file duration and bit rate.
[0042] Step S206, embedding the duration of the audio file in the program.
[0043] When the user selects an audio file and generates the corresponding code, the graphical programming platform automatically calculates the playback duration of the audio file. The platform then embeds this information into the generated program code as metadata, ensuring that subsequent embedded devices can accurately control the playback of the audio.
[0044] Specifically, the platform obtains the audio file duration (in milliseconds) of the audio file by reading the metadata of the audio file. The acquisition of the audio file duration is the key data for subsequent timer control. The platform converts the graphical code written by the user into a program format that can be run on an embedded device, such as Python code, and embeds the audio file duration into the program to generate a binary file for downloading by the embedded device.
[0045] In some embodiments, the platform also verifies the integrity of the program to ensure that no packet loss or data corruption occurs when downloading to the embedded device.
[0046] Step S208: the embedded device downloads the program and initializes the timer.
[0047] The platform transmits the generated program to the embedded device through the serial port or other communication methods to complete the download of the program. At this point, the embedded device has obtained the complete code logic and the duration of the audio file, and is ready to control the audio playback. In some embodiments, the embedded device will perform a check after receiving the program to ensure that the downloaded data is correct. After receiving the program, the embedded device will extract the duration of the audio file from the program and store it in the memory for subsequent timer use.
[0048] The embedded device initializes the timer according to the length of the stored audio file and sets the corresponding timing duration for accurate timing. The timer setting ensures that the embedded device can perform other tasks during audio playback and correctly trigger subsequent operations when the audio playback ends.
[0049] Specifically, the embedded device sets the timing duration of the timer according to the duration of the audio file extracted from the program. The duration is consistent with the playback duration of the audio file in milliseconds to ensure that the timer can accurately time. During the program running process, when an audio playback instruction is detected, the embedded device will start the timer and start timing at the same time. The timer runs in the background, allowing the embedded device to process other tasks in parallel. The start of the timer marks the beginning of the audio playback process, and the embedded device will enter the multitasking mode.
[0050] Step S210, instructing the terminal device to start playing audio.
[0051] When the timer is initialized, the embedded device executes the code corresponding to the first programming block instruction when executing the program, that is, plays the audio to be played, sends the audio playback instruction to the graphical programming platform through the serial port, and starts the timer at the same time. After receiving the instruction, the graphical programming platform immediately starts playing the selected audio file. The audio playback process is entirely the responsibility of the terminal device running the graphical programming platform, and the embedded device determines the duration of the audio playback through the timer. The audio file playback process depends on the multimedia processing module of the graphical programming platform to ensure the smoothness of the audio playback. During the playback process, the embedded device does not need to intervene in the specific playback operation of the audio, but only needs to keep the timer counting and wait for the end of the playback.
[0052] Step S212, determine that the audio playback is finished, and perform subsequent operations.
[0053] When the timer determines that the audio playback is finished, the embedded device executes the corresponding callback function or other instructions according to the program logic. For example, the user can set operations such as displaying animations or processing input events after the audio playback is finished.
[0054] Specifically, Figure 5 As shown, when the second programming instruction block 54 after the first programming instruction block 52 is a block related to the operation of the embedded device, the embedded device executes the related operation indicated by the second programming instruction block 54, for example, displaying a smiling face expression. In other embodiments, it can also be displaying other images or texts, controlling the state of LED lights, or collecting sensor data, or controlling smart home operations.
[0055] like Figure 6As shown, when the second programming instruction building block 54 is a building block related to the operation of the graphical programming platform, the embedded device instructs the graphical programming platform to perform the related operation indicated by the second programming instruction building block 54. For example, the callback function is automatically executed so that the graphical programming platform performs a corresponding task according to the callback function, such as printing the letter i on the graphical programming platform of the terminal device.
[0056] In this way, the embedded device can perform subsequent operations immediately after the audio playback ends, achieving multi-tasking and efficient command response.
[0057] After the program runs, the embedded device can choose to save the execution results to the graphical programming platform or feed the data back to the user. The embedded device transmits the key data (such as sensor data and user interaction data) generated during the operation to the graphical programming platform through the serial port for the user to view. The embedded device clears the timer and resets the state to prepare for the next execution of a new program. In this way, the embedded device can effectively interact with the graphical programming platform at different execution stages to achieve synchronous control of audio playback and program instructions.
[0058] The embodiment of the present application provides a simple, easy-to-use and highly controllable multimedia programming experience for the field of scientific education, which helps to improve students' programming interest and hands-on ability. Through the above scheme, accurate synchronization of audio playback and efficient implementation of multi-task parallel processing are ensured.
[0059] The present application also provides a graphical programming system for science education, such as Figure 7 As shown, it includes: a graphical programming platform 100; an embedded device 200, which is configured to: download a program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, wherein the program records the duration of the audio file to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting the first programming instruction block in the graphical code, and the first programming instruction block is used to instruct the playing of the audio to be played; set the duration of the timer based on the duration of the audio file, and at the same time, instruct the graphical programming platform to play the audio to be played through the serial port, wherein the duration of the timer is equal to the duration of the audio file; when the timer reaches the set duration, execute the relevant operation indicated by the second programming instruction block after the first programming instruction block or the embedded device instructs the graphical programming platform to execute the relevant operation indicated by the second programming instruction block after the first programming instruction block.
[0060] The graphical programming platform 100 includes a front-end interface 12 , a back-end engine 14 and a model library 16 .
[0061] The front-end interface 12 is a graphical programming interface for user operation interaction. The display interface of the graphical programming platform in the front-end interface 12 can be dynamically laid out and arranged based on the width input by the user to ensure the rationality of the display under different devices and screen resolutions. For example, a rendering identifier is generated based on the physical position and display properties of the rendering area, and a cropping operation is performed by matching the rendering identifier with the corresponding cropping identifier. After the cropping operation is completed, the rendering scene is set by configuring the orthogonal camera, and the viewing angle cropping ratio parameters are set. Based on the user input, the rendering area is updated in real time. At the same time, during the rendering process, the vertex coordinates are adjusted according to the actual size and offset of the rendering area. In this way, the continuity and accuracy of the rendering of the display interface of the front-end interface can be ensured, and the dislocation or blurring in the display can be avoided.
[0062] The backend engine 14 is used to process frontend user instructions, perform model training, evaluation and deployment tasks, and provide real-time feedback during the training process.
[0063] The model library 16 contains a variety of models that can be used for different programming tasks and application scenarios. Each model in the model library 16 is pre-trained and optimized and can be directly applied to the user's programming project.
[0064] It should be noted that the graphical programming system for science education provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the graphical programming system for science education provided in the above embodiment and the graphical programming method embodiment for science education belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0065] Figure 8 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 8 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0066] like Figure 8As shown, the electronic device includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for system operation are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0067] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0068] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A graphical programming method for scientific education, characterized in that: include: The embedded device downloads a program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, wherein the program records the duration of the audio file of the audio to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting the first programming instruction building block in the graphical code, and the first programming instruction building block is used to instruct to play the audio to be played; The embedded device sets the duration of the timer based on the duration of the audio file, and at the same time, instructs the graphical programming platform to play the audio to be played through the serial port, wherein the duration of the timer is equal to the duration of the audio file; When the timer reaches the set duration, the embedded device executes the related operations indicated by the second programming instruction block after the first programming instruction block, or the embedded device instructs the graphical programming platform to execute the related operations indicated by the second programming instruction block after the first programming instruction block through a callback function.
2. The method according to claim 1, characterized in that The embedded device sets the duration of the timer based on the duration of the audio file, and at the same time, instructs the graphical programming platform to play the audio to be played through the serial port, including: The embedded device sets the duration of the timer based on the duration of the audio file and runs the program; When the program executes the code corresponding to the first programming instruction building block, the embedded device controls the timer to start timing, and at the same time, instructs the graphical programming platform to play the audio to be played through the serial port.
3. The method according to claim 1, characterized in that The embedded device executes the related operation indicated by the second programming instruction block after the first programming instruction block, or the embedded device instructs the graphical programming platform to execute the related operation indicated by the second programming instruction block after the first programming instruction block through a callback instruction, including: In the case where the second programming instruction building block is a building block related to the operation of the embedded device, the embedded device executes the related operation indicated by the second programming instruction building block; In the case where the second programming instruction building block is a building block related to the operation of the graphical programming platform, the embedded device instructs the graphical programming platform to execute the related operation indicated by the second programming instruction building block through the callback instruction.
4. The method according to claim 1, characterized in that: Before the embedded device downloads the program corresponding to the graphical code in the code area of the graphical programming platform from the graphical programming platform, the method further includes: The graphical programming platform collects the audio to be played used by the program, and determines the duration of the audio file based on the audio to be played; The graphical programming platform embeds the duration of the audio file into the program.
5. The method according to claim 1, characterized in that Before the timer reaches the set duration, the method further includes: the embedded device performs an operation unrelated to the program, wherein the unrelated operation includes at least one of the following: button input processing, animation display, and sensor data reading.
6. The method according to any one of claims 1 to 5, characterized in that The embedded device is a micro position control board connected to the graphical programming platform; the graphical programming platform runs on the terminal device.
7. A graphical programming system for science education, characterized in that: include: Graphical programming platform; An embedded device, configured to download a program corresponding to a graphical code in a code area of the graphical programming platform from a graphical programming platform, wherein the program records a duration of an audio file of an audio to be played, wherein the duration of the audio file is obtained by the graphical programming platform after detecting a first programming instruction building block in the graphical code, wherein the first programming instruction building block is used to instruct to play the audio to be played; The duration of the timer is set based on the duration of the audio file, and at the same time, the graphical programming platform is instructed to play the audio to be played through the serial port, wherein the duration of the timer is equal to the duration of the audio file; When the timer reaches the set duration, the related operation indicated by the second programming instruction block after the first programming instruction block is executed, or the embedded device instructs the graphical programming platform to execute the related operation indicated by the second programming instruction block after the first programming instruction block through a callback function.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 6.
9. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor is enabled to execute the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Embedded device graphical programming method, storage medium, program product and device
CN120848863A