CN115289620A - A method for reading and writing configurable text files based on building energy-saving systems - Google Patents
A method for reading and writing configurable text files based on building energy-saving systems Download PDFInfo
- 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
- building energy
- data
- text file
- saving system
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000004378 air conditioning Methods 0.000 claims description 14
- 238000005265 energy consumption Methods 0.000 claims description 3
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 230000003993 interaction Effects 0.000 abstract description 8
- 238000004088 simulation Methods 0.000 description 6
- 230000005611 electricity Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- F—MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
- F24—HEATING; RANGES; VENTILATING
- F24F—AIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
- F24F11/00—Control or safety arrangements
- F24F11/30—Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
- F24F11/46—Improving electric energy efficiency or saving
- F24F11/47—Responding to energy costs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy 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
本发明公开了一种基于楼宇节能系统的可配置文本文件的读写方法,包括以下步骤:1)通过物联网模块采集得到空调系统数据;2)根据楼宇节能系统配置参数对空调系统数据进行格式转换处理,得到转换后的数据;3)将转换后的数据生成指定格式的文本文件;4)第三方仿真软件读取指定格式的文本文件,运行后生成结果文件;5)楼宇节能系统读取结果文件并进行分析,生成相对应的文本文件。本发明具有能够提高楼宇节能系统与第三方仿真软件之间交互时对文本文件生成和读取的灵活性、提高楼宇节能系统的可扩展性的特点。
The invention discloses a method for reading and writing a configurable text file based on a building energy saving system. Convert the data to obtain the converted data; 3) Generate a text file in a specified format from the converted data; 4) The third-party simulation software reads the text file in the specified format, and generates a result file after running; 5) The building energy-saving system reads The result file is analyzed and the corresponding text file is generated. The invention has the characteristics of improving the flexibility of generating and reading text files during the interaction between the building energy-saving system and the third-party simulation software, and improving the expansibility of the building energy-saving system.
Description
技术领域technical field
本发明涉及一种楼宇节能系统,特别是一种基于楼宇节能系统的可配置文本文件的读写方法。The invention relates to a building energy-saving system, in particular to a method for reading and writing configurable text files based on the building energy-saving system.
背景技术Background technique
目前市面上有很多楼宇节能系统,节能的主要类型也有多种,如对用电、用水、用气的节能;而在这几种类型下又有多种类型的分支,如在用电方面,又有针对楼宇空调用电、照明用电、电梯用电等方面的节能系统。在空调楼宇节能系统中,需要通过仿真软件对整栋楼或者整个园区的空调系统进行仿真建模,通过仿真软件模拟出空调运行的环境、参数、能耗等数据,然后节能系统可以收集楼宇中空调系统的各种参数,将数据生成文本文件,供仿真软件读取;仿真软件读取数据后运行相关的程序进行模拟,输出结果文件;节能系统需要读取仿真软件的结果文件,进行数据分析,并再次生成或修改对应的文本文件,供仿真软件进行下一次的数据读取。At present, there are many building energy-saving systems on the market, and there are many main types of energy-saving, such as the energy-saving of electricity, water, and gas; and there are many types of branches under these types, such as in terms of electricity, There are also energy-saving systems for building air-conditioning, lighting, and elevator power consumption. In the air-conditioning building energy-saving system, it is necessary to simulate and model the air-conditioning system of the entire building or the entire park through simulation software, and simulate the operating environment, parameters, energy consumption and other data of the air-conditioning through the simulation software, and then the energy-saving system can collect data in the building For various parameters of the air conditioning system, the data is generated into a text file for the simulation software to read; after the simulation software reads the data, it runs the relevant program to simulate and output the result file; the energy-saving system needs to read the result file of the simulation software for data analysis , and generate or modify the corresponding text file again for the next data reading by the simulation software.
在此过程中,会有多次文本文件的生成、读取和修改操作。而仿真软件对不同楼宇需要建立不同的仿真模型,需要不同格式的数据文件,会生成不同格式的仿真结果文件。这样不确定的文本文件内容格式,使简单的文本文件读取功能在此背景下变得复杂起来;楼宇节能系统需要拓展性,不可能改变一个仿真模型就需要改动代码来生成和读取不同格式的文本文件。因此,现有的技术存在着楼宇节能系统与第三方仿真软件之间进行数据交互时的文本文件内容格式多变,无法以固定格式读取的问题。During this process, there will be multiple operations of generating, reading and modifying text files. The simulation software needs to establish different simulation models for different buildings, requires data files in different formats, and will generate simulation result files in different formats. Such an uncertain text file content format makes the simple text file reading function complicated in this context; the building energy-saving system needs scalability, and it is impossible to change a simulation model, and it is necessary to change the code to generate and read different formats text file. Therefore, the existing technology has the problem that the content format of the text file during data interaction between the building energy saving system and the third-party simulation software is variable and cannot be read in a fixed format.
发明内容Contents of the invention
本发明的目的在于,提供一种基于楼宇节能系统的可配置文本文件的读写方法。本发明具有能够提高楼宇节能系统与第三方仿真软件之间交互时对文本文件生成和读取的灵活性、提高楼宇节能系统的可扩展性的特点。The purpose of the present invention is to provide a method for reading and writing a configurable text file based on a building energy-saving system. The invention has the characteristics of being able to improve the flexibility of generating and reading text files when interacting between the building energy-saving system and third-party simulation software, and improving the scalability of the building energy-saving system.
本发明的技术方案:一种基于楼宇节能系统的可配置文本文件的读写方法,The technical solution of the present invention: a method for reading and writing a configurable text file based on a building energy-saving system,
与现有技术相比,本发明根据楼宇节能系统的配置参数对空调系统数据进行格式化处理,灵活的生成指定格式的文本文件,可以使楼宇节能系统与第三方仿真软件之间的数据交互变得更灵活,快速有效的生成不同格式的文本文件,为仿真软件运行前需要读取数据做准备,且可通过系统配置参数灵活的适用于不同的仿真模型文件。在读取文本文件时,可以通过系统配置参数读取指定列下的指定行的多个数据;进而能够有效解决楼宇节能系统与第三方仿真软件之间进行数据交互时的文本文件内容格式多变,无法以固定格式读取的问题;通过本方法,可以提高楼宇节能系统与第三方仿真软件之间数据交互的灵活性和效率。综上所述,本发明具有能够提高楼宇节能系统与第三方仿真软件之间交互时对文本文件生成和读取的灵活性、提高楼宇节能系统的可扩展性的特点。Compared with the prior art, the present invention formats the data of the air-conditioning system according to the configuration parameters of the building energy-saving system, flexibly generates a text file in a specified format, and can change the data interaction between the building energy-saving system and the third-party simulation software. It can be more flexible, quickly and effectively generate text files in different formats, prepare for reading data before the simulation software runs, and can be flexibly applied to different simulation model files through system configuration parameters. When reading a text file, multiple data of a specified row under a specified column can be read through the system configuration parameters; thus, it can effectively solve the content format change of the text file when the data interaction between the building energy saving system and the third-party simulation software , the problem that cannot be read in a fixed format; through this method, the flexibility and efficiency of data interaction between the building energy saving system and the third-party simulation software can be improved. To sum up, the present invention has the characteristics of being able to improve the flexibility of generating and reading text files during the interaction between the building energy-saving system and third-party simulation software, and improving the scalability of the building energy-saving system.
附图说明Description of drawings
图1是本发明的生成文本文件的流程图。Fig. 1 is a flow chart of the present invention for generating a text file.
图2是楼宇节能系统读取结果文件的流程图。Fig. 2 is a flow chart of reading the result file by the building energy saving system.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的说明,但并不作为对本发明限制的依据。The present invention will be further described below in conjunction with the accompanying drawings and embodiments, but not as a basis for limiting the present invention.
实施例。一种基于楼宇节能系统的可配置文本文件的读写方法,构成如图1和2所示,包括以下步骤:Example. A method for reading and writing a configurable text file based on a building energy-saving system, the composition of which is shown in Figures 1 and 2, including the following steps:
1)通过物联网模块采集得到空调系统数据;1) Acquisition of air conditioning system data through the IoT module;
2)根据楼宇节能系统配置参数对空调系统数据进行格式转换处理,得到转换后的数据;2) Perform format conversion processing on the data of the air conditioning system according to the configuration parameters of the building energy-saving system, and obtain the converted data;
3)将转换后的数据生成指定格式的文本文件;3) generate a text file in a specified format from the converted data;
4)第三方仿真软件读取指定格式的文本文件,运行后生成结果文件;4) The third-party simulation software reads the text file in the specified format, and generates the result file after running;
5)楼宇节能系统读取结果文件并进行分析,生成相对应的文本文件。5) The building energy saving system reads and analyzes the result file, and generates a corresponding text file.
前述的一种基于楼宇节能系统的可配置文本文件的读写方法中,空调系统数据包括能耗数据、温度数据和负荷数据。In the aforementioned reading and writing method of a configurable text file based on a building energy-saving system, the air-conditioning system data includes energy consumption data, temperature data and load data.
前述的一种基于楼宇节能系统的可配置文本文件的读写方法中,系统配置参数包括:要生成的文本文件的文件名称、要生成的文本文件的各列的标题、要在物联网模块采集的空调系统的属性标识。In the aforementioned reading and writing method of a configurable text file based on a building energy-saving system, the system configuration parameters include: the file name of the text file to be generated, the titles of each column of the text file to be generated, the Attribute identification of the air conditioning system.
前述的一种基于楼宇节能系统的可配置文本文件的读写方法中,文本文件的格式按照行和列的形式进行排列。In the aforementioned method for reading and writing a configurable text file based on a building energy-saving system, the format of the text file is arranged in the form of rows and columns.
前述的一种基于楼宇节能系统的可配置文本文件的读写方法中,楼宇节能系统读取结果文件时的具体流程为:获取楼宇节能系统配置参数,根据楼宇节能系统配置参数读取结果文件中的指定行、列数据;将读取的数据返回至楼宇节能系统。In the aforementioned method for reading and writing configurable text files based on the building energy-saving system, the specific process when the building energy-saving system reads the result file is as follows: obtain the configuration parameters of the building energy-saving system, and read the results in the result file according to the configuration parameters of the building energy-saving system. The specified row and column data; return the read data to the building energy saving system.
本发明是对文本文件相关操作的功能实现,本方法使用java语言实现,对于功能而言,其他语言也可同样实现。The present invention is the functional realization of relevant operations on text files, and the method is realized by java language. For the functions, other languages can also be realized in the same way.
步骤3)中生产的文本文件格式类似于Excel文件的内容格式,按行和列的形式排列。The format of the text file produced in step 3) is similar to the content format of the Excel file, arranged in the form of rows and columns.
生成文本文件时,根据系统配置,可灵活的生成指定格式的数据,按制表符对数据进行格式控制,生成后的文件内容利于第三方仿真软件进行数据的读取;When generating a text file, according to the system configuration, the data in the specified format can be flexibly generated, and the format of the data is controlled according to tab characters. The content of the generated file is convenient for third-party simulation software to read the data;
在读取文本文件内容时,可以根据配置参数灵活的读取指定行和列的多个数据。When reading the content of a text file, multiple data in specified rows and columns can be flexibly read according to configuration parameters.
在修改文件内容时,通过配置参数确定需要修改包含指定内容的行,然后通过边读边写的方式,在文本文件较大的情况下,极大地提高了修改文件的效率。When modifying the content of the file, it is determined through the configuration parameters that the line containing the specified content needs to be modified, and then through the method of reading and writing, in the case of a large text file, the efficiency of modifying the file is greatly improved.
通过本方法,可以提高楼宇节能系统与第三方仿真软件之间数据交互的灵活性和效率。Through the method, the flexibility and efficiency of data interaction between the building energy-saving system and the third-party simulation software can be improved.
通过系统配置参数,在生成文件时,文本文件的行数和列数可以根据仿真软件的需要来改变配置参数的个数从而灵活生成指定格式的文本文件。在读取文本文件时,不是读取全部文件内容,而是通过配置参数,读取仿真结果文件中的指定列下的指定第几行的一个或多个数据。Through system configuration parameters, when generating files, the number of rows and columns of text files can be changed according to the needs of the simulation software, so as to flexibly generate text files in specified formats. When reading a text file, instead of reading all the contents of the file, one or more data of the specified row under the specified column in the simulation result file are read through configuration parameters.
本发明中对于生成文本文件的内容格式更灵活,不局限于输入数据的格式,在生成文件的过程中会根据系统配置参数将数据格式进行转换,生成指定内容格式的文本文件。这样可以适用于不同仿真模型文件所需的不同的文本文件内容格式,增加了楼宇节能系统与第三方仿真软件之间数据交互的灵活性,提高了楼宇节能系统的可拓展性。In the present invention, the content format of the generated text file is more flexible, and is not limited to the format of the input data. In the process of generating the file, the data format will be converted according to the system configuration parameters to generate a text file of the specified content format. This can be applied to different text file content formats required by different simulation model files, increases the flexibility of data interaction between the building energy-saving system and third-party simulation software, and improves the scalability of the building energy-saving system.
读取文件内容时可根据配置的参数读取文本文件的指定行、列的内容,而不是仅读取文件全部内容或某行内容。When reading the content of the file, the content of the specified row and column of the text file can be read according to the configured parameters, instead of only reading the entire content of the file or the content of a certain line.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211007300.3A CN115289620A (en) | 2022-08-22 | 2022-08-22 | A method for reading and writing configurable text files based on building energy-saving systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211007300.3A CN115289620A (en) | 2022-08-22 | 2022-08-22 | A method for reading and writing configurable text files based on building energy-saving systems |
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 | A method for reading and writing configurable text files based on building energy-saving systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115289620A (en) |
Cited By (1)
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 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010182287A (en) * | 2008-07-17 | 2010-08-19 | Steven C Kays | Intelligent adaptive design |
EP2626754A1 (en) * | 2012-02-07 | 2013-08-14 | GfR - Gesellschaft für Regelungstechnik und Energieneinsparung mbH | Simulation environment for building automation |
CN106528744A (en) * | 2016-10-28 | 2017-03-22 | 宁德时代新能源科技股份有限公司 | Format conversion method and system |
CN109324522A (en) * | 2018-09-30 | 2019-02-12 | 西安建筑科技大学 | Central air-conditioning simulation system and method based on algorithm verification of swarm intelligent building platform |
-
2022
- 2022-08-22 CN CN202211007300.3A patent/CN115289620A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010182287A (en) * | 2008-07-17 | 2010-08-19 | Steven C Kays | Intelligent adaptive design |
EP2626754A1 (en) * | 2012-02-07 | 2013-08-14 | GfR - Gesellschaft für Regelungstechnik und Energieneinsparung mbH | Simulation environment for building automation |
CN106528744A (en) * | 2016-10-28 | 2017-03-22 | 宁德时代新能源科技股份有限公司 | Format conversion method and system |
CN109324522A (en) * | 2018-09-30 | 2019-02-12 | 西安建筑科技大学 | Central air-conditioning simulation system and method based on algorithm verification of swarm intelligent building platform |
Cited By (1)
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 |
---|---|---|
CN102541521B (en) | Automatic operating instruction generating device based on structured query language and method | |
CN112905450A (en) | Automatic development system of chip register based on template variable replacement | |
CN109492199A (en) | A kind of pdf document conversion method judged in advance based on OCR | |
CN117033249B (en) | Test case generation method and device, computer equipment and storage medium | |
CN101013451A (en) | Automatic generation system for designing BOM | |
WO2021253641A1 (en) | Shading language translation method | |
CN111666747A (en) | Method for generating WORD document into description class data module conforming to S1000D standard | |
CN115289620A (en) | A method for reading and writing configurable text files based on building energy-saving systems | |
CN112231197A (en) | Page testing method and device and storage medium | |
CN105095255A (en) | Data index creating method and device | |
CN102591787B (en) | The data processing method of JAVA card and device | |
CN113553055A (en) | Visual chart code automatic generation method based on machine learning | |
CN111124380A (en) | Front-end code generation method | |
CN111475558B (en) | Data conversion method and device, storage medium and electronic equipment | |
CN114780577A (en) | SQL statement generation method, device, device and storage medium | |
CN114003224A (en) | A method to realize low-code platform based on taro | |
CN117193782B (en) | Grammar mapping method and device from SIMSCRIPT language to C language | |
CN110502735B (en) | Method and system for quickly manufacturing universal process file of electronic equipment | |
CN104992379A (en) | Dynamic text exchange format management method of big data of power industry | |
CN102855325A (en) | Method and system for opening DXF (drawing exchange format) files | |
CN113064585B (en) | JSON mode-based real-time message interface automatic generation method | |
CN114416090A (en) | A method and device for converting a single-page application framework Vue component | |
JP2003140960A5 (en) | ||
CN112541339A (en) | Knowledge extraction method based on random forest and sequence labeling model | |
CN101051268A (en) | System and method for determining whether screen displayed by program satisfies specification |
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 |