Design of an Insulation Test Information Management System for Battery Energy Storage Systems Based on LabVIEW

In recent years, battery energy storage systems have become a cornerstone of the energy sector, exhibiting rapid growth and continuous technological innovation. As the global demand for renewable energy integration, electric vehicles, and smart grids surges, the market for battery energy storage systems has expanded dramatically. According to recent statistics, the global battery energy storage system market has maintained a high growth rate, driven by the need for efficient energy storage solutions. Simultaneously, advancements in battery technology, such as improvements in lithium-ion battery energy density and safety, along with the emergence of solid-state and sodium-ion batteries, have opened new avenues for development. The application domains of battery energy storage systems have also diversified, moving beyond traditional areas like electric vehicles and smart grids to include distributed energy resources, data centers, and telecommunication base stations. These diverse applications impose varying requirements on battery energy storage systems, thereby fueling further innovation. Looking ahead, with the large-scale deployment of renewable energy and the construction of energy internet infrastructure, battery energy storage systems will play an even more critical role in energy storage, regulation, and distribution. Consequently, the analysis of process data from battery energy storage systems has become increasingly important. To accurately record the insulation test data of battery energy storage systems, I have designed an information management system based on LabVIEW, as detailed in this article.

1. System Architecture and Functional Overview

The architecture of the insulation test information management system for battery energy storage systems is composed of four main modules: data acquisition, data query and export, data modification and deletion, and parameter settings. The system establishes communication with testing equipment via the TCP/IP protocol, collects insulation test parameters, and stores them in a Sql Server database through LabVIEW’s database connectivity tools. This structure facilitates efficient data management and analysis for battery energy storage systems. The following table summarizes the core functions:

Functional Module Description
Data Acquisition Collects insulation test parameters from each workstation, such as positive insulation resistance, negative insulation resistance, positive withstand voltage, and negative withstand voltage.
Data Query & Export Queries and exports historical data stored in the database to support subsequent analysis of battery energy storage system performance.
Data Modification & Deletion Allows replacing, modifying, or deleting records in the database to maintain data integrity for battery energy storage system process data.
Parameter Settings Configures the acceptable ranges for each test parameter, ensuring that battery energy storage system components meet quality standards.

2. System Design Details

2.1 Programming Language Selection

The entire system is developed using LabVIEW, a graphical programming environment from National Instruments (NI). Unlike traditional text-based programming languages, LabVIEW uses icons and wires to represent functions, structures, and data flow. The execution order of a LabVIEW program is determined by the flow of data between nodes, making it intuitive and efficient. LabVIEW provides an extensive library covering data acquisition, GPIB, serial port control, data analysis, display, and storage. The advantages of using LabVIEW for designing the insulation test information management system for battery energy storage systems include:

  • Graphical programming with clear logic, easier for beginners and more efficient for developers.
  • Unique data flow visualization during debugging, enabling quick identification of issues using probes and breakpoints.
  • Hierarchical and modular VI structure, promoting code reusability and maintainability.
  • Support for numerous hardware devices and communication protocols (e.g., TCP/IP, RS-232), ensuring reliable data exchange with testing equipment.

Given these strengths, LabVIEW is an ideal choice for building a flexible and scalable system tailored to battery energy storage system insulation testing.

2.2 Front Panel Design

2.2.1 Data Acquisition Front Panel

The data acquisition front panel is divided into three functional areas: data reception (green zone), data storage (yellow zone), and data presentation (red zone). The reception area displays raw strings from the testing equipment. When data is received, the operator clicks the “Positive Data” or “Negative Data” buttons to parse the insulation resistance and withstand voltage values into corresponding numeric fields. A barcode scanner is used to input the PACK barcode, and upon clicking the “Store” button, the insulation test data for that battery energy storage system unit is saved to the database and appears in the embedded table.

2.2.2 Data Query and Export Front Panel

This panel supports two query modes: by PACK barcode (exact match) and by time range. For barcode queries, the user enters the PACK barcode and clicks the corresponding button; the system retrieves the record and displays it. For time queries, the user selects a start and end time, and all records within that period are shown. Successful queries are indicated by a success message, while empty results trigger a failure message. The export function allows the user to right-click on the table and export the displayed data to an Excel file for further analysis of battery energy storage system trends.

2.2.3 Data Modification and Deletion Front Panel

This panel handles data replacement and deletion. For replacement, the user enters the old and new PACK barcodes and clicks the “Replace” button; the system updates the barcode while preserving the associated test data. For deletion, the user enters the barcode to be removed. Both operations require a correct password to prevent unauthorized changes to the battery energy storage system records.

2.2.4 Parameter Settings Front Panel

The parameter settings panel allows configuring up to eight parameters, each with an upper and lower limit. After inputting the limits, the user clicks the corresponding button to save the configuration. These limits are used during data acquisition to flag out-of-specification results. An example of parameter configuration is shown below:

Parameter Lower Limit Upper Limit
Positive Insulation Resistance 1 MΩ 1000 MΩ
Negative Insulation Resistance 1 MΩ 1000 MΩ
Positive Withstand Voltage 500 V 1500 V
Negative Withstand Voltage 500 V 1500 V

2.3 Block Diagram Design

2.3.1 Data Acquisition Block Diagram

The data acquisition block diagram consists of two main parts: TCP/IP communication with the testing equipment and database storage. The communication part uses three LabVIEW VIs: TCP Open Connection, TCP Read, and TCP Close Connection. The IP address and port number of the equipment are provided as inputs. For example, if the equipment IP is 192.168.3.209 and port 8000, the TCP Read VI reads a specified number of bytes (e.g., 1024 bytes) with a timeout of 5000 ms. The received data is stored in a string variable “Result”. The data flow can be represented mathematically as:

$$
\text{ReceivedData} = \text{TCP\_Read}(\text{ConnectionID}, \text{bytesToRead}, \text{timeout})
$$

The database storage part uses the Database Connect and Database Insert VIs. The connection requires a data source name (DSN), username, and password. The insert operation specifies the table name (e.g., “InsulationTest”), the column list (e.g., PACK barcode, positive resistance, negative resistance, etc.), and a cluster of values. A simplified representation of the insert query is:

$$
\text{INSERT INTO InsulationTest (PackBarcode, PosResistance, NegResistance, PosVoltage, NegVoltage) VALUES (?, ?, ?, ?, ?)}
$$

2.3.2 Data Query and Export Block Diagram

The query block diagram supports two types of SQL queries. For barcode-based query, the condition is an equality check on the PackBarcode field. For time-based query, the condition uses a BETWEEN clause on a datetime column. The generic query structures are:

$$
\text{SELECT * FROM InsulationTest WHERE PackBarcode = ‘input\_barcode’}
$$

$$
\text{SELECT * FROM InsulationTest WHERE TestTime BETWEEN ‘start\_time’ AND ‘end\_time’}
$$

After executing the query, the result set is displayed in a table on the front panel. For export, the system programmatically writes the table data to an Excel file using the Report Generation Toolkit.

2.3.3 Data Modification and Deletion Block Diagram

The modification block diagram first validates the input barcodes: it checks both the length (e.g., 16 characters) and the leading character (e.g., must be ‘B’) of battery energy storage system barcodes. If validation fails, the operation aborts. If valid, it then checks whether the old and new barcodes are identical; if they are, the operation stops to avoid redundant updates. Otherwise, an SQL UPDATE statement is executed:

$$
\text{UPDATE InsulationTest SET PackBarcode = ‘new\_barcode’ WHERE PackBarcode = ‘old\_barcode’}
$$

The deletion block diagram works similarly: after validation and password check, it executes:

$$
\text{DELETE FROM InsulationTest WHERE PackBarcode = ‘input\_barcode’}
$$

Both operations use a database transaction to ensure data consistency for the battery energy storage system records.

2.3.4 Parameter Settings Block Diagram

The parameter settings block diagram handles eight numeric inputs. For each parameter, the system verifies that the upper limit is greater than the lower limit and that both are positive. If valid, the values are written to global variables or a configuration table. The condition check can be expressed as:

$$
\text{if } (lower > 0 \text{ AND } upper > lower) \text{ then } \text{write\_to\_config}(parameter, lower, upper)
$$

This ensures that only physically meaningful limits are applied to the insulation test of battery energy storage systems.

3. System Flow and Implementation

The overall system flow begins with the user logging in and selecting a test station. The system then establishes a TCP connection with the insulation tester, continuously reads data, and updates the front panel display. When the operator scans a PACK barcode and presses the store button, the current insulation readings are inserted into the database. During production, the system automatically compares the measured values against the configured limits. Any out-of-specification result triggers an alarm, allowing immediate corrective action. The query and export functions enable engineers to analyze historical data from battery energy storage system production lines, identifying trends, failure modes, and process improvements. The modification and deletion features, protected by a password, allow data administrators to correct errors without compromising traceability.

4. Conclusion

In this work, I have presented an insulation test information management system for battery energy storage systems developed using LabVIEW. The system architecture comprises data acquisition, query/export, modification/deletion, and parameter settings modules. The use of TCP/IP communication ensures reliable real-time data transfer from test equipment, while the integration with Sql Server provides robust storage and retrieval capabilities. LabVIEW’s graphical programming paradigm offers significant advantages in terms of development speed, debugging ease, and scalability. As the market for battery energy storage systems continues to expand, the need for accurate and efficient data management becomes paramount. This system effectively reduces costs, improves productivity, and supports quality assurance in battery manufacturing. Future enhancements could include cloud-based data sharing, advanced analytics using machine learning, and integration with MES (Manufacturing Execution Systems) for comprehensive process control. The success of this implementation demonstrates that LabVIEW is a powerful tool for building customized industrial information systems, particularly in the rapidly evolving field of battery energy storage systems.

Scroll to Top