Vehicle measurement data conversion processing method, system, equipment and medium
By automatically processing vehicle measurement data, including channel group traversal, time series alignment and signal input module creation, the problem of cumbersome and inefficient manual operation in the existing technology is solved, and the data is automated processing and simulation analysis is realized, and work efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510071271.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The existing vehicle data processing process requires a lot of manual operations, resulting in low work efficiency and the inability to effectively automate the analysis and import of vehicle measurement data.
By obtaining the channel group and channel signal units of the mdf file corresponding to the CAN bus, generating a unique identification name, creating temporary variables, performing time series alignment, and automatically importing the matlab workspace, creating a signal input module, adjusting the simulation step length and time parameters, and realizing automated data processing and simulation analysis.
It realizes the automatic analysis and import of vehicle measurement data, reduces manual operations, improves work efficiency, simplifies simulation analysis process, and reduces costs.
Smart Images

Figure CN119938763A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of measurement data conversion, and in particular to a vehicle measurement data conversion processing method, system, device and medium. Background Art
[0002] When testing a vehicle's electronic control system, engineers will use professional data monitoring equipment to measure, collect and record the real-time working data of the electronic control system. Engineers will then conduct detailed simulation analysis on the recorded data to verify the effectiveness of the control software and locate problems.
[0003] At present, the acquisition of vehicle data mainly relies on CAN bus devices, which are responsible for collecting and recording files with extensions of dat or mdf. In the development stage of vehicle electronic control systems, control application software usually adopts a model-based development method. This method is based on MATLAB, develops control strategies by building models, and automatically generates application codes to realize specific control functions of the vehicle.
[0004] However, after engineers obtain these measurement record files, they need to use dedicated equipment software to parse the data and convert it into Excel or other formats for export. Subsequently, these data need to be imported through the application software MATLAB. Engineers need to manually compare signal variables and set up a complex test environment before they can perform simulation analysis. This process not only involves a lot of manual operations, but is also time-consuming and lengthy, greatly reducing work efficiency. Therefore, there is an urgent need for a vehicle measurement data conversion and processing method, system, equipment and medium to solve the technical problem that the above-mentioned vehicle data processing process requires manual operations and has low work efficiency. Summary of the invention In view of the above-mentioned deficiencies in the prior art, the present application provides a vehicle measurement data conversion processing method, system, device and medium to solve the problem that the existing vehicle data processing process requires manual operation and has low work efficiency.
[0005] In a first aspect, the present application provides a vehicle measurement data conversion processing method, the method comprising: Get the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle; traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name for the current channel signal unit according to the channel group name and the channel signal unit name, assign the identification name to a character variable, and obtain a character variable set; according to the number of channel signal units in the current channel group, traverse and read the measurement data of each channel signal unit in the current sampling period; create a temporary variable tempData for the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData; according to the time amount, perform time series alignment on the data in the temporary variable tempData read in the current sampling period; assign the aligned temporary variable The tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read out; according to the temporary variable tempData in the matlab workspace, the corresponding signal input module is automatically added in the application software to be simulated, and the temporary variable tempData associated with each signal input module in the matlab workspace is set; the input interface module in the application software to be simulated is replaced with the signal input module with the same name; the sampling time interval and the maximum time parameters of the time quantity in the matlab workspace are extracted, and then the simulation step size and simulation time parameters in the application software to be simulated are adjusted to obtain the adjusted application software, run the application software, obtain the test data through the input interface module, and then obtain the simulation results.
[0006] In one implementation of the present application, a unique identification name of the current channel signal unit is generated according to the channel group name and the channel signal unit name, and the identification name is assigned to a character variable, specifically including: Extract the name characters of the channel signal unit; Only the preset character types in the name characters are retained to obtain the initial channel signal unit name; wherein the preset character types at least include: uppercase and lowercase letters, and underscores; Then generate the unique identification name of the current channel signal unit: the channel group number + the initial channel signal unit name; Assign the tag name to the character variable ChannelLName.
[0007] In one implementation of the present application, according to the time quantity, the data in the temporary variable tempData read in the current sampling period is aligned in time series, specifically including: Read the time in the current temporary variable tempData to obtain the time at the initial moment; When the time quantity at the initial moment is not 0, the time quantity of the time series in the temporary variable tempData is corrected to start from time 0.
[0008] In one implementation of the present application, before automatically adding a corresponding signal input module in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and setting the temporary variable tempData associated with each signal input module in the matlab workspace, the method further includes: Automatically count the number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData; At the same time, the temporary variable tempData is obtained to import the empty data and data conversion problems generated in the matlab workspace; The number of temporary variables tempData, the name of the temporary variable tempData, empty data and data conversion problems are output and displayed in the matlab window.
[0009] In a second aspect, the present application provides a vehicle measurement data conversion and processing system, the system comprising: The acquisition component is used to obtain the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle; the character variable acquisition component is used to traverse the channel signal units under each channel group according to the number of channel groups; according to the channel group name and the channel signal unit name, a unique identification name of the current channel signal unit is generated, and the identification name is assigned to the character variable to obtain a character variable set; the temporary variable traversal acquisition component is used to traverse and read the measurement data of each channel signal unit in the current sampling period according to the number of channel signal units in the current channel group; create a temporary variable tempData of the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData; the data import component is used to perform time series on the data in the temporary variable tempData read in the current sampling period according to the time amount. Alignment; import the aligned temporary variable tempData into the matlab workspace, and update the name of the temporary variable tempData to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read; a module replacement component is used to automatically add the corresponding signal input module in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and set the temporary variable tempData associated with each signal input module in the matlab workspace; replace the input interface module in the application software to be simulated with the signal input module of the same name; run the simulation component, which is used to extract the sampling time interval and maximum time parameters of the time quantity in the matlab workspace, and then adjust the simulation step size and simulation time parameters in the application software to be simulated, obtain the adjusted application software, run the application software, obtain the test data through the input interface module, and then obtain the simulation result.
[0010] In one implementation of the present application, the character variable acquisition component includes an identification assignment unit, which is used to extract the name characters of the channel signal unit; only retain the preset character types in the name characters to obtain the initial channel signal unit name; wherein the preset character types include at least: uppercase and lowercase letters, underscores; and then generate a unique identification name for the current channel signal unit: in the form of channel group number + initial channel signal unit name; and assign the identification name to the character variable ChannelLName.
[0011] In one implementation of the present application, the data import component includes a time alignment unit, Used to read the time in the current temporary variable tempData to obtain the time at the initial moment; When the time quantity at the initial moment is not 0, the time quantity of the time series in the temporary variable tempData is corrected to start from time 0.
[0012] In one implementation of the present application, the system also includes a workspace display component, which is used to automatically count the number of temporary variables tempData imported into the matlab workspace and the name of the temporary variable tempData; at the same time, obtain the empty data and data conversion problems generated when the temporary variable tempData is imported into the matlab workspace; and output and display the number of temporary variables tempData, the name of the temporary variable tempData, the empty data and the data conversion problems in the matlab window.
[0013] In a third aspect, the present application provides a vehicle measurement data conversion and processing device, the device comprising: a processor; and a memory on which executable code is stored, and when the executable code is executed, the processor executes a vehicle measurement data conversion and processing method as any one of the above items.
[0014] In a fourth aspect, the present application provides a non-volatile computer storage medium having computer instructions stored thereon, which, when executed, implement a vehicle measurement data conversion and processing method as described above.
[0015] Those skilled in the art can understand that the present application has at least the following beneficial effects: The present application provides a vehicle measurement data conversion and processing method, system, device and medium, which can automatically parse the test data, extract each piece of data information in the test data, align it with the time axis, optimize the information variable name, generate the time series measurement data variables and automatically export them to the workspace of the application software simulation. Then, in the control model, the signal input module is automatically created according to the workspace variables and associated with the control model strategy module, so as to automatically introduce the vehicle collection data into the simulation test environment.
[0016] Specifically, 1. Automated processing: This application automatically obtains the channel group and channel group number of the mdf file corresponding to the CAN bus and traverses the channel signal units under each channel group to achieve automatic data collection. By generating unique identification names, creating temporary variables, aligning time series, etc., the measurement data is automatically imported into the matlab workspace, reducing manual operations.
[0017] 2. Improved work efficiency: Traditional data processing methods require engineers to manually compare signal variables and set up test environments, which is time-consuming and tedious. The method in this application can automatically complete these steps, improving work efficiency. Automated processing reduces human errors and improves data accuracy and reliability.
[0018] 3. Easy simulation analysis: This application can automatically add corresponding signal input modules and set associated variables in the application software to be simulated according to temporary variables in the matlab workspace. By extracting the time parameters in the matlab workspace, the simulation step size and simulation time parameters in the application software to be simulated are automatically adjusted, making the simulation analysis more convenient and accurate.
[0019] 4. Reduced costs: Automated processing reduces the need for manual operations, thereby reducing labor costs. Improving work efficiency and accuracy also indirectly reduces additional costs caused by errors or delays. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0021] Figure 1 It is a flow chart of a vehicle measurement data conversion and processing method provided in an embodiment of the present application.
[0022] Figure 2 It is a schematic diagram of the internal structure of a vehicle measurement data conversion and processing system provided in an embodiment of the present application.
[0023] Figure 3 It is a schematic diagram of the internal structure of a vehicle measurement data conversion and processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] It should be understood by those skilled in the art that the embodiments described below are only preferred embodiments of the present disclosure, and do not mean that the present disclosure can only be implemented through the preferred embodiments. The preferred embodiments are only used to explain the technical principles of the present disclosure, and are not used to limit the protection scope of the present disclosure. Based on the preferred embodiments provided by the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work should still fall within the protection scope of the present disclosure.
[0025] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0026] Data analysis is performed on files with extensions of dat or mdf that are recorded by CAN bus devices for current vehicle data collection. MDF (Measurement Data Format) is defined by the Automation and Measurement Systems Standards Association. Measurement data recorded by professional tools such as INCA and CANape are all in MDF format. INCA changed the file suffix to .dat, but it is still MDF in essence. Therefore, the analysis of measurement data is mainly the analysis of data in mdf format.
[0027] In this application, the matlab scripting language can be used to combine the above steps to realize the conversion and processing of vehicle measurement data. Matlab, as a mainstream tool for model-based development of application software, is convenient for the integration of tool chain software. The use of this scripting language for parsing can reduce the difficulty of generating and processing vehicle test data files, and is unified with application software development tools, thereby facilitating the development engineers to carry out the work of test data processing and simulation environment construction.
[0028] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0029] The embodiment provides a vehicle measurement data conversion processing method, such as Figure 1 As shown, the method provided in the embodiment of the present application mainly includes the following steps: Step 110: Obtain the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle.
[0030] It should be noted that the mdf value contains multiple channel groups, and each channel group has multiple channel information units.
[0031] Step 120, traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name for the current channel signal unit according to the channel group name and the channel signal unit name, assign the identification name to a character variable, and obtain a character variable set.
[0032] It should be noted that the unique identification name of the current channel signal unit is generated to avoid the problem of duplicate variable name errors for the same channel name in different channel groups.
[0033] In the above, according to the channel group name and the channel signal unit name, a unique identification name of the current channel signal unit is generated, and the identification name is assigned to a character variable, which can be specifically: Extract the name characters of the channel signal unit; retain only the preset character types in the name characters to obtain the initial channel signal unit name; wherein the preset character types include at least: uppercase and lowercase letters, underscores; and then generate a unique identification name for the current channel signal unit: in the form of channel group serial number + initial channel signal unit name; assign the identification name to the character variable ChannelLName.
[0034] Step 130, according to the number of channel signal units in the current channel group, traverse and read the measurement data of each channel signal unit in the current sampling period; create a temporary variable tempData of the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData.
[0035] It should be noted that measurement data consists of data series (data quantity) and time series (time quantity).
[0036] Step 140, according to the time quantity, the data in the temporary variable tempData read in the current sampling period is time-series aligned; the aligned temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read.
[0037] In some embodiments, according to the time quantity, the data in the temporary variable tempData read in the current sampling period is aligned in time series, which may be specifically: Read the time in the current temporary variable tempData to obtain the time at the initial moment; when the time at the initial moment is not 0, correct the time of the time series in the temporary variable tempData to start from time 0.
[0038] It should be noted that in the actual recorded test data, the read channel time series generally does not start from time 0, and sometimes the initial time has a large value, which is not convenient for subsequent data processing and simulation. Therefore, it is necessary to process the tempData.Time time series data obtained and correct the time series to start from time 0, with the sampling period unchanged.
[0039] Step 150, according to the temporary variable tempData in the matlab workspace, automatically add the corresponding signal input module in the application software to be simulated, and set the temporary variable tempData associated with each signal input module in the matlab workspace; replace the input interface module in the application software to be simulated with the signal input module with the same name.
[0040] In addition, after the above channel groups are looped through, the number of exported workspace variables and the variable names corresponding to each channel group are counted. At the same time, channel empty data or other problems in the conversion process are recorded in a log file and also output and displayed in the MATLAB window. As an example, the steps can be specifically as follows: Automatically count the number of temporary variables tempData and the names of temporary variables tempData imported into the matlab workspace; at the same time, obtain the empty data and data conversion problems generated when the temporary variable tempData is imported into the matlab workspace; output the number of temporary variables tempData, the names of temporary variables tempData, the empty data and data conversion problems and display them in the matlab window.
[0041] Step 160, extract the sampling time interval and maximum time parameter of the time quantity in the matlab workspace, and then adjust the simulation step size and simulation time parameters in the application software to be simulated, obtain the adjusted application software, run the application software, obtain test data through the input interface module, and then obtain the simulation result.
[0042] In addition, this application Figure 2 A vehicle measurement data conversion and processing system is provided in an embodiment of the present application. Figure 2 As shown, the system provided in the embodiment of the present application mainly includes: The acquisition component 210 is used to obtain the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle.
[0043] The character variable acquisition component 220 is used to traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, assign the identification name to the character variable, and obtain a character variable set.
[0044] The character variable obtaining component 220 includes an identification assigning unit, Used to extract the name characters of the channel signal unit; only retain the preset character types in the name characters to obtain the initial channel signal unit name; wherein the preset character types at least include: uppercase and lowercase letters, underscores; and then generate a unique identification name for the current channel signal unit: in the form of channel group number + initial channel signal unit name; assign the identification name to the character variable ChannelLName.
[0045] The temporary variable traversal acquisition component 230 is used to traverse and read the measurement data of each channel signal unit in the current sampling period according to the number of channel signal units in the current channel group; create a temporary variable tempData of the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData.
[0046] The data import component 240 is used to perform time series alignment on the data in the temporary variable tempData read in the current sampling period according to the time quantity; import the aligned temporary variable tempData into the matlab workspace, and update the name of the temporary variable tempData to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read.
[0047] The data import component 240 includes a time alignment unit for reading the time quantity in the current temporary variable tempData to obtain the time quantity at the initial moment; when the time quantity at the initial moment is not 0, the time quantity of the time series in the temporary variable tempData is corrected to start from time 0.
[0048] The module replacement component 250 is used to automatically add the corresponding signal input module in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and set the temporary variable tempData associated with each signal input module in the matlab workspace; replace the input interface module in the application software to be simulated with the signal input module with the same name.
[0049] The simulation component 260 is run to extract the sampling time interval and maximum time parameter of the time quantity in the matlab workspace, and then adjust the simulation step size and simulation time parameters in the application software to be simulated, obtain the adjusted application software, run the application software, obtain test data through the input interface module, and then obtain the simulation result.
[0050] The system also includes a workspace display component, which is used to automatically count the number of temporary variables tempData imported into the matlab workspace and the name of the temporary variable tempData; at the same time, obtain the empty data and data conversion problems generated when the temporary variable tempData is imported into the matlab workspace; and output and display the number of temporary variables tempData, the name of the temporary variable tempData, the empty data and the data conversion problems in the matlab window.
[0051] The above is a method embodiment of the present application. Based on the same inventive concept, the present application embodiment also provides a vehicle measurement data conversion and processing device. Figure 3 As shown, the device includes: a processor; and a memory on which executable codes are stored. When the executable codes are executed, the processor executes a vehicle measurement data conversion processing method as described in the above embodiment.
[0052] Specifically, the server obtains the channel group and the number of channel groups of the mdf file corresponding to the CAN bus in the vehicle; traverses the channel signal units under each channel group according to the number of channel groups; generates a unique identification name for the current channel signal unit according to the channel group name and the channel signal unit name, assigns the identification name to a character variable, and obtains a character variable set; according to the number of channel signal units in the current channel group, traverses and reads the measurement data of each channel signal unit in the current sampling period; creates a temporary variable tempData of the current channel signal unit in the current channel group, assigns the time amount of the measurement data to the time variable tempData.Time in tempData, and assigns the data amount of the measurement data to the data variable tempData.Data in tempData; according to the time amount, performs time series alignment on the data in the temporary variable tempData read in the current sampling period; and assigns the aligned The temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read; according to the temporary variable tempData in the matlab workspace, the corresponding signal input module is automatically added in the application software to be simulated, and the temporary variable tempData associated with each signal input module in the matlab workspace is set; the input interface module in the application software to be simulated is replaced with the signal input module with the same name; the sampling time interval and maximum time parameters of the time quantity in the matlab workspace are extracted, and the simulation step size and simulation time parameters in the application software to be simulated are adjusted to obtain the adjusted application software, run the application software, obtain the test data through the input interface module, and then obtain the simulation results.
[0053] In addition, an embodiment of the present application further provides a non-volatile computer storage medium on which executable instructions are stored. When the executable instructions are executed, a vehicle measurement data conversion and processing method as described above is implemented.
[0054] So far, the technical solutions of the present disclosure have been described in combination with the above multiple embodiments, but it is easy for those skilled in the art to understand that the protection scope of the present disclosure is not limited to these specific embodiments. Without departing from the technical principles of the present disclosure, those skilled in the art can split and combine the technical solutions in the above-mentioned various embodiments, and can also make equivalent changes or replacements to the relevant technical features. Any changes, equivalent replacements, improvements, etc. made within the technical concept and / or technical principle of the present disclosure will fall within the protection scope of the present disclosure.
Claims
1. A vehicle measurement data conversion and processing method, characterized in that: The method comprises: Get the channel group and channel group quantity of the mdf file corresponding to the CAN bus in the vehicle; Traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, assign the identification name to a character variable, and obtain a character variable set; According to the number of channel signal units in the current channel group, traverse and read the measurement data of each channel signal unit in the current sampling period; create a temporary variable tempData of the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData; According to the time quantity, the data in the temporary variable tempData read in the current sampling period are aligned in time series; the aligned temporary variable tempData is imported into the matlab workspace, and the name of the temporary variable tempData is updated to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read; According to the temporary variable tempData in the matlab workspace, the corresponding signal input module is automatically added to the application software to be simulated, and the temporary variable tempData associated with each signal input module in the matlab workspace is set; the input interface module in the application software to be simulated is replaced with the signal input module with the same name; Extract the sampling time interval and maximum time parameters of the time quantity in the matlab workspace, and then adjust the simulation step size and simulation time parameters in the application software to be simulated, obtain the adjusted application software, run the application software, obtain test data through the input interface module, and then obtain the simulation results.
2. The vehicle measurement data conversion and processing method according to claim 1, characterized in that: Generate a unique identification name for the current channel signal unit based on the channel group name and the channel signal unit name, and assign the identification name to a character variable, including: Extract the name characters of the channel signal unit; Only the preset character types in the name characters are retained to obtain the initial channel signal unit name; wherein the preset character types at least include: uppercase and lowercase letters, and underscores; Then generate the unique identification name of the current channel signal unit: the channel group number + the initial channel signal unit name; Assign the tag name to the character variable ChannelLName.
3. The vehicle measurement data conversion and processing method according to claim 1, characterized in that: According to the time quantity, the data in the temporary variable tempData read in the current sampling period is time-series aligned, including: Read the time in the current temporary variable tempData to obtain the time at the initial moment; When the time quantity at the initial moment is not 0, the time quantity of the time series in the temporary variable tempData is corrected to start from time 0.
4. The vehicle measurement data conversion processing method according to claim 1, characterized in that: Before automatically adding corresponding signal input modules in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and setting the temporary variable tempData associated with each signal input module in the matlab workspace, the method further comprises: Automatically count the number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData; At the same time, the temporary variable tempData is obtained to import the empty data and data conversion problems generated in the matlab workspace; The number of temporary variables tempData, the name of the temporary variable tempData, empty data and data conversion problems are output and displayed in the matlab window.
5. A vehicle measurement data conversion and processing system, characterized in that: The system comprises: Get component, used to get the channel group and channel group quantity of the mdf file corresponding to the CAN bus in the vehicle; The character variable acquisition component is used to traverse the channel signal units under each channel group according to the number of channel groups; generate a unique identification name of the current channel signal unit according to the channel group name and the channel signal unit name, assign the identification name to the character variable, and obtain a character variable set; The temporary variable traversal acquisition component is used to traverse and read the measurement data of each channel signal unit in the current sampling period according to the number of channel signal units in the current channel group; create a temporary variable tempData of the current channel signal unit of the current channel group, assign the time amount of the measurement data to the time variable tempData.Time in tempData, and assign the data amount of the measurement data to the data variable tempData.Data in tempData; The data import component is used to perform time series alignment on the data in the temporary variable tempData read in the current sampling period according to the time quantity; import the aligned temporary variable tempData into the matlab workspace, and update the name of the temporary variable tempData to the character variable name corresponding to the channel signal unit; until the measurement data of all channel signal units in all channel groups are read; The module replacement component is used to automatically add the corresponding signal input module in the application software to be simulated according to the temporary variable tempData in the matlab workspace, and set the temporary variable tempData associated with each signal input module in the matlab workspace; replace the input interface module in the application software to be simulated with the signal input module with the same name; Run the simulation component to extract the sampling time interval and maximum time parameters of the time quantity in the matlab workspace, and then adjust the simulation step size and simulation time parameters in the application software to be simulated, obtain the adjusted application software, run the application software, obtain test data through the input interface module, and then obtain the simulation results.
6. The vehicle measurement data conversion and processing system according to claim 5, characterized in that: The character variable acquisition component includes an identification assignment unit, Name characters used to extract channel signal units; Only the preset character types in the name characters are retained to obtain the initial channel signal unit name; wherein the preset character types at least include: uppercase and lowercase letters, and underscores; Then generate the unique identification name of the current channel signal unit: the channel group number + the initial channel signal unit name; Assign the tag name to the character variable ChannelLName.
7. The vehicle measurement data conversion and processing system according to claim 5, characterized in that: The data import component includes a time alignment unit, Used to read the time in the current temporary variable tempData to obtain the time at the initial moment; When the time quantity at the initial moment is not 0, the time quantity of the time series in the temporary variable tempData is corrected to start from time 0.
8. The vehicle measurement data conversion and processing system according to claim 5, characterized in that: The system also includes a workspace display component, Used to automatically count the number of temporary variables tempData imported into the matlab workspace and the names of the temporary variables tempData; At the same time, the temporary variable tempData is obtained to import the empty data and data conversion problems generated in the matlab workspace; The number of temporary variables tempData, the name of the temporary variable tempData, empty data and data conversion problems are output and displayed in the matlab window.
9. A vehicle measurement data conversion and processing device, characterized in that: The device comprises: processor; and a memory having executable codes stored thereon, which, when the executable codes are executed, enable the processor to execute the vehicle measurement data conversion and processing method according to any one of claims 1 to 4.
10. A non-volatile computer storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed, a vehicle measurement data conversion and processing method as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Matlab-based vehicle performance simulation and calculation method for automobile
CN106650059A
Data conversion method and device
CN113254412A
Frequency multiplier joint simulation method based on mdf file
CN114266150A
Signal visualization analysis processing method and system based on MATLAB / App Designer development
CN115658617A
Data conversion method and device, vehicle, electronic equipment and storage medium
CN118158294A
Cited By
Offline vehicle data preprocessing system and method
CN121658640A