CN115289620A - Configurable text file reading and writing method based on building energy-saving system - Google Patents

Configurable text file reading and writing method based on building energy-saving system Download PDF

Info

Publication number
CN115289620A
CN115289620A CN202211007300.3A CN202211007300A CN115289620A CN 115289620 A CN115289620 A CN 115289620A CN 202211007300 A CN202211007300 A CN 202211007300A CN 115289620 A CN115289620 A CN 115289620A
Authority
CN
China
Prior art keywords
text file
building energy
saving system
data
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211007300.3A
Other languages
Chinese (zh)
Inventor
罗鹏鑫
王利
刘钢
李奇
何鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yuanchuang Intelligent Control Technology Co ltd
Original Assignee
Zhejiang Yuanchuang Intelligent Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Yuanchuang Intelligent Control Technology Co ltd filed Critical Zhejiang Yuanchuang Intelligent Control Technology Co ltd
Priority to CN202211007300.3A priority Critical patent/CN115289620A/en
Publication of CN115289620A publication Critical patent/CN115289620A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • F24F11/46Improving electric energy efficiency or saving
    • F24F11/47Responding to energy costs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Chemical & Material Sciences (AREA)
  • Mechanical Engineering (AREA)
  • Combustion & Propulsion (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a reading and writing method of a configurable text file based on a building energy-saving system, which comprises the following steps: 1) Acquiring air conditioning system data through an Internet of things module; 2) Carrying out format conversion processing on the air conditioning system data according to the configuration parameters of the building energy-saving system to obtain converted data; 3) Generating a text file with a specified format from the converted data; 4) Reading the text file in the specified format by the third-party simulation software, and generating a result file after running; 5) And the building energy-saving system reads and analyzes the result file to generate a corresponding text file. The method has the characteristics of improving the flexibility of generating and reading the text file during the interaction between the building energy-saving system and the third-party simulation software and improving the expandability of the building energy-saving system.

Description

Reading and writing method of configurable text file based on building energy-saving system
Technical Field
The invention relates to a building energy-saving system, in particular to a method for reading and writing a configurable text file based on the building energy-saving system.
Background
At present, a plurality of building energy-saving systems are available on the market, and the main types of energy saving are also various, such as energy saving for electricity, water and gas; under the types, there are various branches, such as energy-saving systems for building air-conditioning power utilization, lighting power utilization, elevator power utilization and the like in the aspect of power utilization. In an energy-saving system of an air-conditioning building, simulation modeling needs to be carried out on the air-conditioning system of the whole building or the whole park through simulation software, the environment, parameters, energy consumption and other data of the operation of an air conditioner are simulated through the simulation software, then the energy-saving system can collect various parameters of the air-conditioning system in the building, and the data are generated into text files for the simulation software to read; after reading the data, the simulation software runs the related program for simulation and outputs a result file; the energy-saving system needs to read the result file of the simulation software, perform data analysis, and regenerate or modify the corresponding text file for the next data reading of the simulation software.
In this process, there are many times of operations of generating, reading and modifying the text file. The simulation software needs to establish different simulation models for different buildings, needs data files with different formats and can generate simulation result files with different formats. The content format of the text file is uncertain, so that the simple text file reading function becomes complicated under the background; the building energy saving system needs expansibility, and when one simulation model cannot be changed, codes need to be changed to generate and read text files in different formats. Therefore, the prior art has the problems that the content format of the text file is variable and cannot be read in a fixed format when data interaction is carried out between the building energy-saving system and third-party simulation software.
Disclosure of Invention
The invention aims to provide a reading and writing method of a configurable text file based on a building energy-saving system. The method has the characteristics of improving the flexibility of generating and reading the text file when the building energy-saving system and the third-party simulation software interact with each other and improving the expandability of the building energy-saving system.
The technical scheme of the invention is as follows: a reading and writing method of a configurable text file based on a building energy-saving system,
compared with the prior art, the method and the device have the advantages that the data of the air conditioning system are formatted according to the configuration parameters of the building energy-saving system, the text files in the specified format are generated flexibly, the data interaction between the building energy-saving system and third-party simulation software becomes more flexible, the text files in different formats are generated rapidly and effectively, preparation is made for reading the data before the simulation software operates, and the method and the device can be flexibly suitable for different simulation model files through the configuration parameters of the system. When reading the text file, a plurality of data of the designated row under the designated column can be read through the system configuration parameters; the problem that the content format of a text file is variable and cannot be read in a fixed format when data interaction is carried out between the building energy-saving system and third-party simulation software can be effectively solved; by the method, the flexibility and the efficiency of data interaction between the building energy-saving system and third-party simulation software can be improved. In conclusion, the method and the device have the characteristics of improving the flexibility of generating and reading the text file during the interaction between the building energy-saving system and the third-party simulation software and improving the expandability of the building energy-saving system.
Drawings
FIG. 1 is a flow chart of the present invention for generating a text file.
FIG. 2 is a flow chart of a building energy saving system reading a result file.
Detailed Description
The invention is further illustrated by the following figures and examples, which are not to be construed as limiting the invention.
Examples are given. A method for reading and writing a configurable text file based on a building energy-saving system is shown in figures 1 and 2 and comprises the following steps:
1) Acquiring air conditioning system data through an Internet of things module;
2) Carrying out format conversion processing on the air conditioning system data according to the configuration parameters of the building energy-saving system to obtain converted data;
3) Generating a text file with a specified format from the converted data;
4) Reading the text file in the specified format by the third-party simulation software, and generating a result file after running;
5) And the building energy-saving system reads and analyzes the result file to generate a corresponding text file.
In the foregoing method for reading and writing the configurable text file based on the building energy saving system, the air conditioning system data includes energy consumption data, temperature data, and load data.
In the foregoing method for reading and writing a configurable text file based on a building energy saving system, system configuration parameters include: the method comprises the steps of generating a text file to be generated, generating a file name of the text file to be generated, generating a title of each column of the text file to be generated, and collecting attribute identification of the air-conditioning system in an Internet of things module.
In the foregoing method for reading and writing a configurable text file based on a building energy saving system, formats of the text file are arranged in a row and column format.
In the foregoing method for reading and writing a configurable text file based on a building energy saving system, a specific process when the building energy saving system reads a result file is as follows: acquiring building energy-saving system configuration parameters, and reading specified row and column data in a result file according to the building energy-saving system configuration parameters; and returning the read data to the building energy-saving system.
The method realizes the function of the relevant operation of the text file, the method is realized by using java language, and other languages can also be realized for the function.
The format of the text file produced in the step 3) is similar to the content format of an Excel file, and the text file is arranged in a row and column mode.
When generating a text file, according to system configuration, data in a specified format can be flexibly generated, format control is carried out on the data according to a tab, and the generated file content is beneficial to reading the data by third-party simulation software;
when the text file content is read, a plurality of data of specified rows and columns can be flexibly read according to the configuration parameters.
When the content of the file is modified, the line containing the specified content is determined to be modified through the configuration parameters, and then the efficiency of modifying the file is greatly improved in the case of a large text file through a reading-while-writing mode.
By the method, the flexibility and the efficiency of data interaction between the building energy-saving system and third-party simulation software can be improved.
Through the system configuration parameters, when the file is generated, the number of the lines and the columns of the text file can be changed according to the requirement of simulation software, so that the text file with the specified format can be flexibly generated. When reading the text file, one or more data of a specified number of rows under a specified column in the simulation result file are read through the configuration parameters instead of reading the whole file content.
The invention is more flexible for the content format of the generated text file, is not limited to the format of input data, and can convert the data format according to the system configuration parameters in the process of generating the file to generate the text file with the specified content format. Therefore, the method can be suitable for different text file content formats required by different simulation model files, the flexibility of data interaction between the building energy-saving system and third-party simulation software is improved, and the expansibility of the building energy-saving system is improved.
When the file content is read, the content of the appointed row and column of the text file can be read according to the configured parameters, and the content of all the file or the content of a certain row is not read.

Claims (5)

1. A reading and writing method of a configurable text file based on a building energy-saving system is characterized by comprising the following steps:
1) Acquiring air conditioning system data through an Internet of things module;
2) Carrying out format conversion processing on the air conditioning system data according to the configuration parameters of the building energy-saving system to obtain converted data;
3) Generating a text file with a specified format from the converted data;
4) Reading the text file in the specified format by the third-party simulation software, and generating a result file after running;
5) And the building energy-saving system reads and analyzes the result file to generate a corresponding text file.
2. The method for reading and writing the configurable text file based on the building energy saving system as claimed in claim 1, wherein: the air conditioning system data includes energy consumption data, temperature data, and load data.
3. The method as claimed in claim 1, wherein the system configuration parameters include: the method comprises the following steps of generating a file name of a text file to be generated, a title of each column of the text file to be generated, and an attribute identification of the air conditioning system to be collected in an Internet of things module.
4. The method as claimed in claim 1, wherein the method comprises the following steps: the format of the text file is arranged in rows and columns.
5. The method as claimed in claim 1, wherein the specific process of reading the result file by the building energy saving system is as follows: acquiring building energy-saving system configuration parameters, and reading specified row and column data in a result file according to the building energy-saving system configuration parameters; and returning the read data to the building energy-saving system.
CN202211007300.3A 2022-08-22 2022-08-22 Configurable text file reading and writing method based on building energy-saving system Pending CN115289620A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211007300.3A CN115289620A (en) 2022-08-22 2022-08-22 Configurable text file reading and writing method based on building energy-saving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211007300.3A CN115289620A (en) 2022-08-22 2022-08-22 Configurable text file reading and writing method based on building energy-saving system

Publications (1)

Publication Number Publication Date
CN115289620A true CN115289620A (en) 2022-11-04

Family

ID=83829230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211007300.3A Pending CN115289620A (en) 2022-08-22 2022-08-22 Configurable text file reading and writing method based on building energy-saving system

Country Status (1)

Country Link
CN (1) CN115289620A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116384341A (en) * 2022-12-16 2023-07-04 西安航天动力试验技术研究所 Engine test data processing method, storage medium and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116384341A (en) * 2022-12-16 2023-07-04 西安航天动力试验技术研究所 Engine test data processing method, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN109918786A (en) A kind of offshore wind turbine foundation structure automatic analysis system and method
WO1995015523A1 (en) Multi-language generation of control program for an industrial controller
CN116167148B (en) Urban neighborhood form optimization method and system based on local microclimate
CN115289620A (en) Configurable text file reading and writing method based on building energy-saving system
CN116304669A (en) Short-term correction distributed photovoltaic power prediction method and system
CN103529773A (en) Automatic conversion method for behavior control scripting language
CN102929853A (en) DCS (Data Communication System) project data generating system and method based on Excel sheet association
CN109117564B (en) System and method for converting PDS three-dimensional model into RELAP5 model
CN112905450B (en) Automatic chip register development system based on template variable replacement
CN109408884A (en) Information processing method for central air-conditioning system Automated Design
CN110019167B (en) Method and system for constructing medium-and-long-term new energy resource database
CN117931995A (en) Building operation expert system
CN109977514B (en) Method for generating model scheduling sequence of radar synchronous data flow graph
CN109634215B (en) Nuclear power plant operation procedure design method based on planar graph coding technology
CN102393820A (en) Logical implementation method for controlling building monitoring system
WO2012088793A1 (en) Method for configuring i/o configuration tool parameters for ic device
CN104765616B (en) A kind of method and system for automatically generating I/O model
CN115271320A (en) Renewable energy consumption evaluation method based on fuzzy clustering algorithm model
KR20230053880A (en) A method of company information management system with using big data processing
CN113139012A (en) Method for processing data by ETL tool engine based on JSON and ETL data processing system
CN117371365B (en) Method, electronic device and medium for generating glitch signal based on timing information analysis
CN114490944B (en) Batched graphic generation method of plant information
CN112283011B (en) Secondary reconstruction device of water turbine speed regulator and control method thereof
CN114509986B (en) Cross-platform HMI configuration system and method based on xml file
CN106872872B (en) Chip test vector conversion method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination