Steam turbine control system parameter actual measurement raw data format method of standardization management
Technical field
The invention belongs to steam turbine modeling technique field, be specifically related to a kind of steam turbine control system parameter actual measurement raw data format method of standardization management, the method is also applicable to Adaptive System of Water-Turbine Engine parameter actual measurement raw data, gas turbine regulating system parameter actual measurement raw data.
Background technology
Raw data format more complicated due to the actual measurement of steam turbine control system parameter, different data collecting instruments, different units, different parameter name definition all can cause the form of raw data different, therefore so far, the raw data of steam turbine control system parameter actual measurement is carried out to format specification processing, still take traditional processing mode as main.By artificial judgment, delete one by one in each steam turbine control system parameter actual measurement raw data file the useless information of parameter identification and data, and according to the raw readings of doing in actual measurement process, the parameter name of manual modification raw data, put in order etc., be organized into regular, set form, and then it is implemented to parameter identification.But because the original data volume of steam turbine control system parameter actual measurement is larger, operate very loaded down with trivial details, intensity of workers is made mistakes greatly and easily, and the efficiency of parameter identification and precision are reduced greatly, totally unfavorable to the calculating of grid stability, Analysis and judgments.
Summary of the invention
The technical problem to be solved in the present invention is that the defect existing for prior art, provides a kind of steam turbine control system parameter actual measurement raw data format method of standardization management.The method can be according to the feature of various common form steam turbine control system parameter actual measurement raw data files, conveniently, promptly reject the useless information of parameter identification and data, and useful data preparation is become to regular, set form, to implement parameter identification.
Technical solution of the present invention is that the above-mentioned steam turbine control system parameter actual measurement raw data format method of standardization management providing comprises the steps:
(1), search parameter name row: in the raw data file that data collecting instrument generates, first few lines is often used for log file information, comprises filename, document creation time, is only afterwards the significant parameter name row of parameter identification and data line.Therefore first need to find parameter name row, rejecting fileinfo is capable.Be exactly configuration data Acquisition Instrument and MATLAB software specifically, use the data collecting instrument collection in worksite steam turbine control system actual measurement raw data configuring, generate actual measurement raw data file.Then use conventional method, by above-mentioned MATLAB software built-in function, the non-small letter English character of described steam turbine control system parameter actual measurement raw data file is all converted to small letter English character.Again from the first trip of this steam turbine control system parameter actual measurement raw data file, use conventional method, by above-mentioned MATLAB software built-in function, search in every a line, whether have the feature string that can characterize acquisition time and the feature string that can characterize rotating speed deviation simultaneously; These two kinds of feature strings can not appear in arbitrary information row of arbitrary file simultaneously, and must appear in parameter name row simultaneously.The name of above-mentioned acquisition time parameter is called above-mentioned configured data collecting instrument and automatically generates, and is all shown as " time "; The title of other parameters is by testing crew self-defining.Each testing crew may be different to the definition of same parameters title, therefore, the feature string that must may use each testing crew carries out exhaustive, as the feature string of rotating speed straggling parameter title comprises " rmp ", " hz ", " err ", " freq ", " pin ".Therefore, the feature string of the feature string of acquisition time parameter and rotating speed straggling parameter is combined, the every a line starting is searched one by one to any one character string whether simultaneously existing " time " and " rmp ", " hz ", " err ", " freq ", " pin " five character strings from first trip.If meet above-mentioned condition, i.e. this parameter name row of this row, stops continuing down to read; If do not meet above-mentioned condition, continue down to read, until find parameter name row, or find the footline of steam turbine control system parameter actual measurement raw data file;
(2), extract each parameter name character string: different units, the definition of different parameter names, different parameters successively put in order and all can make the parameter name row content of step (1) gained different, therefore must analyze the parameter name row of step (1) gained, obtain its actual parameter name character string comprising and put in order.Be exactly extraction step (1) parameters obtained title row specifically, use conventional method, by step (1) the MATLAB software built-in function that configures, obtain in this parameter name row each the independent character string being separated by space or comma or branch, be the character string of each parameter name; Using each independent character string as variable name, by it, putting in order in raw data file stored;
(3), the actual name variable that gets parms: described in step (1), other parameter names except acquisition time are by testing crew self-defining, therefore need to, according to each parameter name character string of step (2) extraction, analyze the parameter name of its actual sign.It is as follows that 15 parameters that are exactly specifically the steam turbine control system parameter to survey required collection are set up respectively parameter name feature string:
The parameter name feature string of setting up for acquisition time parameter is: " time ";
The parameter name feature string of setting up for rotating speed straggling parameter is: " rmp ", " hz ", " err ", " freq ", " pin ";
The parameter name feature string of setting up for flow instruction parameter is: " ref ", " dmd ", " fl ";
The parameter name feature string of setting up for active power parameter is: " mw ", " gonglv ";
The parameter name feature string of setting up for main vapour pressure parameter is: " zq ", " main ";
For the parameter name feature string that regulates pressure parameter to set up is: " tjj ";
The parameter name feature string of setting up for high row pressure force parameter is: " gp ", " hp ";
The parameter name feature string of setting up for hot re-compaction force parameter is: " rz ", " zr ";
The parameter name feature string of setting up for middle row pressure force parameter is: " zp ", " mp ";
The parameter name feature string of setting up for CV1 feedback parameter is: " v1 ", " 1fb ";
The parameter name feature string of setting up for CV2 feedback parameter is: " v2 ", " 2fb ";
The parameter name feature string of setting up for CV3 feedback parameter is: " v3 ", " 3fb ";
The parameter name feature string of setting up for CV4 feedback parameter is: " v4 ", " 4fb ";
The parameter name feature string of setting up for CV5 feedback parameter is: " v5 ", " 5fb ";
The parameter name feature string of setting up for CV6 feedback parameter is: " v6 ", " 6fb ".
The parameter name character string that search step (2) extracts, search one by one described parameter name character string and whether comprise above parameter name feature string: if lookup result shows described parameter name character string, only comprise one of them parameter name feature string, the name variable of this parameter name feature string is revised as to corresponding actual parameter title; If lookup result shows described parameter name character string and does not comprise wherein arbitrary parameter name feature string, or comprise wherein 2 and above parameter name feature string, do not revise its title, but the lookup result information recording of described parameter name character string is on record;
(4) next line of, giving up " parameter name row ": in the raw data file that some data collecting instrument generates, the next line of " parameter name row " has recorded the unit of each parameter, rather than real data, nonsensical to parameter identification.Because steam turbine control system parameter actual measurement original data volume is very large, a general raw data file comprises row data up to ten thousand, gives up data line to not impact of parameter identification, therefore, is convenience of calculation, can give up the next line data of " parameter name row ".Be exactly the next line of giving up step (1) parameters obtained title row specifically, directly carry out step (5);
(5), extract and distribute each parameter measured data: the second row after parameter name row starts, until file end must be the concrete measured data of corresponding each parameter name, can extract accordingly the measured data of each parameter; Due to measured data to put in order with the putting in order of actual parameter title of step (3) gained must be consistent, therefore each row measured data can be distributed to parameters.Be exactly specifically, use conventional method, by step (1) the MATLAB software built-in function that configures, read all remaining datas that parameter name row the second row afterwards starts simultaneously, and by each row remaining data by it putting in order in raw data file, assignment is to the parameter actual name variable of step (3) gained, thus each parameter measured data after acquisition distributes;
(6), computational data collection period: the acquisition time of data itself is nonsensical to parameter identification, but its collection period is significant, therefore needs to calculate to obtain.Be exactly extraction step (5) the acquisition time data rows that obtains specifically, because the data collection cycle of same raw data file must be identical, therefore only need in theory to extract any 2 adjacent acquisition time data and subtract each other.But may there is error in the temporal information that the data collecting instrument being configured due to step (1) records, for guaranteeing to calculate reliably, extract 3 adjacent acquisition time data or 4 adjacent acquisition time data, subtract each other respectively successively, calculate the poor average of each gained, more obtain data collection cycle value after fraction part is rounded up.Each parameter measured data and this step the data obtained collection period after above-mentioned steps (5) gained distributes, be steam turbine control system parameter actual measurement raw data format standardization processing result of the present invention.
So far, exportable above-mentioned steps (6) the steam turbine control system parameter that obtains actual measurement raw data format standardization processing result.Be about to each parameter measured data of step (5) and step (6) gained, after arranging by the order of each parameter name feature string list in step (3), with together with the data collection cycle value of step (6) gained, be stored as text (* .txt) or MATLAB variable file (* .mat); If find, in step (3), there is error message, be stored as another text or MATLAB variable file for user's inquiry.
Above-mentioned is a steam turbine control system parameter to be surveyed to the format specification treatment step of raw data file; If chosen a plurality of raw data files simultaneously, can repeat above step a plurality of files are carried out to format specification processing one by one.
Technological core of the present invention is: the feature to the parameter name row in steam turbine control system parameter actual measurement raw data file is analyzed, and automatically finds parameter name row, and give up useless information row by searching the mode of feature string; The title feature of 15 of needs collection parameters is analyzed simultaneously, set up the feature string of each parameter name, by comparing the actual name of parameters in automatic acquisition raw data; According to storage order, each row measured data is distributed to each parameter actual name variable again; Then by acquisition time data rows is carried out to simple computation, can obtain data collection cycle value.Above-mentioned each row measured data and result of calculation are pressed after fixing order arrangement, with common document form output, can directly be called by each parameter identification module.
The invention has the beneficial effects as follows: use this method to carry out format specification processing to steam turbine control system parameter actual measurement raw data, the mistake of having avoided traditional processing mode easily to occur, significantly improved work efficiency and the identification precision of parameter identification, the stability analysis that is conducive to electrical network is calculated.
The method is according to the feature of various common form steam turbine control system parameter actual measurement raw data files, conveniently, promptly reject the useless information of parameter identification and data, and useful data preparation is become to regular, set form, thereby the mistake of having avoided traditional processing mode easily to occur, significantly improved work efficiency and the identification precision of parameter identification, the stability analysis that is conducive to electrical network is calculated.
Embodiment
Embodiment 1:
(1), search parameter name row: configuration data Acquisition Instrument and MATLAB software.Join the Dimension 4i type data collecting instrument that data collecting instrument adopts commercially available German HBM company to produce, the MATLAB R2009a software that MATLAB software adopts the production of Mai Siwoke software (Beijing) company limited is joined by institute.Use the data collecting instrument configuring to gather steam turbine control system field measurement raw data, generate actual measurement raw data file; Then use conventional method, by above-mentioned MATLAB software built-in function, the non-small letter English character of described steam turbine control system parameter actual measurement raw data file is all converted to small letter English character.Again from the first trip of this steam turbine control system parameter actual measurement raw data file, use conventional method, by above-mentioned MATLAB software built-in function, search in every a line and to have the feature string that can characterize acquisition time and the feature string that can characterize rotating speed deviation whether simultaneously, being about to the feature string of acquisition time parameter and the feature string of rotating speed straggling parameter combines, the every a line starting from first trip is searched to whether have " time " and " rmp " one by one simultaneously, " hz ", " err ", " freq ", any one character string in " pin " five character strings.Meet above-mentioned condition, this row this parameter name row stop continuing down to read;
(2), extract each parameter name character string: extraction step (1) parameters obtained title row, use conventional method, by step (1) the MATLAB software built-in function that configures, obtain each the independent character string being separated by space in this parameter name row, be the character string of each parameter name; Using each independent character string as variable name, by it, putting in order in raw data file stored;
(3), the actual name variable that gets parms: it is as follows that 15 parameters that steam turbine control system parameter is surveyed to required collection are set up respectively parameter name feature string:
The parameter name feature string of setting up for acquisition time parameter is: " time ";
The parameter name feature string of setting up for rotating speed straggling parameter is: " rmp ", " hz ", " err ", " freq ", " pin ";
The parameter name feature string of setting up for flow instruction parameter is: " ref ", " dmd ", " fl ";
The parameter name feature string of setting up for active power parameter is: " mw ", " gonglv ";
The parameter name feature string of setting up for main vapour pressure parameter is: " zq ", " main ";
For the parameter name feature string that regulates pressure parameter to set up is: " tjj ";
The parameter name feature string of setting up for high row pressure force parameter is: " gp ", " hp ";
The parameter name feature string of setting up for hot re-compaction force parameter is: " rz ", " zr ";
The parameter name feature string of setting up for middle row pressure force parameter is: " zp ", " mp ";
The parameter name feature string of setting up for CV1 feedback parameter is: " v1 ", " 1fb ";
The parameter name feature string of setting up for CV2 feedback parameter is: " v2 ", " 2fb ";
The parameter name feature string of setting up for CV3 feedback parameter is: " v3 ", " 3fb ";
The parameter name feature string of setting up for CV4 feedback parameter is: " v4 ", " 4fb ";
The parameter name feature string of setting up for CV5 feedback parameter is: " v5 ", " 5fb ";
The parameter name feature string of setting up for CV6 feedback parameter is: " v6 ", " 6fb ".
The parameter name character string that search step (2) extracts, search one by one described parameter name character string and whether comprise above parameter name feature string: lookup result shows that described parameter name character string only comprises one of them parameter name feature string, is revised as corresponding actual parameter title by the name variable of this parameter name feature string;
(4), give up the next line of " parameter name row ": the next line of omit step (1) parameters obtained title row, directly carry out step (5);
(5), extract and distribute each parameter measured data: using conventional method, by step (1) the MATLAB software built-in function that configures, read all remaining datas that parameter name row the second row afterwards starts simultaneously, and by each row remaining data by it putting in order in raw data file, assignment is to the parameter actual name variable of step (3) gained, thus each parameter measured data after acquisition distributes;
(6), computational data collection period: extraction step (5) the acquisition time data rows that obtains, extract 3 adjacent acquisition time data, subtract each other respectively successively, calculate the poor average of each gained, more obtain data collection cycle value after fraction part is rounded up.Each parameter measured data and this step the data obtained collection period value after above-mentioned steps (5) gained distributes, be steam turbine control system parameter actual measurement raw data format standardization processing result of the present invention.
Embodiment 2:
(1), search parameter name row: configuration data Acquisition Instrument and MATLAB software.Join the Dimension 4i type data collecting instrument that data collecting instrument adopts commercially available German HBM company to produce, the MATLAB R2009a software that MATLAB software adopts the production of Mai Siwoke software (Beijing) company limited is joined by institute.Use the data collecting instrument configuring to gather steam turbine control system field measurement raw data, generate actual measurement raw data file; Then use conventional method, by above-mentioned MATLAB software built-in function, the non-small letter English character of described steam turbine control system parameter actual measurement raw data file is all converted to small letter English character.Again from the first trip of this steam turbine control system parameter actual measurement raw data file, use conventional method, by above-mentioned MATLAB software built-in function, search in every a line and to have the feature string that can characterize acquisition time and the feature string that can characterize rotating speed deviation whether simultaneously, being about to the feature string of acquisition time parameter and the feature string of rotating speed straggling parameter combines, the every a line starting from first trip is searched to whether have " time " and " rmp " one by one simultaneously, " hz ", " err ", " freq ", any one character string in " pin " five character strings.Do not meet above-mentioned condition, continue down to read, until find parameter name row, or find the footline of steam turbine control system parameter actual measurement raw data file;
(2), extract each parameter name character string: extraction step (1) parameters obtained title row, use conventional method, by step (1) the MATLAB software built-in function that configures, obtain each the independent character string being separated by branch in this parameter name row, be the character string of each parameter name; Using each independent character string as variable name, by it, putting in order in raw data file stored;
(3), the actual name variable that gets parms: it is as follows that 15 parameters that steam turbine control system parameter is surveyed to required collection are set up respectively parameter name feature string:
The parameter name feature string of setting up for acquisition time parameter is: " time ";
The parameter name feature string of setting up for rotating speed straggling parameter is: " rmp ", " hz ", " err ", " freq ", " pin ";
The parameter name feature string of setting up for flow instruction parameter is: " ref ", " dmd ", " fl ";
The parameter name feature string of setting up for active power parameter is: " mw ", " gonglv ";
The parameter name feature string of setting up for main vapour pressure parameter is: " zq ", " main ";
For the parameter name feature string that regulates pressure parameter to set up is: " tjj ";
The parameter name feature string of setting up for high row pressure force parameter is: " gp ", " hp ";
The parameter name feature string of setting up for hot re-compaction force parameter is: " rz ", " zr ";
The parameter name feature string of setting up for middle row pressure force parameter is: " zp ", " mp ";
The parameter name feature string of setting up for CV1 feedback parameter is: " v1 ", " 1fb ";
The parameter name feature string of setting up for CV2 feedback parameter is: " v2 ", " 2fb ";
The parameter name feature string of setting up for CV3 feedback parameter is: " v3 ", " 3fb ";
The parameter name feature string of setting up for CV4 feedback parameter is: " v4 ", " 4fb ";
The parameter name feature string of setting up for CV5 feedback parameter is: " v5 ", " 5fb ";
The parameter name feature string of setting up for CV6 feedback parameter is: " v6 ", " 6fb ".
The parameter name character string that search step (2) extracts, search one by one described parameter name character string and whether comprise above parameter name feature string: lookup result shows that described parameter name character string does not comprise wherein arbitrary parameter name feature string, or comprise wherein 2 and above parameter name feature string, do not revise its title, the lookup result information recording of described parameter name character string is on record;
Step (4)~(5) are with embodiment 1;
(6), computational data collection period: extraction step (5) the acquisition time data rows that obtains, extract 4 adjacent acquisition time data, subtract each other respectively successively, calculate the poor average of each gained, more obtain data collection cycle value after fraction part is rounded up.Each parameter measured data and this step the data obtained collection period value after above-mentioned steps (5) gained distributes, be steam turbine control system parameter actual measurement raw data format standardization processing result of the present invention.