Analog voice alarm system

The program we used to simulate the voice alarm system this time is completed with the help of C# knowledge and technology. C# is C sharp, which is a graphic programming language created and managed by Microsoft. The reason we choose it is that it is highly professional and suitable for multiple programming functions. It is relatively simple and easy to understand for beginners. After continuous innovation and improvement by predecessors, its interface, technology, and operation can be said to be relatively rich and mature. Generally speaking, it is a set of languages ​​built on the .NET Framework platform, which facilitates its interaction with components written in languages ​​such as Visual Basic.NET and Visual C++.NET. Developers can use the The resource-rich interface makes it easy and convenient to build various applications and network programs with various functions.

1) Establish the interface of the simulation system

    public partial class Form1 : Form

    {

        /***************************************************************/

2) Enter all alarm points that need to be broadcast into the system, and set the importance (priority) of each point at the same time. In this C#, each alarm point will appear in the form of number 1-89 and be stored in arrays with different priorities. 3) In principle, when starting the system, it can be initialized once to prevent the retention of interference information and the mixing of error information 4) A "run button" is needed in the interface to control the operation of the alarm system. At this time, we need to set it in C# Create a running click event in which the "object sender, EventArgs e" plays the role of connecting the preceding and the following to undertake the input data transmission and variable data. 6) The function of the bubble sorting added to the alarm point data is to arrange the alarm point information according to the internal number from small to large. The purpose is to determine the order of broadcast when there are more than two alarm points at the same time. Of course, the method of randomly selecting broadcast points can also be used to broadcast. The purpose of using bubble sorting method is to reduce randomness and prevent the system from affecting the response time due to too much random data. 7) Here is the priority comparison between each alarm point, compare the priority of the data in the array, the high priority data will overwrite the low priority data to ensure that the most important data will be displayed to the operation in the final display member

After simulation, the operation of the voice alarm system this time is very effective. Its advantages are highlighted in the three aspects of fast alarm information status, accurate screening, and stable broadcasting. It is also equipped with a certain self-generated fault detection function. While the possible error rate is low, it can accurately provide the operator with the primary alarm point information to ensure that the operator can work reasonably and efficiently, with a target in mind. In addition, the possible occurrences of all 89 alarm points are exhaustively listed with the help of C language program to facilitate later verification.

The following is the interface display of the simulated voice alarm system:

Figure 2-1 shows the interface before running:

There are two text boxes, the upper text box is used to display the alarm point information input to the system, the lower text box is used to display the alarm point information provided to the operator after being filtered by the alarm system, "Run" and "Clear" The buttons are used to simulate the operation of the alarm system and the clearing of the alarm points, and the other buttons are used to input corresponding characters into the simulation interface.

The running interface shows Figure 2-2:

 

 

 

 

Guess you like

Origin blog.csdn.net/qq_28821897/article/details/130489165