Research on Alarm Display System Based on LabVIEW

Publisher:CreativeDreamerLatest update time:2009-08-20 Source: 现代电子技术 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

With the introduction of electronic technology and computer automatic control technology, the automation and intelligence level of alarm facilities are constantly improving. At the same time, with the increase of high-rise buildings and large comprehensive buildings, the alarm system has become more complicated and three-dimensional, and the alarm system has been asked to be multifunctional, that is, not only anti-theft, but also fire prevention, harmful gas alarm and a series of other requirements. Accurately and timely obtaining and recording alarm information can help security personnel to respond quickly, reduce losses, and provide a basis for future analysis of the cause. The current graphic alarm system mainly has the following types: one is a multi-level alarm system composed of alarm modules such as partition controllers, alarms, and master controllers. The PC is mainly connected to the master controller and is only responsible for reporting, printing, display and other functions; the other is based on video monitoring, which alarms by capturing and processing images. There are dedicated hosts and equipment. Although it is powerful, it is expensive. According to the above background, a graphic alarm system was developed with a PC as the main control machine.

LabVIEW (Laboratory Virtual Instrument Engineering Workbench) is the abbreviation of laboratory virtual instrument integrated development platform. It is one of the most widely used virtual instrument development environments in the world. It has industrial standard graphical programming tools and is mainly used to develop test, measurement, and control systems. LabVIEW has many similarities with traditional programming languages, such as data types, data operations, control structures, etc., but LabVIEW uses graphical languages ​​for programming, making programming more flexible and convenient. The host computer software of this system is written in LabVIEW, which can reduce the difficulty of development, shorten the development cycle, and can make quick changes to the system according to user needs.

1 System Configuration

The alarm system is mainly composed of hardware and software. The hardware part includes various types of sensors, defense zone modules, USB/RS-485 adapters, PCs and communication cables; the software part is mainly a graphic alarm software developed using LabVIEW. The defense zone module is mainly composed of AT89C2051 microcontroller, SN75176 bus transceiver and address encoder. When the sensor is working normally, the I/O port is low level, and when there is an alarm, a high level is generated. After the I/O port receives the alarm signal, the address code of the sensor that generates the alarm is sent to the host computer through the SN75176 bus transceiver through the alarm bus. The alarm bus includes two RS485 data lines and two power lines. The use of USB/RS485 adapter enables the system to have both the strong expansion capability of USB bus and the long transmission distance of RS485 bus. When the host computer receives the address code sent by the defense zone module, it transfers the address code to the ACCESS database, obtains the detailed information of the sensor corresponding to the address code from the database, and then issues an alarm in three ways: graphics, text, and sound. The recording module records the alarm for future query.

2 Software Design

2.1 Database Connection

Access database is a relational data management system with the advantages of small database, low system resource occupation and good compatibility with Windows. It can store, process and manage data information according to user-defined relationships. It consists of many basic tables to store different information and design the relationship between tables. LabVIEW provides a variety of external program interfaces, such as ActiveX and .NET, so it can be connected to the database through methods such as ADO, DA0, ADO.NET, etc. LabSQL is used to connect LabVIEW and Access database. LabSQL is an open source database access tool through ADO and can be called as a normal VI. The monitoring point information table in the Access database consists of the following fields: sensor address code, sensor type, sensor floor, sensor area, sensor label, sensor coordinates (X coordinate, Y coordinate). The alarm information record table consists of fields such as sensor address code, type, alarm time, and alarm date. The management personnel authority table consists of fields such as personnel number, login record, and authority code. When an alarm message is generated, the zone module will send the address code of the sensor that generated the alarm to the PC. After the system receives the address code, it first uses ADO Connection Create. vi establishes a connection with ADO, and then opens the DSN through ADO Connection Open.vi, which is specified by ConnectionString. Use the ConcatenateStrings string synthesis function to combine the address code into a complete SQL query statement. ADO SQL execute.vi can obtain detailed information about the sensor through this query statement.

[page]

2.2 Graphic alarm

The main function of the graphic alarm is to display the floor plan on the screen and prompt the alarm point. The existing graphic alarm system generally adopts two methods. One is the built-in drawing program of the program. The advantage of this method is that it does not rely on other drawing software and is easy to use, but the drawing ability is weak and the map effect is not good. The second is to establish a connection with other professional drawing software (such as: AUTOCAD). Although this method can obtain high-quality maps, it is difficult for users to complete the map alone, and it is not convenient to change the map later. This system no longer restricts the drawing software. Users can use any drawing software to draw the map. As long as the picture is saved in JPG or BMP picture format and released to the specified location, the system will automatically call the map file.

The alarm point is displayed as a flashing dot on the map. The Bresenham algorithm is used to draw the circle to generate the arc. The circle with the center at the origin has four symmetry axes x=0, y=0, x=y, x=-y. The symmetry of the circle can reduce the amount of calculation. If a point (x, y) on the arc is known, the other 7 points about the four symmetry axes can be obtained. This property is called the eight symmetry of the circle. Therefore, as long as one-eighth of the arc is scanned and converted, the pixel set of the entire arc can be obtained. The recursive formula for the Bresenham algorithm to generate one-eighth of the arc is:


After querying the detailed information of the address, ADO SQL execute.vi outputs the query results in array form. Through the Index Array function, the map file name corresponding to the address code can be obtained. Then, the relative path is formed through the Concatenate Strings function, and the complete path can be created through the build path after matching the base path. Read JPEG Fjle.vi can read the map file through this path and transfer the map file to Draw FlattendedPixmap.vi in ​​the form of image data. At the same time, the Index Array function also obtains the coordinates of the sensor, but because the result is a string, it must be converted into a number through Decimal string To Number, and then bundled and transferred to Draw Flattended Pixmap.vi. Then, the Bresenham algorithm is implemented using the formula node, and the graphic display of the alarm point is realized through DrawFlattended Pixmap.vi.

2.3 Communication Module

The communication module is mainly responsible for the communication between the host computer and the defense zone module. The communication module calls the defense zone module through patrol inspection. If the defense zone module works normally and no alarm occurs, the defense zone module will give a response to the host computer. After receiving the response, the host computer will continue to call the next defense zone module. If an alarm occurs, the defense zone module will send the address code of the alarm probe to the host computer. If the defense zone module does not respond within the specified time, the communication module will repeat the call once. If there is still no response, a fault alarm will be generated and the next defense zone module will continue to be called. The communication module can flexibly set the transmission speed according to the transmission distance. The transmission rate is set to 1200 baud by default. At this speed, the transmission distance can reach about 2 kilometers.

[page]

2.4 Recording Module

The recording module is mainly responsible for storing the alarm information, and can query and print it. The alarm information includes the alarm probe ID, location, type, and alarm date and time. The storage function mainly saves the alarm records into a database or Excel file for future query and statistics. The operator can view and print the data, but does not have the authority to change the data. The printing function is realized through a printer.

When an alarm message is generated, GetData/Time In Sermonds.vi obtains the current date and time, displays the time in the specified format through Format Data/Timestring.vi, and then displays the time and other information through an array through Build Array.vi.

3 Conclusion

The graphic alarm system provides a graphical operation interface for security personnel, which is conducive to accurate and intuitive monitoring, and can quickly make judgments and reduce losses. The use of LabVIEW for development reduces the workload and makes the program flexible, which is conducive to future modifications according to user requirements. The use of PC as the control machine simplifies the system structure and reduces costs. In addition, the performance requirements for PC are not high, which is convenient for use in hotels, schools and other places.

Reference address:Research on Alarm Display System Based on LabVIEW

Previous article:A Distributed Fire Alarm Control System Based on CAN Bus
Next article:Excellent design of anti-theft alarm - "Walnut-shaped prevention plan"

Recommended ReadingLatest update time:2024-11-16 19:36

Research and design of automotive wireless sensors
introduction Radio frequency (RF) technology is commonly used in car driving and vehicle diagnostics. According to international standards, all vehicle technology applications must be thoroughly tested, and these tests must be based on reasonable empirical experiments involving sensor data collection. There
[Automotive Electronics]
Research and design of automotive wireless sensors
Design of wireless sensor network node based on CC1110
0Introduction WSN (Wireless Sensor Network) is a multi-hop self-organizing network that collaboratively senses, collects and processes information about objects in the network coverage area through a large number of micro sensor nodes deployed in the monitoring area, and sends it to the observer. WSN technology
[Industrial Control]
Design of wireless sensor network node based on CC1110
The difference between capacitive liquid level sensor and float level switch
working principle: When the float floats as the liquid level rises and falls, the magnet in the float attracts the contacts of the reed switch, causing an on and off action, and then gives an on-off signal. The capacitive liquid level sensor determines whether there is liquid by detecting the conductivity or insula
[Test Measurement]
The difference between capacitive liquid level sensor and float level switch
Design and implementation of a sensorless DC brushless motor control system
introduction Traditionally, permanent magnet synchronous motors with trapezoidal wave back EMF are called brushless DC motors. Torque control of brushless DC motors requires rotor position information to achieve effective stator current control. Moreover, speed control also requires speed signals. The use of
[Power Management]
Design and implementation of a sensorless DC brushless motor control system
Vishay launches new high-performance reflective light sensor based on VCSEL
The device is packaged in a small 1.85 mm x 1.2 mm x 0.6 mm SMD package, with a current transfer ratio of 31%, a sensing distance of 15 mm, and lower power consumption MALVERN, Pennsylvania, USA, and Shanghai, China - August 9, 2023 - Recently, Vishay Intertechnology, Inc. (NYSE stock code: VSH) announced the lau
[sensor]
Vishay launches new high-performance reflective light sensor based on VCSEL
The main structure and working principle of the resolver position sensor
We know that switch Hall sensors are often used in some small controllers with low precision requirements, relatively simple working conditions and low cost due to their own characteristics. As for large motors used in cars, the most commonly used position sensors are resolvers (rotators). So, here is a d
[Embedded]
The main structure and working principle of the resolver position sensor
Design of intelligent control system for power supply of wireless sensor network
0 Introduction A wireless sensor network (WSN) is a network composed of sensor nodes that can monitor, sense and collect various information of the objects of interest to the observers in the node deployment area in real time (such as physical phenomena such as light intensity, temperature, humidity, nois
[Power Management]
Design of intelligent control system for power supply of wireless sensor network
Multi-channel SourceMeter test gas sensor solution
Overview A gas sensor is a device that can convert certain information about gases, including concentration and type, into sound, electricity, light or digital information that can be used by operators, instruments, computers, etc. It is usually installed in the detection head of the monitoring system. In the monitori
[Test Measurement]
Multi-channel SourceMeter test gas sensor solution
Latest Security Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号