A labview-based dynamically configurable data analysis and playback method

CN119960848BActive Publication Date: 2025-10-24CHINA SHIPBUILDING IND CORP NO 705 RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411958438.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-10-24
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

[0006]为解决现有数据解析展示工具的可扩展性较差、可视化设计缺乏交互能力的问题,本发明提出了一种基于labview可动态配置的数据解析回放方法,该方法能够支持用户根据不断变化需求自拟配置文件,进而通过用户自拟的配置文件动态的改变数据在可视化界面上的展示

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119960848B_ABST
    Figure CN119960848B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a data analysis playback method based on labview dynamic configuration, which comprises reading a user configuration file, generating a corresponding calling link according to a three-party data analysis program, and creating a corresponding man-machine interface interface; obtaining a data storage file required for playback and analysis; analyzing different types of cached data according to a data frame format, and classifying data according to a data message header; analyzing different message data according to data analysis parameters, generating a list display array and an image display array set, matching arrays in the image display array set according to image display configuration parameters, matching corresponding legends and data unit information to image arrays required to be displayed, and visually displaying the list display array and the image display array set. The method provides a user-configurable software interface, supports common data formats and custom data formats, and has diversified display effects.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data analysis and display, and particularly relates to a data analysis and playback method based on labview and capable of dynamic configuration. BACKGROUND

[0002] With the continuous iteration of SoC technology and distributed network technology, more and more industries and fields are undergoing digital transformation, and a large amount of valuable data is generated at the same time, so the demand for data analysis and display tools has also increased sharply.

[0003] With the continuous optimization of design tools, although the existing data analysis and display system has made great progress in data visualization and data analysis, there are still some deficiencies:

[0004] (1) The data analysis and display system designed at the beginning lacks consideration of the subsequent increase or decrease of user demand, and the responsible personnel of different projects are different. On this basis, the data analysis and visualization display system designed has relatively poor scalability, and is difficult to support the changing user demand or the demand of subsequent different projects. Therefore, it will lead to the repeated investment of manpower and material resources of the corresponding project on the data analysis and display software.

[0005] (2) Different users have different needs for visualization display. In order to cater to the needs of the users of the project, the data analysis and visualization display system is often customized with strong specificity, especially the design of visualization is single and lacks the ability to interact with users. The existing system often only provides some simple interactive functions such as zooming and panning, lacks more advanced interactive methods such as dynamic filtering and data correlation display, and limits the user's in-depth analysis of data. SUMMARY

[0006] In order to solve the problems of poor scalability and lack of interactive ability in the design of visualization of the existing data analysis and display tool, the present application provides a data analysis and playback method based on labview and capable of dynamic configuration. The method can support users to configure files according to changing needs, and dynamically change the display of data on the visualization interface through the user-configured configuration file.

[0007] The embodiment of the present application provides a data analysis and playback method based on labview and capable of dynamic configuration, which comprises the following steps:

[0008] Step 1: reading a user configuration file: obtaining a three-party data analysis program to be embedded, obtaining data analysis configuration parameters, image display configuration parameters, fixed-length data frame format and variable-length data frame format required for data analysis and playback;

[0009] Step 2: According to the three-party data analysis program, a corresponding call link is generated, and a corresponding man-machine interface is created, and the trigger state of the man-machine interface is detected in a loop, and if the trigger state is detected, the three-party data analysis program is automatically called and started;

[0010] Step 3: Obtain the data storage file required for playback and analysis, read different types of data respectively, and store the read data in the corresponding cache according to the category;

[0011] Step 4: Data segmentation, according to the fixed-length data frame format and the indefinite-length data frame format, the cached different types of data are parsed, the time information, the message header information and the message content information contained in the data are obtained, the data is classified according to the data message header, and different types of data are sorted according to the time information;

[0012] Step 5: Analyzing data messages, according to the data analysis parameters, different message data are parsed, a list display array and an image display array set are generated, and the arrays in the image display array set are matched according to the image display configuration parameters, and the image arrays that need to be displayed are matched to the corresponding legends and data unit information;

[0013] Step 6: Display data, visualize the list display array and the image display array set, and generate an image array checkbox, set an event trigger for the checkbox, and set the selected image data visible state through the trigger detection.

[0014] In some embodiments of the application, in step 1, the method specifically comprises:

[0015] The configuration file address selected by the user is obtained through the path dialog box, and two types of user configuration files are obtained, the two types of user configuration files including at least including an ini type data file capable of saving paired elements, and at least including an excel format file capable of saving a two-dimensional array;

[0016] In some embodiments of the application, in step 2, the method specifically comprises:

[0017] The configuration file reading is performed, wherein the at least including an ini type data file capable of saving paired elements is opened by the OpenDataConfig and ReadKey modules of labview and the program path value corresponding to the three-party program key name is obtained; wherein the at least including an excel format user configuration file is converted into a two-dimensional array form, and at least including a data analysis configuration parameter array and an image display parameter array are formed. Parameters required in the data analysis playback process are used;

[0018] After processing the above configuration file, a plurality of link buttons are generated according to the number of paths of the external data playback analysis system included in at least a data file of an ini type capable of saving paired elements;

[0019] The triggering state of the cycle detection button is detected, and it is judged according to the action whether to execute internal data analysis display or external data analysis display.

[0020] In some embodiments of the present application, in step 3, the method specifically comprises:

[0021] Through the interface interaction mode, the data file path input by the user is obtained, the number of data files under the path is obtained by searching the path, the files of different types of data are added to the corresponding category of data storage area, and the data segmentation module of the type of data is called.

[0022] In some embodiments of the present application, in step 4, the method specifically comprises:

[0023] It is judged whether the current data is the required data by matching the data frame header with a regular expression;

[0024] The data frame decomposition is executed, the fixed-length timestamp data segment, the message header data segment and the message content data segment are read according to the fixed-length data frame format in the data frame format, and the fixed-length timestamp data segment, the message header data segment and the message length data segment are read according to the variable-length data frame format in the data frame format, and the message content data segment is read according to the message length; wherein the fixed-length data frame format includes CAN, and the variable-length data frame format includes UDP.

[0025] The timestamp data segment, the message header data segment and the message content data segment decomposed above are combined into a data message and put into a data message queue in time sequence.

[0026] In some embodiments of the present application, in step 5, the method specifically comprises:

[0027] a) sequentially taking out data messages from the message queue;

[0028] b) the message header of the taken-out data message is compared with all instruction identifiers of the data analysis configuration parameter in sequence, if consistent, the current message is parsed according to the content of the configuration parameter where the corresponding instruction identifier is located, if all instruction identifiers of the data analysis configuration parameter are not matched, it is considered that the current message is invalid data;

[0029] c) judging whether to parse the names of all messages matched with the current instruction identifier according to the message header analysis flag;

[0030] d) judging whether to parse the message content of all messages matched with the current instruction identifier according to the message analysis flag;

[0031] The data valid bits are acquired, data text analysis or data value analysis is performed according to the data type, and the analysis result is added to a list display array or an image display array together with the time stamp of the message.

[0032] In some embodiments of the present application, in step 6, the method specifically comprises:

[0033] a) acquiring data of the list display array or the image display array;

[0034] b) judging whether to generate a check box corresponding to the image array according to a disable flag of the image display configuration parameter;

[0035] c) detecting whether view 0x (x∈[1, 4]) is selected by a user in a page cycle, and if selected, setting the first image display area as the view 0x;

[0036] d) detecting whether a check box corresponding to the image array is selected in a page cycle, and if selected, displaying all the images selected in the view area selected in step c).

[0037] In some embodiments of the present application, the user configuration file has a field corresponding relationship and a saving function.

[0038] The three-party data analysis program has a runnable environment, a program starting entrance, and a path where the program is located can be known.

[0039] In some embodiments of the present application, the fixed-length data frame format has a recognizable data frame start identifier;

[0040] The total length of each frame of data frame of the same type or protocol is a constant value, and the total length of each frame of data frame of different types or protocols can be different values;

[0041] Different types of data frames have different identifiers for distinguishing;

[0042] The indefinite-length data frame format has a recognizable data frame start identifier;

[0043] Each frame of data frame has a field for indicating the total length of the data frame;

[0044] Different types of data frames have different identifiers for distinguishing;

[0045] The data storage file can be read and recognized by a computer, and the stored data conforms to the fixed-length data frame format or the indefinite-length data frame format.

[0046] In some embodiments of the present application, the human-computer interface can be triggered by artificial means, and the interface triggering and non-triggering states can be perceived by software.

[0047] The image array checkbox can change the state of the checkbox through human-computer interaction, and the checked and unchecked states of the checkbox can be perceived by software.

[0048] Compared with the prior art, the beneficial effects of the labview-based dynamically configurable data analysis playback method provided by the embodiments of the present application are that: it supports dynamic calling of third-party data analysis playback software, and users can write the paths of special data playback software required by themselves into a configuration file. It first acquires the paths by reading the configuration file, realizes embedding of the special data playback software already existing for the user, and enters the corresponding playback module by monitoring the playback function selection button triggered by the user.

[0049] If the user selects the embedded existing special playback module, the external path corresponding to the control will be searched, and the external data playback system will be started.

[0050] If the user selects the data analysis playback function of the system, the user's self-proposed configuration file will be read first. In the file, the data format, type to be analyzed, visual interface list detail display flag, and visual interface image legend and display disable flag can be acquired. After that, the data is analyzed through the above file content, and the analysis result is displayed on the visual interface. At the same time, the visual interface can modify the data image display mode by means of the user's control operation information.

[0051] It provides a configurable software interface for the user, supports common data formats and custom data formats, and diversifies the display effects. BRIEF DESCRIPTION OF DRAWINGS

[0052] Figure 1 The flowchart of the labview-based dynamically configurable data analysis playback method provided by the embodiments of the present application is provided.

[0053] Figure 2 The user configuration file parameter field description and data frame format diagram in the labview-based dynamically configurable data analysis playback method provided by the embodiments of the present application are provided.

[0054] Figure 3 The data analysis configuration parameter reading implementation method diagram in the labview-based dynamically configurable data analysis playback method provided by the embodiments of the present application is provided.

[0055] Figure 4 The image display configuration parameter reading implementation method in the labview-based dynamically configurable data analysis playback method provided by the embodiments of the present application is provided.

[0056] Figure 5 The data segmentation flowchart in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application;

[0057] Figure 6 The data message analysis flowchart in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application;

[0058] Figure 7 The message header and instruction identification comparison flowchart in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application;

[0059] Figure 8 The message content analysis flowchart in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application;

[0060] Figure 9 The text list data display page diagram in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application;

[0061] Figure 10 The image data display page diagram in the data analysis and playback method based on the labview dynamic configuration provided by the embodiment of the application. DETAILED DESCRIPTION

[0062] In order to make the skilled in the art better understand the technical solutions of the present application, the present application will be described in detail below in combination with the drawings and specific embodiments.

[0063] The various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0064] These and other characteristics of the present application will become more apparent from the following description of the preferred forms given, by way of non-limiting example, with reference to the attached drawings.

[0065] It should also be understood that, while the present application has been described above with reference to specific embodiments, the skilled in the art will be able to determine many other equivalent forms of the present application, which have features as claimed and thus all fall within the protection scope defined thereby.

[0066] The above and other aspects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.

[0067] Specific embodiments of the application are described hereinafter with reference to the drawings; however, it will be understood that the application is not limited to the embodiments specifically disclosed, and as such can be carried out in various ways. Well-known and / or redundant functionality and structure are not described in detail to avoid obscuring the application in unnecessary detail. Accordingly, the detailed description of specific structural and functional details set forth herein are not intended to be limiting, but are merely presented as being representative of the application as a whole. It will be appreciated that structural and functional details set forth herein, in combination with the detailed description being presented in connection with one or more embodiments, can be used with other embodiments as structural and functional equivalents.

[0068] This specification can use phrases such as "in one embodiment", "in another embodiment", "in yet another embodiment", or "in other embodiments" which can refer to one or more of the same or different embodiments of the application.

[0069] The embodiment of the application provides a data analysis playback method based on labview which can be dynamically configured, as shown in the figure. Figures 1 to 10 The method realizes embedded calling of external data playback software, supports reading and analysis of multiple different formats of fixed-length or indefinite-length data files, and provides rich human interaction functions, such as dynamic modification of visual image list display items and coordinate value display. The method comprises the following steps.

[0070] Step 1: reading a user configuration file, obtaining a third-party data analysis program to be embedded, and obtaining data analysis configuration parameters, image display configuration parameters, fixed-length data frame format and indefinite-length data frame format required for data analysis playback;

[0071] Step 2: generating a corresponding calling link according to the third-party data analysis program, creating a corresponding human-computer interface, and cyclically detecting a trigger state of the human-computer interface; if the trigger state is detected, the third-party data analysis program is automatically called and started;

[0072] Step 3: obtaining a data storage file required for playback and analysis, reading different types of data respectively, and storing the read data into corresponding caches according to categories;

[0073] Step 4: data segmentation, analyzing the cached different types of data according to the fixed-length data frame format and the indefinite-length data frame format, obtaining time information, message header information and message content information contained in the data, classifying the data according to data message headers, and sorting different types of data according to time information;

[0074] Step 5: parsing data messages, parsing different message data according to the data parsing parameters for the sorted data, generating a list display array and an image display array set, and matching the array in the image display array set according to the image display configuration parameters, matching the corresponding legend and data unit information for the image array that needs to be displayed;

[0075] Step 6: display data, visualizing the list display array and the image display array set, and generating an image array checkbox, setting an event trigger for the checkbox, and setting the selected image data visible state by triggering detection

[0076] The user configuration file is easy to edit by hand, has a field correspondence, and has a saving function, and is a common and available data storage specification or format. The three-party data parsing program has a runnable environment and a program startup entry, and the program path can be known.

[0077] The fixed-length data frame format has a recognizable data frame start identifier. The total length of each data frame of the same type or protocol is a constant value, and the total length of each data frame of different types or protocols can be different. Different types of data frames have different identifiers for differentiation.

[0078] The variable-length data frame format has a recognizable data frame start identifier. Each data frame has a field indicating the total length of the data frame. Different types of data frames have different identifiers for differentiation.

[0079] The man-machine interface can be triggered by manual means. The interface trigger and non-trigger state can be sensed by software. The data storage file can be read and recognized by a computer. The stored data conforms to the data format of the fixed-length data frame format and the variable-length data frame format.

[0080] The image array checkbox can change the state of the checkbox through human-computer interaction. The checked and unchecked states of the checkbox can be sensed by software.

[0081] In order to facilitate the understanding of the above technical solutions, the following will be explained in conjunction with the drawings and specific examples as follows:

[0082] The specific implementation process of the data parsing playback system is shown in Figure 1 The specific steps are as follows:

[0083] (1) Read the user configuration file

[0084] First, the user-selected configuration file address is obtained through the path dialog box to obtain two types of user configuration files: ① ini type and other data files that can save paired elements (save the program entry or entry address of the external data analysis playback system); ②excel format and other files that can save two-dimensional arrays (configuration parameters required by the playback system).

[0085] Second, the configuration file is read: ① The ini file is opened by the OpenDataConfig and ReadKey modules of labview, and the value corresponding to the key name obtained from the third-party program is obtained; ② Convert the user configuration file (such as CSV format) into a table form, then parse the information field of different types of data and legend parameters (see Figure 2 “Data Analysis Configuration Parameters” and “Image Display Configuration Parameters”) through the CreateReport module, and save the information. The software implementation part is shown in Figure 3 and Figure 4 .

[0086] After processing the above configuration file, according to the path number of the external data playback analysis system in the ini file, generate multiple link buttons (including the internal data analysis playback module used by the system). Loop to detect the trigger state of the button, and determine whether to execute “internal data analysis display” or “external data analysis display” according to its action (the specific process of this module is shown in Figure 1 ).

[0087] (2) Classified reading of data files

[0088] First, the user-entered data file path is obtained through interface interaction, and the number of data files under the path is obtained by searching the path.

[0089] Then, the files of different types of data (including the data type of each frame of fixed-length data represented by the CAN protocol, and the data type of each frame of variable-length data represented by the UDP communication protocol) are added to the corresponding category data storage area and the data segmentation module of the type of data is called.

[0090] (3) Data segmentation

[0091] It is implemented through the data segmentation module, which mainly implements the segmentation of data by type, then re-packages the data into the data packet format required for subsequent analysis, and stores it in the corresponding data queue. The data segmentation module supports both fixed-length communication protocols and variable-length communication protocols (here, CAN and UDP data are taken as examples). The specific process is shown in Figure 5 .

[0092] First, the regular expression is used to match the data frame header to determine whether the current data is the required data. Then the data frame is decomposed: ① According to Figure 2 The CAN data frame format in the data frame format reads the fixed-length timestamp data segment, message header data segment, and message content data segment; ② According to Figure 2 The UDP data frame format reads a fixed-length timestamp data segment, a message header data segment, and a message length data segment, and then reads the message content data segment according to the message length.

[0093] Finally, the timestamp data segment, message header data segment, and message content data segment decomposed above are combined into a data message and put into a data message queue in chronological order.

[0094] (4) Data message analysis

[0095] The data message parsing part completes the parsing of the data queue in (3) through the configuration parameters pre-read in (1). The implementation of this part is divided into the data parsing part and the image array creation part.

[0096] Some steps of data analysis are as follows: Figure 6 As shown in "①", the specific steps are as follows:

[0097] a) Take out data packets from the packet queue in sequence.

[0098] b) The header of the data message is compared with all the instruction identifiers of the "data analysis configuration parameters" in turn (see Figure 7 ), if they are consistent, the message will be parsed according to the configuration parameter content where the corresponding instruction mark is located; if the instruction marks of all "data parsing configuration parameters" do not match, the message will be considered as invalid data.

[0099] c) Determine whether to parse the names of all messages matching the current instruction identifier according to the message header parsing flag.

[0100] d) Determine whether to parse the message contents of all messages matching the current instruction identifier according to the message parsing flag.

[0101] First, get the valid bits of the data, then perform data text parsing or data value parsing according to the data type, and add the parsing result and the timestamp of this message to the list display array or image display array (see the steps for details). Figure 8 ).

[0102] The steps to create an image array are as follows: Figure 6Middle ②. First, the "legend number" (the number of data frame types of the "data analysis configuration parameters" is consistent) is obtained, and the corresponding image cache XY array is created according to the "legend parameter name". Second, the numerical analysis result and the timestamp in the above d) are added to the image cache XY array.

[0103] (5) Data display

[0104] The data display part includes a text list data display page (as shown in Figure 9 ) and an image data display page (as shown in Figure 10 ).

[0105] The text list data display page is implemented by sequentially displaying the data of the list display array in the above (4) d) on a two-dimensional list, with the first column being the message time and the second column being the corresponding message analysis result.

[0106] The image data display page is implemented by the following steps:

[0107] a) Obtain the data of the image display array in the above (4) d).

[0108] b) According to the disabled flag of the "image display configuration parameter", determine whether to generate the corresponding image array checkbox (the checkbox is shown below). Figure 10

[0109] c) Page loop detects whether "view 0x" (x [1,4]) is selected by the user, and if selected, the first image display area is set to "view 0x".

[0110] d) Page loop detects whether the checkbox corresponding to the image array is selected, and if selected, all the selected images are displayed in the view area selected in step c).

[0111] The image data display page can change the reality of the image in real time according to the user's selection, support multiple view areas to display the same or different image data at the same time, and each image supports functions such as zooming in, zooming out, and panning. In addition, by moving the mouse in the image display area, the XY axis values of the current mouse position can be displayed in the lower right corner of the image display area.

[0112] Through the above technical solution, the beneficial effects of the data analysis playback method based on labview provided by the above embodiments of the present application are that it supports dynamic calling of third-party data analysis playback software, and users can write the path of the special data playback software they need into the configuration file. First, the path is obtained by reading the configuration file, realizing the embedding of the special data playback software already owned by the user; and by monitoring the playback function selection button triggered by the user, the corresponding playback module is entered.

[0113] ​If the user selects the embedded existing special playback module, the external path corresponding to the control is retrieved, and the external data playback system is started.

[0114] If the user selects the data analysis playback function of the system, the user's self- prepared configuration file is first read. In the file, the data format and type to be analyzed, the detailed and brief display flag of the visual interface list, and the visual interface image legend and its display disable flag can be obtained. After that, the data is analyzed according to the file content, and the analysis result is displayed on the visual interface. At the same time, the visual interface can modify the data image display mode by means of the user's control operation information.

[0115] It provides the user with a configurable software interface, supports common data formats and custom data formats, and diversifies the display effect.

[0116] The above examples are only exemplary embodiments of the present application and are not used to limit the present application, and the protection scope of the present application is defined by the claims. Those skilled in the art can make various modifications or equivalent replacements to the present application within the spirit and protection scope of the present application, and such modifications or equivalent replacements are also regarded as falling within the protection scope of the present application.

Claims

1. A dynamically configurable data analysis and playback method based on LabVIEW, characterized in that, The method comprises the following steps: Step 1: reading a user configuration file: obtaining a third-party data analysis program to be embedded, obtaining data analysis configuration parameters, image display configuration parameters, fixed-length data frame format and variable-length data frame format required for data analysis playback; Step 2: generating a corresponding call link according to the third-party data analysis program, and creating a corresponding man-machine interface interface, and cyclically detecting the trigger state of the man-machine interface interface, and if the trigger state is detected, automatically calling the link to start the third-party data analysis program; Step 3: obtaining a data storage file required for playback and analysis, reading different types of data respectively, and storing the read data into the corresponding cache according to the category; Step 4: data segmentation, according to the fixed-length data frame format and the variable-length data frame format, the cached different types of data are parsed, the time information, the message header information and the message content information contained in the data are obtained, the data is classified according to the data message header, and different types of data are sorted according to the time information; Step 5: analyzing data messages, according to the data analysis configuration parameters, different message data are parsed, list display arrays and image display array sets are generated, and the arrays in the image display array set are matched according to the image display configuration parameters, and the image arrays to be displayed are matched to the corresponding legends and data unit information; Step 6: displaying data, visualizing the list display array and the image display array set, and generating an image array checkbox, setting an event trigger for the checkbox, and setting the selected image data visible state through the trigger detection.

2. The method of claim 1, wherein, In step 1, the method specifically comprises: Obtaining the configuration file address selected by the user through a path dialog box, and obtaining two types of user configuration files, including at least an ini type data file capable of saving paired elements and at least an excel format file capable of saving two-dimensional arrays.

3. The method of claim 2, wherein, In step 2, the method specifically comprises: Reading the configuration file, wherein the ini type data file capable of saving paired elements is opened and the program path value corresponding to the third-party program key name is obtained through the OpenDataConfig and ReadKey modules of labview; wherein the user configuration file in excel format is converted into a two-dimensional array form, and at least data analysis configuration parameter arrays and image display parameter arrays required for data analysis playback are formed; After processing the above configuration file, a plurality of link buttons are generated according to the number of paths of the external data playback and analysis system in the ini type data file capable of saving paired elements; Cyclically detecting the trigger state of the button, and executing internal data analysis display or external data analysis display according to the action.

4. The method of claim 2, wherein, In step 3, the method specifically comprises: Through the interface interaction mode, the data file path input by the user is obtained, the number of data files under the path is obtained by searching the path, the files of different types of data are added to the corresponding category data storage area, and the data segmentation module of the type of data is called.

5. The method of claim 4, wherein, In step 4, the method specifically comprises: Judge whether the current data is the required data by matching the data frame header with the regular expression; Perform data frame decomposition, read the fixed-length timestamp data segment, the message header data segment and the message content data segment according to the fixed-length data frame format in the data frame format; read the fixed-length timestamp data segment, the message header data segment and the message length segment according to the variable-length data frame format in the data frame format, and read the message content data segment according to the message length; Merge the decomposed timestamp data segment, the message header data segment and the message content data segment into a data message and put it into the data message queue in time sequence.

6. The method of claim 5, wherein, In step 5, the method specifically comprises: a) sequentially take out the data message from the message queue; b) compare the message header of the taken-out data message with all instruction identifiers of the data analysis configuration parameter in sequence, if they are consistent, then continue to analyze the message according to the configuration parameter content corresponding to the instruction identifier, and if all instruction identifiers of the data analysis configuration parameter do not match, it is considered that the message is invalid data; c) judge whether to analyze the name of all messages matching the current instruction identifier according to the message header analysis flag; d) judge whether to analyze the message content of all messages matching the current instruction identifier according to the message analysis flag; Obtain the data valid bit, perform data text analysis or data value analysis according to the data type, and add the analysis result and the message timestamp to the list display array or the image display array.

7. The method of claim 6, wherein, In step 6, the method specifically comprises: a) obtain the data of the above list display array or image display array; b) judge whether to generate the checkbox of the corresponding image array according to the disable flag of the image display configuration parameter; c) page loop detects whether the view 0x (x∈[1,4]) is selected by the user, if selected, set the current image display area to the view 0x; d) page loop detects whether the checkbox corresponding to the image array is selected, if selected, display all selected images in the view area selected in step c).

8. The data analysis playback method based on LabVIEW and capable of dynamic configuration according to claim 1, wherein the user configuration file has a field corresponding relationship and a saving function; and the three-party data analysis program has a runnable environment and a program starting entry, and the path of the program can be known.

9. The data analysis playback method based on LabVIEW and capable of dynamic configuration according to claim 1, wherein the fixed-length data frame format has identifiable data frame starting marks; the total length of each data frame of the same type or protocol is a constant value, and the total length of each data frame of different types or protocols can be different values; different types of data frames have different identifiers for distinguishing; the variable-length data frame format has identifiable data frame starting marks. ​ ​ ​ ​ ​ ​ Each data frame has a field indicating the total length of the data frame; Different types of data frames have different identifiers available for distinguishing them; The data storage file can be read and recognized by a computer, and the stored data conforms to the fixed-length data frame format or the variable-length data frame format.

10. The dynamically configurable data parsing and playback method based on LabVIEW according to claim 1, characterized in that, The human-computer interface is an interface that can be triggered manually, and the triggered and untriggered states of the interface can be sensed by software; The image array checkbox can change the state of the checkbox through human-computer interaction, and the checked and unchecked states of the checkbox can be sensed by software.

Citation Information

Patent Citations

  • General analysis system and method for network protocol message of ship information system

    CN116708607A

  • Serial data receiving, analyzing and playback method and system based on LabVIEW

    CN117215988A