Squash Hall Indoor Temperature Monitoring System Based on LabVIEW Design

By Using ADAM4000 series data acquisition module, squash hall monitoring system was developed based on the LabVIEW platform. The system consists of master control, signal channel, file operations, digital filtering, spectral analysis, statistic analysis, system monitoring and other modules. The system will alarm at the real time when the result of the average temperature of the squash hall divided by ten is no less than the monitor threshold of 4.3 while athletes are playing squash, by which the temperature and pressure data acquisition, processing and monitoring could be achieved. Application shows that the changes of human exposure temperature between 20 ̊C and 43 ̊C can achieve the comfort level of athletes’ movement, proving that the monitoring system effectively improves the security of squash hall indoor temperature environment.


Introduction
Scientists did the experiment on the highest temperature which the human body can endure in the dry air environment: human body can endure for one hour in environment of 71˚C; 49 minutes in environment of 82˚C; and only 26 minutes in the environment of 104˚C.The upper limit of normal humans' armpit temperature is usually 37.4˚C.It will up to 43˚C when in fever.The temperature would be controlled below 43˚C in order to keep the comfort and strength of athletes when athletes in playing squash [1] [2] [3].However, the ventilating system of the existing squash hall room is almost normal air conditioning temperature control system.There is no real-time temperature monitor inside.To move the traditional temperature test instrument inside is obviously unpractical.
[4] So we need to design a monitoring system for testing the squash hall indoor temperature and guiding the operating personnel in order to keep the strength of athletes.The temperature monitoring of squash hall must use advanced and reliable equipment.But compared to virtual instruments, the advantages of traditional instruments on many aspects of data collection, data storage, filtering methods, data analysis and real time monitoring are not clear.By introducing the virtual instruments into the real-time monitoring system on squash hall and collecting and processing the field data, we can provide athletes with the dynamic situation of squash hall by many ways, such as by real time trend curve or alarm.Staffs can operate in time according to the curve or alarm prompt.This system can collect and monitor the environment temperature and its differential pressure by using devices, such as LabVIEW2009, sensor, PLC and data collection module to achieve the purpose of strict monitoring of athletes at sports.

The Structure Design of Squash Hall
To conform to the standard of squash courts use, squash hall consists of the wall system, floor system, glass back wall system, lighting system and ventilation system.The standard court stipulated in the international federation of squash game are divided into the singles and doubles play.The length of the singles court is 9.75 meters, width is 6.4 meters, height is 4.57 meters while the length of the doubles court is 13.72 meters, width is 7.62 meters and height is 6.1 meters (The floor plan is shown in Figure 1, and perspective is shown in Figure 2).But the squash hall of the United States is smaller, with its width of 5.64 meters and height of 4.88 meters.Venue and the audience will provide a set of ventilation system to ensure four times per hour full air conditioning, heating, ventilation,  and any portion of the other facilities is not allowed to highlight in site unless the facility can meet the following requirements: 1) Each part of the facilities higher than a level surface is no more than 5400 mm; 2) Each highlight part of the facilities in space is no more than 150 mm; 3) There is no shadow projected on the front wall.Besides, there is all glass type squash hall (as in Figure 3).The all glass type squash hall is easy to watch and remove with novel and lively appearance, and it is easy to install and more suitable for small venues and temporary needs.

The Squash Hall Data Acquisition System
First is to open the power and light control system of squash hall, in order to secure the electricity effectively and brightness.When athletes began to exercise, the hot air produced by the hot air system first goes to the duct, then goes to the front wind room of the squash hall by the front wind board, then goes to the back wind chamber through the front wind board, and is discharged into the air duct by the ventilation door.The hot air in the air duct enters another squash court by another warehouse under the ventilation door, then goes to the top wind chamber by back wind board, squash hall and front wind board, then is discharged from the wet platoon.The operation personnel should watch frequently the key parameters such as the temperature, humidity and wind pressure of air channel and all squash halls when athletes are playing, and they should test samples from the sampling window regularly, and adjust the equipment of boiler, fan, air door and the wind close curtain.Then they should keep the temperature when the indoor temperature is adjusted to the objective humidity.The squash  hall overall modeling is shown in Figure 4.

The Overall System Design
The system collects directly the data tested by field temperature and pressure sensors by data collecting module, then sends to industrial control by RS485, and analyze and process the data by using LabVIEW, to monitor the production status.Send the analyzed results to PLC and then PLC will be in charge of operations of start-stop and reversing control of fan.The system will be divided into three levels including the manage level, the monitor level and the spot level generally.The system whole frame diagram is shown in Figure 5.The LabVIEW2009 software adopted by this paper is an instrument which can replace the traditional instrument when a computer and the outside port (such as the computer COM port, LPT port, or board) are under the software control.
The system can meet the requirements for PC monitoring interface and data analysis, and it communicate data with PLC or intelligent module through the regular communication interface (such as the way of serial port and USB).The flow chart is shown in Figure 6.First is to design the integrated system and determine the overall plan, choose and install the software LabVIEW2009.Then set the project file according to the true environment.The file could be divided into two parts: one is the front control panel and the other is electronic design.The operator should understand the composition of the control panel, and will operate when it is in need.The two parts from the system together to moni- tor the temperature.

The Composition of the Software System
The system consists of main control, signal channel, file operations, digital filtering, spectrum analysis, statistical analysis module and system monitoring module.The main monitor interface of squash hall temperature: It is mainly used to show the status, temperature and pressure of all squash halls, and the difference of the upper and lower air duct pressure.Combining with the realtime curve plotting function of LabVIEW2009, it displays real-time state of each variable dynamically, including temperature and pressure of all squash halls, and the difference of the upper and lower air duct pressure.It mainly shows the real-time temperature curve and pressure curve inside the squash hall, and displays data changes in the form of oscillogram and histogram intuitively.When the temperature monitoring threshold exceeds 4.3, the system will alarm and the corresponding alarm lights will start flashing, at the same time alarm Windows pop up.At this time, the staffs need to adjust the air conditioning power system in order to achieve comforts of athletes.The squash hall indoor temperature monitoring interface diagram is shown in Figure 7.

The Main-Control Module
The main-control module is the top of the whole software, and it will control, call, organize and coordinate each module to finish the data analysis and test control.

The Signal Channel Module
This module puts pressure and temperature data into function by index data in two signal channels.The attachment plate can show the default data type of the polymorphic function.

The File Operations Module
This module is mainly composed of the file path and signal channel.It inputs function through the sampling number and sampling start point.

The Digital Filter Module
This module is to filter the temperature signal and only pass signals in specific spectrum.It selects more accurate temperature data to draw curves by filters, and it can provide the system with accurate temperature change status.From Figure 7, we can know that the temperature waveform figure is more subtle after the data is filtered.

Spectrum Analysis Module
From the squash indoor pressure curve and squash court fluctuation of leeway pictures in Figure 7, we can see that the system has not started at the beginning.
The squash indoor pressure is 0, and it gradually increases when the fan starts running.When the indoor temperature reaches balance, the pressure change rate decreases gradually, which reflect the indoor temperature status.

Statistical Analysis Module
(Histogram.VI) calculates the maximum temperature data, the variance, mean and standard deviation.It uses LabVIEW to design software which analyzes the temperature data samples and it analyzes and displays the histogram of the measured data (samples).The mean value, variance and standard deviation are three basic statistical parameters.The mean value reflects the temperature average level, and the variance and standard deviation show the temperature deviation from the mean value.

Monitor System Module
When athletes are playing, the indoor temperature has bigger influence on the athletes' comfort, which requires the indoor temperature be controlled lower than 43˚C.The system will alarm or pop up alarm window at the real time when the result of the average temperature of the squash hall divided by ten is no less than the monitor threshold of 4.3 while athletes are playing squash.At this time, the staffs need to adjust the dynamic system of air conditioning to achieve indoor temperature balance.The squash hall indoor temperature monitor program is shown in Figure 8.

The Simulation Results and Analysis
To monitor the squash hall indoor temperature by using the monitoring system, the system sampling number is set as 10,000, the wave filter type choose chebyshev filter, the high cut-off frequency is 0.45, the low cutoff frequency is 5.0, and the monitoring threshold is set up as 4.3.Then click the start run button, and the experiment result is shown in Figure 7. Set the volume flow to be Q = 390,000 (centrifugal fan) * 2m 3 /h = 780,000 m 3 /h/3600 = 216.7 m 3 .Do simulation experiments by using Solid Works Flow Simulation [13], and the simulation results are shown in Table 1.
From the simulation results in Table 1, we can know that if the human exposure temperature changes between 20˚C and 43˚C, then the athletes comfort safety requirements can be achieved in the athletes' playing process.It proves that the monitoring system effectively improves the squash hall indoor temperature control stability.From the monitoring statue in Figure 7, the indoor temperature curve markedly reduced when the alarm lights are on.The decline of indoor pressure difference curve reflects the real-time process of the staff adjusting air condition wind speed, which proves that the practicality of this monitor system is strong and the efficiency is high.

Conclusions
The system set up for the squash hall indoor temperature monitoring system by using: abVIEW virtue instrument, which can realize real-time monitoring of indoor temperature changes.It has alarm modules and real-time curves.In monitor system modules, when the result of the average temperature of the squash hall divided by ten reaches the monitor threshold, then it can monitor many aspects within indoor squash hall and can prompt the operator to work correctly.
This system can both record the data and process after opening the squash hall in real-time and draw automatically the indoor temperature and pressure curves, which can grasp the best adjustment parameters, and can give specific guidance to operators, which reduces the errors and secures the appropriate sports environment for athletes, and achieves the goal of replacing the traditional monitor instruments by virtue monitor instruments based on software.The experiment shows that, by using the system to alarm the squash hall indoor temperature, the athletes' contact temperature changes between 20˚C and 43˚C can achieve the comfort and safety requirements of sports.But the problems about too complex interface, complicated software design and perfect match with the existing air conditioning ventilation system in the process of doing experiment, which needs to be improved in the future researches [14].

Figure 5 .
Figure 5. Diagram of the system as a whole.

3 .
The Hardware Composition of Indoor Temperature Monitoring System 1) Temperature sensor: The system selects the platinum resistance temperature sensor, sets a temperature sampling points outdoor, and install respectively industry sheathed type three wire heating resistor, and lays equably three temperature sensors as sampling site in the upper and lower wind tunnels.2) Pressure sensor: The system chooses STP pressure sensor.It sets one pressure sampling site to calculate the inside and outside pressure difference of the wind channel.3) Data collecting module: The temperature collecting module uses ADAM-4015 of Advantech company, and pressure collecting module uses ADAM-4117 of Advantech company.Data collecting module follows the RS485 communication protocol.4) Communication module: The system chooses ADAM-4520 which can communicate with industrial computer directly.5) System monitor center: The system monitor center chooses the standard industrial control IPC-610H of Advantech company, the standard of RS485 transmits the different data and control signal.ADAM-4520/4522 isolating converter can convert RS232 signal and RS485 signal transparently.

Figure 6 .
Figure 6.Software system overall flow chart.

Figure 7 .
Figure 7. Squash hall indoor temperature monitoring interface diagram.

Figure 8 .
Figure 8. Squash museum indoor temperature monitoring program.

Table 1 .
The simulation results.