Extensible multi-modal tomography system based on CPCI bus
Technical Field
The invention belongs to the technical field of measurement, and relates to a mode-extensible multi-mode tomography system based on a CPCI bus, which can realize free combination and extension of different tomography modes. The invention takes a multi-modal tomography system as a description object, but is not limited to the application, and the main control module and the control method are still applicable to measurement, control and other systems with multiple detection modes in coordination work in other industrial processes and chemical reactions.
Technical Field
The tomography technology has the characteristics of no disturbance, visualization and the like, can realize the detection of the distribution parameters of the complex flowing medium, and has wide application value in the fields of petroleum, chemical engineering, metallurgy, power, energy and other industrial fields, visual test and monitoring of the multiphase flow process, biology, medical treatment and the like. The basic principle of tomography is that a space sensitive sensor array is adopted to detect the distribution parameters of a sensitive field and acquire two-dimensional or three-dimensional distribution information capable of describing a detected region.
Common tomographic imaging modalities include electrical, ultrasound, and radiation, each with its specific physical sensitivity parameters. For complex measured media, a multimode fusion measurement method is often adopted, and a measurement method using one mode often cannot comprehensively reflect the actual situation. For example, for the tomography of oil-gas-water three-phase flow, a tomography method of fusion of two modes of electricity and ultrasound is often adopted. Electricity and ultrasound are used as two process tomography technologies based on different physical principles, the application range and the imaging characteristics of the two technologies are different, an ultrasonic field has a hard field characteristic and has advantages in identifying a phase interface, and an electric field is a soft field and has higher sensitivity to a position close to an electrode. Thus, the ultrasonically and electrically sensitive field distributions have some complementarity. Both the electrical sensor and the ultrasonic sensor have the advantages of low cost, good safety, no radiation, no disturbance, quick response and the like, and have great potential in the aspects of online visualization and parameter measurement of multiphase flow.
Existing multi-modality tomography systems often employ a fixed modality combination, which has several disadvantages. Firstly, the system can only be suitable for a specific measured medium, and once the measured medium changes or the sensitive field distribution parameters of the measured medium change, the original multi-mode system cannot be suitable. Secondly, the modes can not be flexibly expanded and any combination among the multiple modes can not be realized, and if more modal information is required to be acquired, the multi-mode tomography system can only be redesigned.
Disclosure of Invention
The invention aims to provide a CPCI bus-based modal-expandable and combinable multi-modal tomography system, so that different modalities can not interfere with each other and can carry out continuous measurement according to a certain working time sequence. The technical scheme of the invention is as follows:
an extensible multi-modal tomography system based on a CPCI bus mainly comprises a multi-modal control bus based on the CPCI, a main control module and each single-modal tomography module, wherein,
the multi-mode control bus based on the CPCI bears the data communication function among different single-mode tomography modules and coordinates the data acquisition speed and the time sequence of the different single-mode tomography modules; the main control module is connected with each single-mode tomography module through a multi-mode control bus based on CPCI (compact peripheral component interconnect), and comprises a multi-mode main control chip, a matched circuit of the multi-mode main control chip and a multi-mode communication interface;
the CPCI-based multi-mode control bus occupies at least 2N CPCI buses for a multi-mode tomography system comprising N modes, and comprises N instruction lines and N state lines, so that real-time control output and real-time feedback of system states are realized, the instruction lines are used for the multi-mode main control chip to send a work starting instruction to different single-mode tomography modules, and the state lines are used for the different single-mode tomography modules to send current working states to the multi-mode main control chip;
the state lines and the instruction lines always appear in pairs, the interfaces corresponding to each pair of the state lines and the instruction lines on the main control module are connected with all communication interfaces of all single-mode imaging modules, although a plurality of connecting nodes of the same state line or instruction line are simultaneously connected with a multi-mode main control chip and a plurality of control chips of single-mode tomography modules, each mode state line and each instruction line are respectively exclusive when in use, namely, which mode occupies which two multi-mode control bus channels is set according to an FPGA program of the main control chip;
the multimode main control chip is characterized in that the chip type is an FPGA chip, the main control chip is used for reading level values on a state line, sending a work starting instruction to each mode through an instruction line according to a programmed program in the chip, coordinating the work time sequence of each single-mode tomography module, realizing through a finite state machine, and sequentially carrying out according to a preset state transition diagram: the finite state machine reads state lines of different modes in real time, and level values of the state lines are stored in an external input register and used as current external input of the finite state machine; when a program is started, initializing the current state and storing a current state mark into a state register; when the FPGA clock is refreshed, the finite state machine reads level values stored in an external input register and a state register, and determines the level value to be output by each modal instruction line at the next moment according to a programmed program in a chip and the requirement of a time sequence conversion chart;
each single-mode tomography module is provided with a uniform modal communication interface, and comprises N state lines, N instruction lines and a group of data lines under the condition that the system has N modals, wherein the number of the data lines is determined by the modality, the N state lines and the N instruction lines are respectively connected with the N state lines and the N instruction lines of the multi-modal control bus, and the data lines are used for transmitting measurement data to an upper computer by each single-mode tomography module.
The invention has the following beneficial effects and advantages:
1. the multi-modal tomography modules adopt a unified multi-modal communication interface and a multi-modal control bus, so that the coordination of the main control module to each modality is facilitated;
2. the multiple single-mode tomography modules can be freely expanded, namely, the modes can be freely increased, decreased or combined;
3. the CPCI bus is used as the multi-mode control bus, and no additional control line is needed, so that the system overhead is saved.
4. The main control chip uses the FPGA, the system flexibility is high, and when the mode scheme is changed, a new program of the main control chip can be downloaded to adapt to a new multi-mode combined working scheme;
5. the reconstruction cost of the single-mode tomography system is low, and only a multi-mode control bus and a corresponding interface are required to be added to the original system.
Drawings
The following figures, which are exemplary, not exhaustive or limiting, describe selected embodiments of the invention, wherein:
FIG. 1 is a block diagram of the system as a whole according to an embodiment of the present invention; wherein, the 0-multi-mode control bus, the 1-multi-mode main control module and the 2-data line
FIG. 2 is a structural diagram of a connection mode of a multi-mode control bus of the device of the invention, wherein 1 is a multi-mode main control module; 3-an instruction line; 4-state line; 5-line connection node; 6-a multimodal communication interface;
FIG. 3 is a timing diagram of a control scheme of the apparatus of the present invention;
Detailed Description
The steps for making and operating the present invention are intended to be described as embodiments of the invention, and not as the only forms in which the present invention may be made and utilized, other embodiments that perform the same function, and are intended to be included within the scope of the present invention. The multiple different modes in the present invention include electrical ultrasound, etc., and several electrical or ultrasound measurement modes can be used simultaneously.
The following describes embodiments of the present invention in detail with reference to the drawings.
Fig. 1 depicts the overall system architecture of the apparatus of the present invention, comprising a 1-multimodal master control module and individual modality-independent modules. The 1-multi-mode master control module can be further divided into a multi-mode master control chip, a 0-multi-mode control bus and a multi-mode communication interface, and in this embodiment, the mode 1, the mode 2 and the mode 3 are exemplified by ERT, ECT and UPT, respectively. The multimode main control chip is positioned on a single main control circuit board, the circuit board is provided with a multimode communication interface, one end of the interface is connected to the multimode main control chip through a multimode control bus, and the other end of the interface can be connected with an external circuit board. In this embodiment, the multi-modal communication interface is, for example, a J3 interface of the CPCI standard, and the main control circuit board can be connected to each modal tomography system located on the front panel through the bidirectional pins of the backplane of the CPCI chassis. 2-data line for transmitting measured data to upper computer in each mode
FIG. 2 is a block diagram of the connection mode of the multi-mode control bus of the present invention.
The multi-mode main control module is used as an independent module and is connected with the main control chip of each mode. Functionally, the main control module and each measuring module are connected through an independent state line and an independent instruction line, each state line or each instruction line occupies a 1-bit data channel, and 2 data channels are added for each mode. If the total number of the modes is N, because each mode occupies two data channels, pins of the data channels which are reserved for multi-mode communication by the FPGA chip are not less than 2N, and the number of the data channels contained in the multi-mode communication interface is not less than 2N. In the system structure, two control lines of each mode are led out to a multi-mode communication interface through a multi-mode main control chip FPGA pin, and then are led into each independent tomography system.
The state lines and the instruction lines always appear in pairs, the interfaces corresponding to each pair of the state lines and the instruction lines on the main control module are connected with the communication interfaces of all the single-mode imaging modules, although the two ends of the same state line or instruction line are simultaneously connected with the multi-modal master control chip and the control chips of a plurality of single-modal tomography modules, each modal state line and each instruction line are exclusive when in use, namely, which mode occupies which two multi-mode control bus channels is set according to the FPGA program of the main control chip, for example, the 3-command line and 4-status line of modality 1 in fig. 2 are interconnected with the 3-command line and 4-status line of other modalities, but these two lines only have control function for the master control chip of a specific modality, that is, the present embodiment is effective for the mode 1, and the other modes are ineffective even if they can receive signals. In this embodiment, the channels occupied by the multi-mode control bus used in the mode N are that the instruction line occupies the 2N-1 th channel, and the state line occupies the 2N th channel.
The multi-modal control bus always contains multiple sets of paired status and instruction lines, one for each modality. For the tomography system with the expandable mode, the expansion of the mode is embodied in the expandability of the multi-mode control bus. The step of extending a new modality can be divided into: step one, a main control module FPGA program starts a pair of reserved interfaces of a state line and an instruction line; secondly, adding the single-mode tomography module into an existing extended-mode tomography system, namely correspondingly connecting corresponding state lines and instruction lines; and step three, modifying the FPGA program of the single-mode tomography module to be controlled by the FPGA chip of the main control module, and modifying the FPGA program of the main control module to enable the state transition diagram to contain the relevant working state of the newly added mode.
FIG. 3 is a timing diagram of the control scheme of the apparatus of the present invention. The function of the instruction line is that the main control module sends a work starting instruction to each measuring module, the default value is low level 0, the rising edge is effective, the function of the state line is that the measuring module feeds back the current working state to the main control module, the current non-working is low level 0, and the current working is high level 1.
In this embodiment, three modes are taken as an example, the mode 1, the mode 2 and the mode 3 are taken as ERT, ECT and UPT, respectively, and according to the working principle of the three modes, the working logic is that the mode 1 and the mode 2 work alternately, and the mode 3 works continuously. The method comprises the following basic steps: firstly, when the main control module is powered on, firstly, a pulse trigger signal is sent to a communication interface connected with a mode 1 and a mode 3 through the instruction line; step two, after receiving the instruction signal, the mode 3 starts to work continuously; step three, after receiving the instruction signal, the mode 1 starts working for a complete measurement period, and continuously sends a high-level state signal to the multi-mode main control chip through the state line during the working period until a complete measurement period is finished and the low level is recovered; step four, after receiving the low level signal sent by the mode 1 state line, the master control module judges that the mode 1 has finished working for a period, and at the moment, the master control module sends a pulse trigger signal to the mode 2 instruction line; step five, after receiving the instruction signal, the mode 2 starts working for a complete measurement period, and during the working period, a high-level state signal is continuously sent to the multi-mode main control chip through the state line of the mode 2 until a complete measurement period is finished and a low level is recovered; step six, after receiving a low level signal sent by a mode 2 state line, the master control module judges that the mode 2 has finished working for one cycle, and at the moment, the master control module sends a pulse trigger signal to a mode 1 instruction line; and step seven, repeating the steps three to six to finish the alternate work of the mode 1 and the mode 2.