Analog board for data acquisition and acquisition system
By introducing a detection switch in the simulation board and controlling its switching, inputting and outputting test data, the problem of rapid and accurate fault detection on the simulation board is solved, the fault point is quickly located, and the stable operation of the data acquisition system is ensured.
Patent Information
- Application Number
- CN202511215080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2025-10-17
AI Technical Summary
In existing data acquisition systems, fault detection on analog boards cannot quickly and accurately locate the fault point, resulting in unstable system operation.
By introducing a detection switch into the simulation board, controlling it to execute the preset switching, connecting the functional module to be tested to the transmission path, inputting the test data and outputting the test results, and using the host computer to determine whether the module is faulty.
It realizes rapid and accurate fault detection of the analog board, can locate the fault point in time, and ensure the stable operation of the data acquisition system.
Smart Images

Figure CN120801997A_ABST
Abstract
Description
[0001] This application is a divisional application of a patent application with the application date of January 9, 2023, the application number of 202310026013.5, and the title of "Method for fault detection of analog board and related products thereof". TECHNICAL FIELD
[0002] The present disclosure generally relates to the technical field of fault detection of devices. More specifically, the present disclosure relates to a method for fault detection of an analog board for data acquisition, an analog board for data acquisition, a device for fault detection of an analog board for data acquisition, a computer-readable storage medium, and an acquisition system for data acquisition. BACKGROUND
[0003] A data acquisition system generally utilizes a detector to detect the transmission parameters of incident light such as X-rays, and makes corresponding judgments and executions according to the test results. In addition, an industrial camera for detection can also be used to detect the surface parameters of an object, and make corresponding judgments and executions according to the test results. In addition, other signals can also be detected, and the above-mentioned judgments and related operations can be performed according to the test results. For a linear detector, its length is generally only a few centimeters, and the pixel is 2.5mm / 1.6mm / 0.8mm / 0.4mm / 0.2mm / 0.1mm / 0.05mm. In a security inspection machine or a sorting device, especially a large sorting device or a concentrator, in order to ensure the yield requirement of sorting, several, dozens or even hundreds of linear detectors are cascaded to be able to detect and identify an object in a larger width range at the same time. Therefore, such a data acquisition system includes a plurality of cascaded detectors. 2.5mm / 1.6mm / 0.8mm / 0.4mm / 0.2mm / 0.1mm / 0.05mm. In a security inspection machine or a sorting device, especially a large sorting device or a concentrator, in order to ensure the yield requirement of sorting, several, dozens or even hundreds of linear detectors are cascaded to be able to detect and identify an object in a larger width range at the same time. Therefore, such a data acquisition system includes a plurality of cascaded detectors.
[0004] The existing data acquisition system is generally composed of one digital board and several analog boards. The digital board and the plurality of analog boards can be arranged in a straight line, a U shape, an L shape, etc. to form a line scan camera with different lengths, different resolutions, single / dual energy, which can be used for security inspection of luggage, food, and defect detection of tires, castings, and pipeline welds, and can also be used for garbage classification and industrial CT, etc., and is especially suitable for high-speed online detection occasions. Figure 1 An X-ray data acquisition system is shown in the figure as an example, which is an L-shaped camera formed by arranging one digital board card and several analog board cards in an L shape. The detector of each analog board card faces the X-ray source to ensure perpendicular incidence of X-rays. All analog board cards are arranged in an L shape, and the digital board card can be installed inside or outside the linear array composed of analog cards as needed. This scheme can be used in the field of luggage security inspection, etc.
[0005] The analog board in the data acquisition system usually includes a plurality of functional modules, and each functional module can forward instructions and data in turn when connected in series. Fault detection of these functional modules can ensure normal data processing of the analog board card, thereby ensuring normal operation of the data acquisition system. However, there is no device and method that can quickly and accurately detect the fault point.
[0006] Therefore, there is an urgent need to provide a method for fault detection of an analog board for data acquisition, an analog board for data acquisition, a device for fault detection of an analog board for data acquisition, a computer readable storage medium and an acquisition system for data acquisition, which can quickly and accurately locate the fault point of the analog board, thereby quickly and accurately locating the fault point of the acquisition system. SUMMARY
[0007] In order to at least solve one or more technical problems as mentioned above, the present disclosure proposes, in various aspects, a method for fault detection of an analog board for data acquisition, an analog board for data acquisition, a device for fault detection of an analog board for data acquisition, a computer readable storage medium and an acquisition system for data acquisition.
[0008] In a first aspect, the present disclosure provides a method for fault detection of an analog board for data acquisition, wherein the analog board includes a plurality of functional modules and a plurality of detection switches, the method comprising: controlling the detection switches to perform a preset switching so as to connect a functional module to be detected to a corresponding transmission path; inputting associated test data to the functional module connected to the corresponding transmission path to obtain a test result of the functional module to be detected, wherein the test result is used to determine whether the functional module to be detected has a fault; and outputting the test result through the corresponding transmission path so as to determine whether the functional module to be detected has a fault based on the test result.
[0009] In a second aspect, the present disclosure also provides an analog board for data acquisition, comprising: a plurality of functional modules, wherein each functional module operates to perform a corresponding function of the analog board; a plurality of detection switches, wherein each detection switch is connected with a corresponding functional module, and in the fault detection of the analog board, operates to connect a functional module to be detected to a corresponding transmission path by performing a preset switching; and an input-output interface, which operates to input associated test data to the functional module to be detected, and outputs a test result of the functional module to be detected through the corresponding transmission path, so as to determine whether the functional module to be detected has a fault based on the test result.
[0010] In a third aspect, the present disclosure also provides an apparatus for fault detection of an analog board for data acquisition, comprising: a processor; and a memory storing program instructions for fault detection of an analog board for data acquisition, which, when executed by the processor, cause the implementation of the method according to any one of the preceding embodiments.
[0011] In a fourth aspect, the present disclosure also provides a computer-readable storage medium for fault detection of an analog board for data acquisition, which stores program instructions for fault detection of an analog board for data acquisition, which, when executed by the processor, cause the implementation of the method according to any one of the preceding embodiments.
[0012] In a fifth aspect, the present disclosure also provides a collection system for data acquisition, comprising: a plurality of analog boards according to any one of the preceding embodiments, which are connected in series through respective input-output interfaces to realize step-by-step communication; and a host computer, which comprises: a host computer communication interface operating in communication connection with a first analog board of the plurality of analog boards to realize communication interaction with the plurality of analog boards; a host computer processor operating to control the plurality of analog boards via the host computer communication interface and to process data collected by the analog boards; and a graphical user interface operating to graphically display relevant information about the analog boards and processing results of the data via control of the host computer processor.
[0013] By the method for fault detection of an analog board for data acquisition, the analog board for data acquisition, the apparatus for fault detection of an analog board for data acquisition, the computer-readable storage medium and the collection system for data acquisition as provided above, the fault point of the analog board can be quickly and accurately located, so that the fault point of the collection system can be quickly and accurately located, thereby solving the problem that the analog board and the collection system cannot be accurately and quickly fault detected. BRIEF DESCRIPTION OF DRAWINGS
[0014] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0015] Figure 1 is a structural schematic diagram of a data collection system employing cascaded analog boards and digital boards;
[0016] Figure 2 shows a structural schematic diagram of a collection system for data acquisition;
[0017] Figure 3 FIG. 1 shows a structural schematic diagram of a collection system according to an embodiment of the present disclosure;
[0018] Figure 4 FIG. 2 shows a schematic flow chart of a method for fault detection of an analog board for data collection according to an embodiment of the present disclosure;
[0019] Figure 5 FIG. 2 shows a schematic flow chart of a method for fault detection of an analog board for data collection according to an embodiment of the present disclosure;
[0020] Figure 6 FIG. 3 is a structural schematic diagram of an analog board for data collection according to an embodiment of the present disclosure;
[0021] Figure 7 FIG. 4 is a structural block diagram of an apparatus for fault detection of an analog board for data collection according to an embodiment of the present disclosure;
[0022] Figure 8 FIG. 1 shows a structural schematic diagram of a collection system according to an embodiment of the present disclosure;
[0023] Figures 9a-9c FIG. 6 is a schematic diagram of a fault detection interface according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0024] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure. Based on the embodiments in the present disclosure, any other embodiments obtained by those skilled in the art without creative work fall within the scope of the present disclosure.
[0025] It should be understood that the terms “comprising” and “including” used in the specification and claims of the present disclosure indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0026] It should also be understood that the terms used in the specification of the present disclosure are only for the purpose of describing specific embodiments, and are not intended to limit the present disclosure. As used in the specification and claims of the present disclosure, the singular forms “a”, “an” and “the” are intended to include the plural forms, unless the context clearly indicates otherwise. It should be further understood that the term “and / or” used in the specification and claims of the present disclosure means any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0027] The specific embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. In order to clearly describe the scheme of the embodiments of the present disclosure, the infrastructure and principles of the acquisition system for data acquisition are first described herein. Figure 2
[0028] Figure 2 The structure of the connection of a plurality of functional modules in the analog board is shown in FIG. 2. As shown in FIG. 2, the acquisition system 200 can include an analog board 201 and a host computer 202, and the analog board 201 can include three functional modules connected in sequence, which can be the first functional module 210, the second functional module 211 and the detection module 212 shown in the figure. Among them, the detection module 212 can be used to detect incident light (such as X-ray) and obtain related data (such as X-ray data), and the second functional module 211 and the first functional module 210 can sequentially process the data and transmit the processed signal to the host computer 202 for further analysis and processing. Figure 2
[0029] In the acquisition system 200, the first functional module 210 can be in communication with the line 4 and the line 5, the second functional module 211 can be in communication with the line 1 and the line 4, and the detection module 212 can be in communication with the line 1. Through the connection, the detection module 212, the second functional module 211, the first functional module 210 and the host computer 202 can be connected to the normal working path for data acquisition.
[0030] The functions of the first functional module 210 and the second functional module 211 can be specifically set according to the data processing mode of the acquisition system 200. For example, the first functional module 210 can include a processor module that can control and process data. The processor module can use, for example, an FPGA module. Further, it can use an FPGA module with a high-speed serial transceiver. Through the module, fast data processing and control can be performed. The second functional module 211 can include an analog-to-digital conversion module (ADC module), and the detection module 212 can include a detector.
[0031] When the first functional module 210 includes an FPGA module, the second functional module 211 includes an ADC module, and the detection module 212 includes a detector, during data acquisition, the detector can receive incident light and convert it into a weak current signal and integrate the current signal to form a voltage signal. Then the ADC module can digitize it to form a digital signal carrying data. Next, the FPGA module can process the digitized data to obtain the original value of the measured signal. Further, the FPGA module can transmit the processed data to the host computer 202 in the form of a data packet. After receiving the data transmitted by the analog board, the host computer 202 can further process it.
[0032] In addition, the simulation board 201 can also receive various instructions (for example, fault test instructions and data acquisition instructions of the simulation board) issued by the host computer 202. After receiving the instructions issued by the host computer 202, the simulation board 201 can perform fault detection and data acquisition according to the instructions.
[0033] It can be understood that the structure of the acquisition system 200 is only exemplary and not limited. According to different needs, a person skilled in the art can select different numbers (for example, 2, 4 or 5) and different functions of functional modules. In addition, each functional module in the simulation board 201 can also be connected in parallel. Further, the acquisition system can be used for collecting data of other types in addition to the optical signal data of X-ray, such as one or more of vibration data, pressure data and temperature data.
[0034] Figure 3 Further shown in Figure 2 is an acquisition system 300 for performing fault detection of the present disclosure, which improves the acquisition system 200 in Figure 2 . The same or similar structures in the acquisition system 200 can refer to the description of the acquisition system 200 in the foregoing, which will not be described here.
[0035] As shown in Figure 3 , in addition to the first functional module 310, the second functional module 311 and the detection module 312, the simulation board 301 can also include a plurality of detection switches. Based on different application scenarios, the number of detection switches can be equal to or different from the number of functional modules (for example, less than or more than the number of functional modules), Figure 3 an exemplary case where the number of detection switches is equal to the number of functional modules is shown in
[0036] In order to connect the functional modules to the test data source for fault detection, each functional module except the detection module 312 can also include a third line. As shown in Figure 3 , the first detection switch 313 and the second detection switch 314 can each include a fixed end and a movable end. The fixed end can be connected to the line of the corresponding functional module close to the host computer, and the movable end can be switched between the other two lines of the functional module to realize the switching of the transmission path.
[0037] As shown in Figure 3As shown in FIG, the third line corresponding to the first functional module 310 is line 3. One end of this line is used to connect to the first test data source 315. The fixed end of the first detection switch 313 can be connected to line 5, and its movable end can switch between line 4 and line 3, thereby switching the transmission path. The third line corresponding to the second functional module 311 is line 2. One end of this line is used to connect to the second test data source. The fixed end of the second detection switch 314 can be connected to line 4, and its movable end can switch between lines 1 and 2, thereby switching the transmission path. In this case, the detection switch can be a single-pole double-throw switch.
[0038] Figure 4 A schematic flow chart of a method 400 for fault detection on an analog board for data acquisition according to an embodiment of the present disclosure is shown.
[0039] like Figure 4 As shown in , the method 400 may include, at step S401, controlling the detection switch to perform a preset switch so as to connect the function module to be detected to the corresponding transmission path. Figure 3 The acquisition system 300 is used as an example to illustrate the method of connecting functional modules to corresponding transmission paths. To describe the working principle of the acquisition system 300, the figure also shows a first data source 315 and a second test data source 316.
[0040] For the first functional module 310, the first detection switch 313 can be controlled to connect lines 3 and 5 (eg Figure 3 The second detection switch 2 connects lines 1 and 4 or connects lines 2 and 4 (as shown in the solid line). Figure 3 The connection relationship shown by the solid line in the middle) is that the position of the moving end is not restricted at this time, so that the first functional module 310 is connected to the first transmission path formed by lines 3 and 5.
[0041] For the second functional module 311, the first detection switch 313 can be controlled to connect lines 4 and 5 (eg Figure 3 The second detection switch 2 connects lines 2 and 4, thereby allowing the second functional module 311 to be connected to the second transmission path formed by lines 2, 4 and 5.
[0042] When the first functional module 310 comprises a processor module, the first test data source 315 can be a Device test test data source; when the second functional module 311 comprises a processor module, the second test data source 316 can be an Asic test test data source. The Asic test test data source and the Device test test data source have artificially preset characteristics, and when the two kinds of data are used as test data, the host computer 302 can accurately identify the correctness of the test data, so as to accurately determine whether the first functional module 310 and the second functional module 311 are faulty.
[0043] For the detection module 312, the first detection switch 313 can be controlled to connect lines 4 and 5, and the second detection switch 314 can be controlled to connect lines 1 and 4, so that the detection module 312 is connected to the third transmission path composed of lines 1, 4 and 5.
[0044] In order to facilitate simple control, the working mode for detecting faults of each functional module can be preset and the corresponding mode instruction can be configured, so that the line switching operation for detecting faults can be controlled by the mode instruction. As shown in the simulation board 301 in Figure 3 , three working modes can be set, wherein the first working mode is used for line switching of the first functional module 310 (corresponding to the first mode instruction), the second working mode is used for line switching of the second functional module 311 (corresponding to the second mode instruction), and the third working mode is used for line switching of the detection module 312 (corresponding to the third mode instruction).
[0045] Based on this, the simulation board 301 can receive a mode instruction for controlling the multiple detection switches to perform a preset switching, wherein different mode instructions correspond to different preset switchings, and the switching of the multiple detection switches is controlled according to the mode instruction, so as to connect the functional module to be detected to the corresponding transmission path.
[0046] In the embodiment shown in Figure 3 , in response to receiving the first mode instruction for detecting the first functional module 310, the simulation board 301 can control the first detection switch 313 and the second detection switch 314 to perform a first preset switching, so as to connect the first functional module 310 to the first transmission path. The first preset switching here can be to connect the first detection switch 313 to lines 3 and 5, and to connect the second detection switch 314 to lines 2 and 4 or to lines 1 and 4. At this time, the first test data can be input to the first functional module 310 to obtain the first test result of the first functional module 310. In addition, the first test result can be output through the first transmission path, so as to determine whether the first functional module 310 has a fault based on the first test result.
[0047] Similarly, the simulation board 301 can perform a second preset switching on the first detection switch 313 and the second detection switch 314 in response to receiving a second mode instruction for detecting the second functional module 311, so as to connect the second functional module 311 to the second transmission path. The second preset switching can be to connect the first detection switch 313 to the lines 4 and 5, and to connect the second detection switch 314 to the lines 2 and 4. At this time, the second test data can be input to the second functional module 311 to obtain a second test result of the second functional module 311. In addition, the second test result is output through the second transmission path, so as to determine whether the second functional module 311 has a fault based on the second test result.
[0048] It can be understood that when the functional modules of the simulation board are connected in series, the first functional module and the second functional module can be continuously executed, for example, for the simulation board 301 shown in FIG. 3, after the fault detection of the first functional module 310 is performed and it is determined that the first functional module 310 is normal, the fault detection of the second functional module 311 can be directly performed. Figure 3 In the embodiment shown in FIG. 3, the mode instruction can be sent in the functional modules by the host computer 302 in the acquisition system. As shown in FIG. 3, the mode instruction can be sent to the first functional module 310 through the first transmission path, and the second functional module 311 through the second transmission path. Figure 3 In the embodiment shown in FIG. 3, the mode instruction can be sent in the functional modules by the host computer 302 in the acquisition system. As shown in FIG. 3, the mode instruction can be sent to the first functional module 310 through the first transmission path, and the second functional module 311 through the second transmission path. Figure 3 As shown in FIG. 3, the functional modules can further include a detection module 312 for acquiring data by detection. At this time, the mode instruction can further include a third mode instruction. The simulation board 301 performs a third preset switching on the first detection switch 313 and the second detection switch 314 in response to receiving the third mode instruction for detecting the detection module 312, so as to connect the detection module 312 to the third transmission path. The third preset switching can be to connect the first detection switch 313 to the lines 4 and 5, and to connect the second detection switch 314 to the lines 1 and 4. At this time, the detection module 312 can be controlled to acquire data, and whether the detection module 312 has a fault can be determined according to the acquired data.
[0049] After the method of connecting the functional module to the corresponding transmission path is described, it is now continued to FIG. 4. Figure 4 At step S402, the method 400 can input the associated test data to the functional module connected to the corresponding transmission path to obtain a test result of the functional module to be detected, wherein the test result can be used to determine whether the functional module to be detected has a fault. For example, when the first functional module 310 is connected to the first transmission path, the first test data can be input thereto, and when the second functional module 311 is connected to the second transmission path, the second test data can be input thereto. When the detection module 312 is connected to the third transmission path, data is acquired.
[0050] Then, at step S403, the method 400 can output the test result to the corresponding transmission path, so as to determine whether the functional module to be detected has a fault based on the test result. In an embodiment, the test result can be output to the host computer directly or indirectly connected to the simulation board through the corresponding transmission path, so that the host computer determines whether the functional module to be detected has a fault based on the test result. The corresponding transmission path here can be the transmission path corresponding to each functional module, for example, the first transmission path corresponding to the first functional module 310, the second transmission path corresponding to the second functional module 311, and the third transmission path corresponding to the detection module 312.
[0051] For the first functional module 310 in the simulation board 301, it can directly output its first test result to the host computer 302 through the first transmission path, and the second functional module 311 can forward the second test result to the host computer 302 through the second transmission path, and the detection module 312 can forward the third test result (the fault test result of the detection module 312) to the host computer 302 through the third transmission path. Figure 3
[0052] When the functional modules in the simulation board are connected in series, the fault detection of the simulation board can be performed in the following manner. Still taking the simulation board 301 in the acquisition system 300 in the embodiment as an example, first, the first functional module 310 is connected to the first transmission path, and the first test result is obtained through operation and transmitted to the host computer 302. Then, the host computer 302 can determine whether the first test result meets the expectation; if yes, it is determined that the first functional module 310 is normal; correspondingly, if the first test result does not meet the expectation, it is determined that the first functional module 310 has a fault. Figure 3 When it is determined that the first functional module 310 is normal, the second functional module 311 is connected to the second transmission path, and the second test result is obtained through operation and transmitted to the host computer 302. Then, the host computer 302 can determine whether the second test result meets the expectation; if yes, it is determined that the second functional module 311 is normal; correspondingly, if the second test result does not meet the expectation, it is determined that the second functional module 311 has a fault.
[0053] When it is determined that the second functional module 311 is normal, the detection module 312 is further connected to the third transmission path, and the third test result is obtained through operation and transmitted to the host computer 302. Then, the host computer 302 can determine whether the third test result meets the expectation; if yes, it is determined that the detection module 312 is normal; correspondingly, if the third test result does not meet the expectation, it is determined that the detection module 312 has a fault.
[0054] The following disclosure takes the simulation board 301 in the acquisition system 300 in the embodiment as an example.
[0055] Figure 3 The first function module 310 in the figure is an FPGA module, the second function module 311 is an ADC module, and the detection module 312 is a detector Figure 5 The fault detection method of the analog board 301 is described in detail. Figure 5 A schematic flow chart of a method for fault detection of an analog board for data collection is shown according to an embodiment of the present disclosure. As shown in the figure, Figure 5 As shown in the figure, at step 501, the working mode of the analog board 301 is first configured as the Device Test mode, at this time, the FPGA module is connected to the first transmission path, and Device test test data is transmitted to the FPGA module. At step 502, the analog board 301 collects data and performs fault detection to obtain a first test result. Then, at step 503, it is determined whether the first test result is normal. If it is determined that the first test result is not normal, step 504 is entered to determine that the FPGA module is faulty. If the first test result is normal, step 505 is entered.
[0056] At step 505, the working mode of the analog board 301 is configured as the Asic Test mode, at this time, the ADC module is connected to the second transmission path, and Asic test test data is transmitted to the ADC module. At step 506, the analog board 301 collects data and performs fault detection to obtain a second test result. Then, at step 507, it is determined whether the first test result is normal. If it is determined that the second test result is not normal, step 508 is entered to determine that the ADC module is faulty. If the second test result is normal, step 509 is entered.
[0057] At step 509, the working mode of the analog board 301 is configured as the Normal mode, at this time, the detector is connected to the third transmission path, and the detector is controlled to collect data. At step 510, the detector collects data and performs fault detection to obtain a third test result. Then, at step 511, it is determined whether the third test result is normal. If it is determined that the third test result is not normal, step 512 is entered to determine that the detector is faulty. If the third test result is normal, step 513 is entered to determine that the analog board 301 is normal. Thus, the present disclosure can determine whether each function module is normal, thereby accurately locating the fault point of the analog board 301.
[0058] In one embodiment, the test result of each function module can include the test data itself, and the host computer can store target data corresponding to each test data, for example, when the test data source includes a Device test test data source and an Asic Test test data source, the host computer can pre-store Device test target data and Asic Test target data. In this way, the host computer can compare the test data with the target data to determine whether the test data is normal. Figure 3In the collection system 300 shown, when the host computer 302 receives the test data (first test result) of Device test transmitted by the first transmission path, it can compare the test data with the pre-stored Device test target data. If the two do not match, it indicates that the first functional module 310 has failed. If the two match, it indicates that the first functional module 310 is normal. The judgment methods of other functional modules are similar, and will not be described one by one here.
[0059] As can be seen from the above description, the method of the embodiments of the present disclosure can detect faults of each functional module in the analog board, so that the fault point of the analog board can be quickly and accurately located, thereby solving the problem that the analog board cannot be accurately and quickly detected.
[0060] In the above, only the fault detection method of the analog board including three functional modules is described by taking Figure 3 as an example. It can be understood that a person skilled in the art can also detect faults of an analog board including more or fewer functional modules in a similar manner, which will not be described in detail here.
[0061] In the above, the fault detection method of the analog board of the collection system is described in combination with multiple embodiments. In the following, the analog board for executing the above method will be described in detail in combination with multiple embodiments.
[0062] As can be seen from the above description of the embodiments, the analog board can include multiple functional modules, multiple detection switches and an input and output interface. Based on different application scenarios, the number of functional modules can be different, for example, 3 or 4, and the number of detection switches can be equal to or different from (for example, less than or more than) the number of functional modules.
[0063] Figure 6 is a structural schematic diagram of an analog board 601 for data collection according to the embodiments of the present disclosure. In order to describe the relationship between the analog board 601, the host computer and the test data source, the host computer 602, the first test data source 615 and the second test data source 616 are also shown in the figure. As shown in Figure 6 , the analog board 601 can include three functional modules, i.e., a first functional module 610, a second functional module 611 and a detection module 612, and further include a first detection switch 613 and a second detection switch 614. In addition, the first functional module 610 can include a processor module (for example, an FPGA module), the second functional module 611 can include an analog-to-digital conversion module (ADC module), and the detection module 612 can include a detector. Since the structures of Figure 6 and Figure 3 are similar, the description of Figure 3 in the foregoing also applies to Figure 6 .
[0064] In one embodiment, each of the plurality of detection switches can be connected with a corresponding functional module, and in the fault detection of the simulation board, the functional module to be detected is connected to the corresponding transmission path by performing a preset switching. As shown in Figure 6 , the first detection switch 613 is connected with the first functional module 610, and the second detection switch 614 is connected with the second functional module 611. The way of connecting the functional module to be detected to the corresponding transmission path by performing a preset switching has been described in detail in the foregoing embodiments shown in Figure 3 and Figure 4 , which will not be repeated here.
[0065] In one embodiment, the input and output interface described above can be operated to input the associated test data to the functional module to be detected, and output the test result of the functional module to be detected through the corresponding transmission path, so as to determine whether the functional module to be detected has a fault based on the test result. In the simulation board 601 shown in Figure 6 , the input and output interface connected with the line 3, the input and output interface connected with the line 2, and the input and output interface in communication with the light receiving end of the detection module 612 are the input and output interfaces of the simulation board 601 for transmitting test data. The first test data source 615 and the second test data source 616 can input the first test data and the second test data to the first functional module 610 and the second functional module 611 through the corresponding input and output interfaces, and the incident light can be transmitted to the detection module 612 through the input and output interface of the simulation board 601 in communication with the light receiving end of the detection module 612.
[0066] In one embodiment, the input and output interface can be operated to output the test result to the host computer 602 directly or indirectly connected with the simulation board 601 through the corresponding transmission path, so that the host computer 602 determines whether the functional module to be detected has a fault based on the test result. The corresponding transmission path here can be the first transmission path corresponding to the first functional module 610, the second transmission path corresponding to the second functional module 611, and the third transmission path corresponding to the detection module 612.
[0067] For the first functional module 610 in Figure 6 , it can directly output its first test result to the host computer 602 through the first transmission path, and the second functional module 611 can forward the second test result to the host computer 602 step by step through the first functional module 610, and the detection module 612 can forward the third test result (the fault test result of the detection module 612) to the host computer 602 step by step through the second functional module 611 and the first functional module 610.
[0068] It can be known from the foregoing description that the simulation board 601 with the corresponding control mode can detect faults of each functional module, so that the fault point of the simulation board 601 can be quickly and accurately located, thereby solving the problem that the simulation board 601 cannot be accurately and quickly detected.
[0069] It can be known from the foregoing description of the embodiment that the working mode of the simulation board can be set to correspond to the fault detection mode of the corresponding functional module. As shown in Figure 6 The plurality of functional modules can include a first functional module 610, which can operate to control the detection switch to perform a preset switching according to different mode instructions (such as a first mode instruction and a second mode instruction), so as to connect the functional module to be detected to the corresponding transmission path. Different mode instructions correspond to different predetermined switching.
[0070] For example, the first functional module 610 can control the first detection switch 613 to connect lines 3 and 5 and control the second detection switch 614 to connect lines 2 and 4 or lines 1 and 4 according to the first mode instruction, so that the first functional module 610 can be connected to the first transmission path. In addition, the first functional module 610 can control the first detection switch 613 to connect lines 4 and 5 (as shown by the solid line in the figure) and control the second detection switch 614 to connect lines 2 and 4 (as shown by the solid line in the figure) according to the second mode instruction, so that the second functional module 611 can be connected to the second transmission path. As can be seen, in this embodiment, the first functional module 610 can control the first detection switch 613 and the second detection switch 614 to switch through the control function, so that the switching of the transmission path can be performed. The first functional module 610 can include but is not limited to various modules with control and processing functions, such as an FPGA module.
[0071] In order to facilitate quick data reading operation and improve the switching speed of the simulation board, in the embodiment shown in Figure 6 The simulation board 601 can further include a mode instruction register 617 operable to receive and store mode instructions (such as the first mode instruction and the second mode instruction described above), and the first functional module 610 can be operable to control the switching of the plurality of detection switches (such as the two detection switches described in the figure) according to the mode instructions stored in the mode instruction register 617, so as to connect the functional module to be detected to the corresponding transmission path.
[0072] In Figure 6In the embodiment shown, the plurality of functional modules can further include a second functional module 611, the plurality of detection switches can include the aforementioned first detection switch 613 and the second detection switch 614, and the associated test data can include first test data for detecting the first functional module 610 and second test data for detecting the second functional module 611.
[0073] The mode instruction can include a first mode instruction and a second mode instruction, wherein the first functional module 610 can be operated to connect the first functional module 610 to the first transmission path according to the first mode instruction, and control the input of the first test data to the first functional module 610, so as to output the first test result through the first transmission path.
[0074] For example, the first functional module 610 can connect the first functional module 610 to the first transmission path according to the first mode instruction, and control the first test data source 615 to input the first test data to the first functional module 610 through the first transmission path (for example, when the first functional module 610 includes an FPGA module, it can receive the Device test test data sent by the first data source 615), and output the first test result through the first transmission path. Similarly, the second functional module 611 can be connected to the second transmission path according to the second mode instruction, and the second test data can be input to the second functional module 611, so as to output the second test result through the second transmission path. For example, the second functional module 611 can connect the second functional module 611 to the second transmission path according to the second mode instruction, and control the second test data source 616 to input the second test data to the second functional module 616 through the second transmission path (for example, when the second functional module 611 includes an analog-to-digital conversion module, it can receive the Asic test test data sent by the second data source 616), and output the second test result through the second transmission path.
[0075] It can be understood that when the plurality of functional modules of the analog board are connected in series, the first functional module and the second functional module can be continuously executed, for example, after the fault detection of the first functional module is executed and it is determined to be normal, the fault detection of the second functional module is directly executed. Figure 6 In the embodiment shown, the mode instruction can be sent by the upper computer 602.
[0076] In order to detect the incident light, so as to obtain the collected signal to be processed, such as Figure 6As shown in the foregoing, the plurality of functional modules can further include a detection module 612 for collecting data by detection. Based on this, the mode instructions can further include third mode instructions, wherein the processor module can operate to perform third preset switching on the first detection switch and the second detection switch according to the third mode instructions, so as to connect the detection module to the third transmission path. For example, in the third mode, the processor module can connect the detection module 612 to line 1, the second functional module to line 1 and 4, and the first functional module to line 4 and 5, that is, the line formed by line 1, 4 and 5 is the third transmission path, and the detection module can be connected to the third transmission path at this time. Figure 6 In the third mode, the processor module can connect the detection module 612 to line 1, the second functional module to line 1 and 4, and the first functional module to line 4 and 5, that is, the line formed by line 1, 4 and 5 is the third transmission path, and the detection module can be connected to the third transmission path at this time.
[0077] Figure 7 is a structural block diagram of the device 700 for fault detection of an analog board for data collection according to an embodiment of the present disclosure.
[0078] As shown in the foregoing, the device 700 of the present disclosure can include a processor 701 and a memory 702, wherein the processor 701 and the memory 702 communicate with each other through a bus 703. The memory 702 stores program instructions for fault detection of an analog board for data collection, and when the program instructions are executed by the processor 701, the method steps described in the foregoing are implemented. Figure 7 In the third mode, the processor module can connect the detection module 612 to line 1, the second functional module to line 1 and 4, and the first functional module to line 4 and 5, that is, the line formed by line 1, 4 and 5 is the third transmission path, and the detection module can be connected to the third transmission path at this time.
[0079] According to the foregoing description, it can be known that the device according to the embodiments of the present disclosure can detect faults of each functional module in the analog board, so that the fault point of the analog board can be quickly and accurately located, thereby solving the problem that the analog board cannot be accurately and quickly detected.
[0080] Those skilled in the art can understand that all or part of the steps of the foregoing method embodiments can be completed by program instructions related to hardware, and the foregoing program can be stored in a computer readable storage medium, and the program executes the steps of the foregoing method embodiments when executed.
[0081] Through the foregoing description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware. Based on such understanding, the foregoing technical solutions can be embodied in the form of software products, and the computer software products can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and include a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.
[0082] It can be understood that the acquisition system in the present solution can include one analog board or multiple analog boards. The present solution will be described below in combination with Figure 8 、 Figure 9a 、 Figure 9b and Figure 9c an acquisition system for data acquisition including multiple analog boards connected in series.
[0083] As shown in Figure 8 , the acquisition system can include n analog boards (such as analog board 821, analog board 822, analog board 823, …, analog board 82n) according to any of the preceding embodiments and a host computer 830.
[0084] In an embodiment, the n analog boards described above can be connected in series through respective input-output interfaces to realize step-by-step communication. n can be a natural number greater than or equal to 2. The specific number of analog boards can be set according to requirements, for example, it can be 3, 4, or 5, etc. The structure and working principle of the analog board have been described in detail in the foregoing in combination with multiple embodiments, and will not be described in detail here. In the present embodiment, the n analog boards can be connected in series through a serial interface for information interaction between the n analog boards, such as forwarding of instructions and data.
[0085] In an embodiment, the host computer 830 can include a host computer communication interface, a host computer processor, and a graphical user interface. The host computer communication interface can be in communication connection with the first analog board of the n analog boards described above to realize communication interaction with the n analog boards. The host computer communication interface can include a wired communication interface (such as a fiber interface or a USB interface) and / or a wireless communication interface (such as a WIFI interface). The first analog board can sequentially forward various instructions issued by the host computer 830 to other analog boards through communication interaction with the host computer, and transmit the acquisition data and test results sequentially forwarded by the multiple analog boards to the host computer 830.
[0086] In an embodiment, the host computer processor described above can control the n analog boards via the host computer communication interface and perform data processing on the data collected by the analog boards. Here, the host computer processor can control the fault detection of the n analog boards, for example, it can control sending of various mode instructions to each analog board and receiving of the test results returned by each analog board. The specific processing method of data processing on the data collected by the analog boards can be set according to the specific requirements of the acquisition system, for example, it can be analyzed and displayed, etc.
[0087] As can be known from the foregoing embodiment description, different mode instructions can be sent to the analog board to make its different functional modules perform fault detection. Based on this, Figures 9a-9cAs shown, there can be options on the software interface regarding the working modes, and the user can generate and send the corresponding mode instructions of each simulation board by manipulating the tabs. It can be understood that the mode instructions can be sent simultaneously or separately.
[0088] It should be understood that the same test data can be provided for the same functional module of different simulation boards when performing fault detection (for example, the same Devicetest test data is provided for the FPGA module of each simulation board, and the same Asictest test data is provided for the ADC module of each simulation board). This operation can enable each simulation board to use the same test data source, thereby facilitating data recording and comparison.
[0089] In one embodiment, when performing fault detection, all simulation boards in the acquisition system can be switched to the same working mode synchronously, for example, each simulation board can be switched to the Devicetest working mode, at which time the data collected by each simulation board comes from the Devicetest test data source, so the data received and displayed by the host computer should theoretically be the same when each simulation board is normal. Similarly, all simulation boards in the acquisition system can be switched to the Asictest working mode synchronously, at which time the data collected by each simulation board comes from the Asictest test data source, so the data received and displayed by the host computer should theoretically be the same when each simulation board is normal. Based on this, in any of the above working modes, it can be clearly and intuitively displayed which simulation board is abnormal, and the faulty functional module in the abnormal simulation board can be further determined.
[0090] In order to enable the operator to more intuitively understand the processing results of the relevant information and data of each simulation board, the host computer 830 can display the same by images. Thus, the above-mentioned graphical user interface can be operated to graphically display the processing results of the relevant information and data of the simulation board under the control of the host computer processor. The relevant information of the simulation board here can be, for example, whether the simulation board is faulty, which simulation board is faulty, and which functional module of the simulation board is faulty, etc.
[0091] As can be seen, the acquisition system in the embodiments of the present disclosure can control each simulation board to perform fault detection through the interaction between the host computer 830 and each simulation board, thereby quickly and accurately locating the faulty simulation board and the faulty functional module in the simulation board, and thereby solving the problem that accurate and rapid fault detection cannot be performed at present. In addition, the present scheme can also intuitively display the processing results of the relevant information and data of the simulation board, thereby facilitating the operator to perform subsequent processing based on these data.
[0092] According to the description of the related embodiments of the simulation board in the foregoing, the simulation board can perform corresponding fault detection operations according to the mode instructions, the mode instructions can be generated and issued by the host computer, and the host computer can also receive the test results of the simulation board. Based on this, the host computer processor described above can operate to generate mode instructions and send the mode instructions to the first simulation board in the plurality of simulation boards via the host computer communication interface, so that the mode instructions are forwarded between the plurality of simulation boards. Then, in response to receiving the mode instructions, the simulation board can operate to perform fault detection and output the test results to the host computer step by step. Then, the host computer processor can operate to receive the test results via the host computer communication interface and determine the fault simulation board based on the test results.
[0093] The way to determine the fault simulation board can refer to the way described in the foregoing, that is, it can be determined whether the first simulation board (for example, the simulation board 821 in Figure 8 ) is faulty first, when it is determined that the first simulation board is faulty, it is determined that the first simulation board is the fault simulation board, when it is determined that the first simulation board is normal, it is determined whether the second simulation board (for example, the simulation board 822 in Figure 8 ) connected to the first simulation board is faulty. When it is determined that the second simulation board is faulty, it is determined that the second simulation board is the fault simulation board, when it is determined that the second simulation board is normal, it is determined whether the third simulation board (for example, the simulation board 823 in Figure 8 ) connected to the second simulation board is faulty, and so on. In this way, the fault simulation board can be determined or it is determined that all the simulation boards are normal. Then, the graphical user interface described above can operate to image display the related information of the fault simulation board according to the control of the host computer processor.
[0094] In order to more accurately determine the fault point in the fault simulation board, in an embodiment, the host computer processor can also operate to determine the functional module in the fault simulation board that appears to be faulty according to the test results, and the graphical user interface also operates to image display the related information of the functional module that appears to be faulty.
[0095] It can be understood that due to the influence of factors such as equipment, the initially formed image can be blurred and have noise points, etc. In order to solve this problem, the pixels in the image can be corrected, for example, the offset and gain of the pixels in the image can be corrected, so that the pixel gray values of the image are consistent, which will make the image clear and delicate and without noise points when imaging the real object.
[0096] In one implementation scenario, the simplest linear correction method can be used to correct the image, that is, the linear relationship between the input (the initial gray value of the pixel) and the output (the target gray value of the pixel) is used for correction
[0097] y = kx + b
[0098] Wherein, y is the target gray value of the pixel, x is the initial gray value of the pixel, k is a constant, and b is a constant.
[0099] When x = 0, y = 0, it indicates that the detector is completely shielded and does not receive any light signal. For the acquisition system, the incident light is input with the maximum light intensity, and the initial gray value of the image pixel is x1, and the target gray value of the pixel is y1 = V. In the actual scanning process, the initial gray value of each pixel in the acquired initial image is converted by the above formula to obtain the desired target gray value, thereby forming a clear, delicate and noise-free image.
[0100] Based on the obtained different images, the above-mentioned graphical user interface can also be operated to display the acquired data in the original state and / or the corrected state in the first graphical area according to the indication of the host computer processor, and display the noise value of the corresponding pixel in the second image area.
[0101] Since the number of analog boards in the acquisition system of the present disclosure is large, and the analog board can also include a plurality of functional modules, in order to clearly display the related information of the analog board, in an embodiment, the graphical user interface can also be operated to display the related information of the plurality of analog boards in the form of items according to the positional relationship of the plurality of analog boards according to the indication of the host computer processor. Through this kind of display mode, the operator can quickly find the related information of the related analog board through the corresponding positional relationship, thereby improving the information processing efficiency.
[0102] Regarding the image display part, the present disclosure will be described in detail in combination with the display interface for image display shown in Figures 9a-9c . Figures 9a-9c The schematic diagram of the display interface for image display according to the embodiment of the present disclosure is shown.
[0103] As shown in Figures 9a-9c , in the upper half of the display interface, the data acquired from the analog board (the original state of the data) or the corrected data (the corrected state of the data) can be displayed, thereby the above-mentioned data can be intuitively reflected. In the lower half of the display interface, the noise value corresponding to each pixel in the image can be displayed, and the quality of the current pixel point can be evaluated through the noise value.
[0104] As a preferred scheme, the corresponding relationship between the data displayed in the upper half of the display interface and the noise data displayed in the lower half can be intuitively presented, thereby the imaging quality of the detection module and the measured data can be intuitively perceived, and thus the operator can have a direct and intuitive perception of the working state of the detection module and the data quality. It should be understood that the display interface is not specifically limited here, and the display interface can be various screens or media for display or having display effect in the prior art.
[0105] For more convenient and intuitive display, further, the detection data (data) of the analog boards can be combined and displayed on the display interface according to the spatial order or position relationship of the analog boards. The combined display can enable the data acquisition system including multiple analog boards to simultaneously display the data of multiple channels. This setting can amplify the difference effects of the channels through comparison, so that the problem can be intuitively and quickly located.
[0106] The combined display mode can specifically include: using spliced horizontal coordinates to sequentially display the detection data from each analog board according to the position relationship of the multiple analog boards. For example, in some embodiments, the detection data from the first analog board 821 can be displayed in the left first area, the detection data from the second analog board 822 can be displayed in the second area adjacent to the first area, and the second area can be located to the right of the first area. The two display areas share the same vertical axis coordinate. In addition, the detection data from the third analog board 823 can be displayed in the third area, which is adjacent to the second area and located to the right of the second area, and can share the same vertical axis coordinate with the first and second areas, and so on. The detection data of all the cascaded analog boards can be combined and displayed. Since the vertical coordinates used for displaying the detection data of each analog board are the same and the horizontal coordinates sequentially extend, the detection data of all the detection modules of the analog boards can be intuitively, prominently and centrally displayed, so that the operator can have a more intuitive perception of the detection data through the display interface.
[0107] In addition, the data collected by the multiple or all analog boards in the acquisition system at the same time can be displayed on the host computer in the form of a gray-scale image. As the measured object moves, a continuous image will be formed on the host computer, and the material and shape information of the measured object can be reflected through the image. Through this method, the specific fault point of the hardware working state of the test acquisition system can also be diagnosed. For example, when the data from the nth analog board is abnormal (no signal or obviously abnormal signal), the abnormal information can be intuitively displayed through the display interface, and the analog board that is abnormal can be quickly located and can be roughly corresponding to the position of the analog board, so that the monitor can quickly respond.
[0108] The structure and working principle of the acquisition system are described above in combination with the drawings. In some embodiments, the acquisition system can also include a digital board, which can be connected in series between the host computer and the first analog board, so that the above-mentioned instructions and collected data can be forwarded between the host computer and the first analog board.
[0109] In the acquisition system, the digital board (also referred to as a digital board card) and the analog board (also referred to as an analog board card) are basic constituent units of the acquisition system. According to the foregoing description, the analog board is mainly responsible for: receiving X-rays and converting them into current signals; integrating the current signals and digitizing them through an ADC module; packaging X-ray data and sending them to the digital board or an adjacent analog board, and forwarding / executing instructions from the upper computer and data packets from the adjacent analog board. Further, it can also monitor temperature, voltage and other information, and it can achieve different resolutions by carrying different detectors, and various line scan cameras by different arrangements. It should be understood that whether the final arrangement forms a straight line, a U shape, or an L shape, the cascade relationship of each analog board and the digital board is the same, that is, each analog board is sequentially arranged.
[0110] The structure and working principle of the acquisition system including the digital board of the above-described embodiments of the present disclosure will be described below.
[0111] When performing fault detection based on the acquisition system, the upper computer can be used to generate a fault test instruction including a working mode indicator, and can perform fault detection based on the detection response data packets sent by each analog board step by step to generate a fault detection result (test result).
[0112] The digital board can be used to send the fault test instruction generated by the upper computer to the first analog board in the plurality of analog boards, to start sending the fault test instruction step by step from the first analog board in the plurality of analog boards until the last analog board in the plurality of analog boards, and to receive the plurality of detection data packets sent by the plurality of analog boards step by step from the first analog board.
[0113] Each analog board can include a control module, a detection module, an analog-to-digital conversion module, a processor module, a data sending module, and a data receiving module. The data receiving module can be used to receive the fault test instruction from the upper analog board connected thereto, and can receive the detection data packet from the lower analog board connected thereto. The control module can be used to parse the fault test instruction received from the detection data packet to obtain the working mode indicator, and can determine the current working mode of the analog board based on the working mode indicator, so that the analog board performs fault detection corresponding to the current working mode.
[0114] In addition, the detection module can be configured to generate a current signal representing the detection parameter value in a normal working mode, the analog-digital conversion module can be configured to convert the current signal into a voltage signal, and then convert the voltage signal into a digital signal, and meanwhile generate detection data representing a certain test mode. Further, the processor module can be configured to add an analog board identifier and a working mode indicator to the digital signal to generate a detection response data packet. The data sending module can be configured to send the detection response data packet to a connected upper analog board, and send a fault test instruction to a connected lower analog board.
[0115] It can be understood that the functions of the modules in the analog board are only exemplary and not limited, and those skilled in the art can integrate, split, and re-divide and combine the functions. For example, the functions of the control module, the data receiving module, and the data sending module can be implemented by the processor module, the analog-digital conversion module, and the detection module respectively. The specific splitting manner can be set as needed, and will not be further described here.
[0116] For the above acquisition system, the analog boards 821, 822, …, and 82n are connected in series, and can include two instruction transmission modes, i.e., mode one and mode two. In mode one, the nth analog board in the n analog boards receives the instruction forwarded by the digital board, and forwards the instruction to the upper analog board in turn. Each of the n analog boards can sequentially receive the instruction, complete the data acquisition task of the analog board according to the received instruction, and forward the acquired data to the lower analog board in turn, and finally send the data to the digital board through the nth analog board. In mode two, the first analog board in the n analog boards receives the instruction sent by the digital board, and forwards the instruction to the lower analog board in turn. Each of the n analog boards can sequentially receive the instruction, complete the data acquisition task of the analog board according to the received instruction, and forward the acquired data to the upper analog board in turn, and finally send the data to the digital board through the first analog board.
[0117] Regardless of the transmission mode, since each analog board is connected in series, the instruction and the data acquired by the analog board are forwarded in stages. For mode one, the instruction can be forwarded from the nth analog board 82n to 82(n-1), 82(n-2), …, and to the first analog board 821 step by step. For mode two, the instruction can be forwarded from the first analog board 821 to 822, 823, …, and to the nth analog board 82n step by step. Each analog board has a unique analog board identifier, such as an ID number, which can correspond to its address. With the unique analog board identifier, it can be quickly and accurately determined which analog board has failed and the location of the analog board.
[0118] According to the information transmission mode of the acquisition system described above, after the host computer sends the fault test instruction, the fault test instruction can be transmitted to the analog board through the digital board and forwarded level by level among the analog boards. Each analog board needs to respond after receiving the fault test instruction, and the response information can contain the ID number of the analog board. For example, the digital board sends the instruction of "heard, please answer", the analog board 821 needs to reply "821 heard" after receiving the instruction, and then forwards the instruction of "heard, please answer" to the analog board 822, the analog board 822 needs to reply "822 heard" after receiving the instruction, and then forwards the instruction of "heard, please answer" to the analog board 823, the analog board 823 needs to reply "823 heard" and further forwards...
[0119] In order to facilitate the determination of the identification and position of the analog board, the ID list and the position information list of the cascaded analog boards can be pre-stored in the digital board. The ID address of each analog board can be determined in the following manner. After the host computer is powered on, an addressing instruction can be sent, and the digital board receiving the addressing instruction can set its address as 821. Then, the digital board can forward the addressing instruction to the first analog board (the first analog board), and the first analog board receiving the addressing instruction can set its own address as 821. Then, the analog board with the address of 821 forwards the addressing instruction, and the analog board receiving the addressing instruction can set its own address as 822, and so on. Through the successive forwarding of one instruction, the addresses of all analog cards are addressed as: digital board 821, analog board 821, analog board 822, …, analog board 82n.
[0120] After receiving all the reply signals, the digital board can make a judgment according to the response results, which can include the ID information of each analog board. It can compare the ID information with the determined address list, so as to determine the ID information and position information of the analog board without reply signal, and further determine the fault point of the analog board.
[0121] It should be understood that the above fault test instruction can be any instruction that can help confirm the fault, and the response information or response result can include packaged information containing the detection data of each analog board in response to the fault test instruction, and containing the identification information of the analog board, which can be an ID number or an SN number, etc. As long as it can uniquely identify the corresponding analog board. In this way, without increasing too much data transmission amount, the fault data can be corresponded to the identification and position of the analog board from which it comes.
[0122] After each analog board in the acquisition system receives the fault test instruction, it can analyze the working mode indicator to determine the current working mode, and perform fault detection according to the current working mode to obtain detection data.
[0123] In addition, according to the foregoing description, each analog board can add a corresponding analog board identifier and a working mode indicator in the respective detection data to generate a detection response data packet, and fault detection can be performed based on the detection response data packet sent by each analog board step by step to generate a fault detection result (test result). In one implementation scenario, a current signal capable of representing a detection parameter value in a normal working mode can be generated first, the current signal is converted into a voltage signal, the voltage signal is converted into a digital signal, and detection data capable of representing a certain test mode can be generated.
[0124] According to the foregoing description, the acquisition system can perform fault detection based on the detection response data packet sent by each analog board step by step to generate a fault detection result. In one implementation, the detection response data packet sent by each analog board step by step can be parsed to obtain detection data, an analog board identifier, and a working mode indicator, and then the current working mode of the analog board is determined according to the working mode indicator. Then, the detection data is fault detected based on the current working mode to determine whether the analog board has a fault. When it is determined that there is a fault, the fault type of the analog board is determined, and the location information of the analog board is determined based on the analog board identifier.
[0125] Then, the present scheme can generate a display entry for indicating a running fault based on the analog board identifier, the location information of the analog board, the fault type, and the detection data. For example, when it is determined that the analog board does not have a fault, the location information of the analog board can be determined based on the analog board identifier, and a display entry for indicating normal running can be generated based on the analog board identifier, the location information of the analog board, and the detection data.
[0126] Compared with the traditional parallel bus cascade mode, the above-mentioned response information needs to pass through multiple connectors of different channels to reach the digital board, and the reply signals are concurrent. If a certain analog board does not reply, the analog board and all the analog boards before the analog board can have problems, which is not conducive to quickly locating the specific analog board that has a fault. The present disclosure solves the problem of fault diagnosis of the traditional cascade mode through the above scheme, and can quickly locate a specific analog board through the reply signal, and exclude other interference factors that can affect the judgment result.
[0127] As can be seen from the foregoing description of the acquisition system, the embodiments of the present disclosure can monitor the working state of the digital board and the analog board inside the acquisition system and the data transmission state inside the acquisition system, have excellent fault diagnosis capability, and thus can facilitate on-site debugging and fault analysis. In addition, the present scheme can be displayed intuitively, has faster, more accurate, and more detailed fault diagnosis capability, and thus can quickly complete on-site debugging and fault analysis excellently to reduce the downtime loss caused by equipment fault detection at the least cost.
[0128] While several embodiments of the present disclosure have been shown and described herein, it is to be understood that the embodiments are merely exemplary. Numerous changes, substitutions and equivalents can occur to those skilled in the art without departing from the spirit and scope of the present disclosure. It should be understood that various alternatives to the embodiments of the disclosure described herein can be employed in practicing the present disclosure. It is intended that the following claims define the scope of the disclosure and that methods equivalent to those shown and described herein can be utilized without departing from the spirit and scope of the present disclosure.
Claims
1. A simulation board for data acquisition, characterized in that, The simulation board includes: A detection module, used for detecting incident light; Multiple functional modules connected in series are used to process the detection data. Each functional module includes: A first input terminal, for receiving data from the detection module; A second input terminal for receiving test data; and an output terminal for outputting processed data; A plurality of detection switches, wherein each detection switch is connected to a corresponding functional module and comprises: The fixed end is connected to the output end of the corresponding functional module; The active end is configured to switch between the first input end and the second input end of the corresponding functional module, So that the corresponding functional module can switch between working mode and test mode; The simulation board is configured to input associated test data to the functional module to be tested via the second input terminal, and output the test result of the functional module to be tested through a transmission path.
2. The simulation board according to claim 1, characterized in that The plurality of functional modules include a first functional module, the plurality of detection switches include a first detection switch, and the analog board is configured to: In response to receiving a first mode instruction for detecting the first functional module via the transmission path, controlling the first detection switch to perform a first preset switching so that the active end of the first detection switch is switched to the second input end of the first functional module; receiving first test data via a second input terminal of the first functional module to obtain a first test result of the first functional module; The first test result is outputted through the transmission path.
3. The simulation board according to claim 2, characterized in that The plurality of functional modules further include a second functional module, the plurality of detection switches further include a second detection switch, and the analog board is configured to: In response to receiving a second mode instruction for detecting the second functional module via the transmission path, controlling the first detection switch and the second detection switch to perform a second preset switching operation, so that the active end of the first detection switch is switched to the first input end of the first functional module and the active end of the second detection switch is switched to the second input end of the second functional module; receiving second test data via a second input terminal of the second functional module to obtain a second test result of the second functional module; The second test result is outputted through the transmission path.
4. The simulation board according to claim 2 or 3, characterized in that The simulation board also includes: The mode instruction register is configured to receive and store a mode instruction via the transmission path. The switching of the plurality of detection switches is responsive to the mode instruction stored in the mode instruction register so as to switch the corresponding functional module to the test mode.
5. The simulation board according to claim 3, characterized in that The simulation board is also configured to: In response to receiving a third mode instruction for detecting the detection module via the transmission path, controlling the first detection switch and the second detection switch to perform a second preset switching operation, so that the active end of the first detection switch is switched to the first input end of the first functional module and the active end of the second detection switch is switched to the first input end of the second functional module; receiving incident light via the detection module to obtain data collected by the detection module; The collected data is outputted through the transmission path.
6. The simulation board according to any one of claims 1 to 5, characterized in that The multiple functional modules include: a processor module configured to add an analog board identifier and an operating mode indicator to a digital signal to generate a detection response data packet; and Analog-to-digital conversion module.
7. The simulation board according to any one of claims 1 to 5, characterized in that The simulation board also includes: a data sending module for sending a detection response data packet to an upper-level simulation board connected to the simulation board, and sending a fault test instruction to a lower-level simulation board connected to the simulation board.
8. A data acquisition system, characterized in that: The acquisition system includes: A plurality of analog boards according to any one of claims 1 to 7, wherein the plurality of analog boards are connected in series to achieve step-by-step communication; a host computer connected to a first simulation board among the plurality of simulation boards; and A test data source is configured to be connected to the second input terminals of corresponding functional modules in the plurality of simulation boards, The acquisition system is configured such that each analog board: Receive a mode instruction for controlling a plurality of detection switches to perform preset switching from the host computer or a series-connected front-stage analog board using the transmission path, wherein different mode instructions correspond to different preset switching; Controlling the plurality of detection switches to perform preset switching according to the mode instruction, so as to switch the functional module to be detected to the test mode; Inputting associated test data into the functional module to be tested to obtain a test result of the functional module to be tested; and The test result is output to a host computer through the corresponding transmission path, so as to determine whether the functional module to be detected has a fault based on the test result.
9. The acquisition system according to claim 8, characterized in that: The acquisition system is configured such that each analog board: Switching the plurality of functional modules to the working mode; receiving incident light via the detection module to obtain data collected by the detection module; The collected data is output to a host computer via the corresponding transmission path.
10. The acquisition system according to claim 8, characterized in that: The host computer includes: A host computer communication interface is configured to be communicatively connected to the first simulation board so as to implement communication interaction with a plurality of the simulation boards; a host computer processor, operable to control the plurality of simulation boards via the host computer communication interface and to process data collected by the simulation boards; and A graphical user interface is used to graphically display relevant information about the simulation board and data processing results under the control of the host computer processor.
11. The acquisition system according to claim 8, characterized in that: The host computer processor is operated to generate a mode instruction, and send the mode instruction to a first simulation board among the multiple simulation boards via the host computer communication interface, so that the mode instruction is forwarded step by step among the multiple simulation boards; In response to receiving the mode instruction, the simulation board operates to perform the fault detection and outputs the test results to the host computer step by step; The host computer processor is operable to receive the test result via the host computer communication interface and determine a faulty simulation board that has failed based on the test result; and The graphical user interface is operated to graphically display relevant information of the fault simulation board according to the control of the host computer processor.
12. The acquisition system according to claim 8, characterized in that: The host computer processor is further operated to determine the faulty functional module in the fault simulation board according to the test result, and the graphical user interface is further operated to graphically display relevant information of the faulty functional module.
13. The acquisition system according to claim 8, characterized in that: The graphical user interface operates according to the instruction of the host computer processor to display the collected data in the original state and / or the corrected state in the first graphic area, and to display the noise value of the corresponding pixel in the second image area.
14. The acquisition system according to any one of claims 8 to 13, characterized in that: The graphical user interface is further operable to graphically display relevant information of the multiple simulation boards in the form of entries based on the instructions of the host computer processor and with reference to the positional relationship of the multiple simulation boards.
Citation Information
Patent Citations
Data collection device, data collection system and method
CN105487997A
Device for detecting operating state of circuit board
CN107192940A
Printed circuit board, terminal and circuit test method based on common test point
CN108196179A
Method for carrying out fault detection on analog board and related product thereof
CN115712057A
Test mode multiplexer and memory chip
CN207409263U