CN108761518A - A kind of multiple tracks gamma-spectrometric data serializing compression and restoring method - Google Patents
A kind of multiple tracks gamma-spectrometric data serializing compression and restoring method Download PDFInfo
- Publication number
- CN108761518A CN108761518A CN201810313819.1A CN201810313819A CN108761518A CN 108761518 A CN108761518 A CN 108761518A CN 201810313819 A CN201810313819 A CN 201810313819A CN 108761518 A CN108761518 A CN 108761518A
- Authority
- CN
- China
- Prior art keywords
- multiple tracks
- road
- data
- gamma
- spectrometric data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01T—MEASUREMENT OF NUCLEAR OR X-RADIATION
- G01T1/00—Measuring X-radiation, gamma radiation, corpuscular radiation, or cosmic radiation
- G01T1/36—Measuring spectral distribution of X-rays or of nuclear radiation spectrometry
Landscapes
- Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- High Energy & Nuclear Physics (AREA)
- Molecular Biology (AREA)
- Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
Abstract
The invention discloses a kind of multiple tracks gamma-spectrometric data serializing compression and restoring method, including multiple tracks gamma-spectrometric data road location to omit method with count value coding method and coded data transmission;It uses unique " multiple tracks gamma-spectrometric data road location and count value coding method " and " coded data transmission omission method ".Multiple tracks gamma-spectrometric data is recompiled first, then and in real-time multiple tracks spectral measurement, data transmission time intervals are smaller, it is counted as the zero more feature in road, the method that transmission is omitted using " being counted as zero road, the preceding zero setting of coding, and the continuous locations Dao Dao coding etc. ".Actual data transfer amount is effectively reduced, to achieve the effect that lossless compression, outer multiple tracks gamma spectrum analysis, multielement xrf analysis, spectroscopy survey the application fields such as radon and spectroscopy gasoloid, have good promotion prospect indoors.
Description
Technical field
The present invention relates to nuclear physics experiment and nuclear instrument, electronics technology, specially a kind of multiple tracks gamma-spectrometric data sequence
Rowization are compressed and restoring method.
Background technology
The fields such as various nuclear physics experiments, Application of Nuclear Technology (such as radioaerosol measure in Alpha
Spectral measurement), it is often necessary to (abbreviation multichannel analyzer, MCA, electronics scope are also known as multiple tracks pulse width to Multi channel spectrum analysis device
Spend analyzer), the energy signal deposited in detector to photon, particle is digitized, and obtains multiple tracks gamma-spectrometric data.Pass through
Multi channel spectrum analysis can measure the physical quantitys such as related radionuclide content or related nuclear radiation exposure rate.Gamma-spectrometric data is general
Using microcontroller, microcontroller etc. (being known as slave computer) control circuit acquisition, (it is not more than once per second) or timing in real time
(per minute, hour or once a day) is transferred to the higher energy spectrum analysis microcomputer of operational performance (being known as host computer).In order to reduce
On line quantity between upper and lower computer, transmission generally carry out in a serial fashion.
In recent years, with the raising of nuclear radiation detector technical matters, the synthesis such as energy resolution and peak count rate refers to
Mark has significant progress.Thus require the number of analyzing of the Multi channel spectrum analysis device of subsequent adaptation that need to be up to 16384, and
The counter capacity of per pass generally should also be up to 16bit.It additionally needs plus necessary start bit and end during serial transmission
At least a 1bit of stop bit.If requirement per second transmits, whole spectral line data is primary, and the bit rate transmitted is theoretically at least:
16384 × (16+2)=294912bps.This has significantly exceeded the maximum bit rate of the serial transmissions such as RS-232
The standard of 110592bps.Therefore, it invents that a kind of algorithm is simple, is suitable for realizing in microcontroller or microcontroller, it can will
Multiple tracks modal data is compressed before serial transmission, in the method that data receiver can quickly be completely restored to again, is had very heavy
The practical value wanted.
Invention content
The purpose of the present invention is to provide a kind of multiple tracks gamma-spectrometric data serializing compression and restoring method, algorithm is simply suitable
Together in what is realized in microcontroller or microcontroller, multiple tracks modal data can be compressed before serial transmission, be connect in data
The method that debit can quickly be completely restored to again, be suitable for extensively the various multiple tracks gamma-spectrometric datas acquisitions using upper and lower computer mode with
Application field is analyzed, to solve the problems mentioned in the above background technology.
To achieve the above object, the present invention provides the following technical solutions:A kind of multiple tracks gamma-spectrometric data serializing compression and also
Method is omitted in original method, including multiple tracks gamma-spectrometric data road location with count value coding method and coded data transmission.
Preferably, multiple tracks gamma-spectrometric data road location and count value coding method:By every one in multiple tracks gamma-spectrometric data
The up to roads 20bit Dao Zhiyugai be up to 20bit count values and recompiled as 8 groups of 8bit binary numbers plus prefix comprising:
4 groups of roads 8bit location data A0 to A3;
4 groups of 8bit counting rate data D0 to D3;
Every group of 8bit data highest 3bit identifies D3 to A0 respectively by prefix 000 to 111.
Preferably, the coded data transmission omits method and contains:
3 kinds of default rules can be taken when coded data transmission;
It is counted as zero road, all 8 groups of codings, which can be omitted, does not transmit;
Road location encodes or count value coding, and preceding zero setting, which can be omitted, not to be transmitted;
When the road location for transmitting the road is that upper one of location adds 1, road location coding, which can be omitted, not to be transmitted.
Compared with prior art, the beneficial effects of the invention are as follows:
1, this multiple tracks gamma-spectrometric data serializing compression and restoring method, by taking unique " multiple tracks gamma-spectrometric data road location
With count value coding method " cooperation " coded data transmission omission method ", in real-time multiple tracks spectral measurement, when data transmission
Between be spaced smaller, be counted as the zero more feature in road, actual data transfer amount effectively reduced, to reach the effect of lossless compression
Fruit.
2, this multiple tracks gamma-spectrometric data serializing compression and restoring method, pertain only to microcomputer, microcontroller it is most basic two into
Number " bit manipulation " processed and logic judgment, it is of less demanding to the operational capability of data transmission host computer, and compressed multiple tracks energy
Modal data can completely be restored in host computer using reversed;The realization of this method uses software completely, is not necessarily to additional hardware completely
Circuit is supported, and this method is while reducing real-time of the transmitted data amount in addition to improving data transmission, also total because reducing
Error code amount and improve reliability, outer multiple tracks gamma spectrum analysis indoors, multielement xrf analysis, spectroscopy surveys radon and power spectrum
The application fields such as method gasoloid have good promotion prospect.
Specific implementation mode
The embodiment of the present invention is will be detailed below, however, the embodiment of the present invention is not limited thereto.Based in the present invention
Embodiment, every other embodiment obtained by those of ordinary skill in the art without making creative efforts,
It shall fall within the protection scope of the present invention.
In the embodiment of the present invention:A kind of multiple tracks gamma-spectrometric data serializing compression and restoring method, including multiple tracks power spectrum are provided
Method is omitted with count value coding method and coded data transmission in data track location.
Wherein, multiple tracks gamma-spectrometric data road location and count value coding method are by the height per one in multiple tracks gamma-spectrometric data
20bit count values are up to up to the roads 20bit Dao Zhiyugai to recompile as 8 groups of 8bit binary numbers plus prefix;Coding method is joined
See attached list 1.
1 gamma-spectrometric data road location of table and count value coding method table
Such as:The road location data binary number AB0 to AB19 of 20bit is split into AB0 to AB4, AB5 to AB9, AB10 extremely
AB14, AB15 add 011,010,001 and 000 and know respectively to 4 groups of 5bit binary numbers such as AB19, and respectively before this 5 groups of numbers
Malapropism head;If practical road location is less than 20bit, i.e. compatible in high position benefit 0;Similarly, the count value binary number of 20bit
DB0 to DB19 is split into DB0 to DB4, DB5 to DB9, DB10 to DB14, DB15 to 4 groups of 5bit binary numbers such as DB19, and point
Not before this 5 groups of numbers, 111,110,101 and 100 identification prefixs are added respectively;If actual count value is less than 20bit, in height
It is i.e. compatible that position mends 0;Using this method, the roads the 20bit location AB0 to AB19 in each road, with the count value two of road 20bit into
Number DB0 to DB19 processed, can be recoded to A0 to A3, with C0 to C3 totally 8 groups of binary numbers, later can press this 8 groups of numbers
According to the sequence of " locations Xian Dao encode, rear to count coding " and " first high-order, rear status ", it is sent to serial port.
Before being transmitted, according to following 3 kinds of rules, corresponding road location or count value coded data can be omitted and not transmit,
To greatly reduce the data volume of actual transmissions;The core concept of this method is that 3 kinds of omissions can be taken when coded data transmission
Rule, including:(1) it is counted as zero road, all 8 groups of codings, which can be omitted, does not transmit;(2) road location coding or count value coding,
Preceding zero setting, which can be omitted, not to be transmitted;(3) when the road location for transmitting the road is that upper one of location adds 1, road location coding, which can be omitted, not to be transmitted.
In summary:A kind of multiple tracks gamma-spectrometric data serializing compression provided by the invention and restoring method, by taking solely
Special " multiple tracks gamma-spectrometric data road location and count value coding method " cooperation " coded data transmission omission method ", for real-time multiple tracks
In spectral measurement, data transmission time intervals are smaller, are counted as the zero more feature in road, effectively reduce actual data transfer
Amount, to achieve the effect that lossless compression;The method of the present invention pertains only to the most basic binary number of microcomputer, microcontroller and " grasps position
Make " and logic judgment, it is of less demanding to the operational capability of data transmission host computer, and also compressed multiple tracks gamma-spectrometric data can be with
Restored completely using reversed in host computer;The realization of this method uses software completely, is not necessarily to additional hardware circuit completely and supports, and
For this method while reducing real-time of the transmitted data amount in addition to improving data transmission, also being improved because reducing total error code amount can
By property, outer multiple tracks gamma spectrum analysis, multielement xrf analysis, spectroscopy survey radon and spectroscopy gasoloid etc. indoors
Application field has good promotion prospect.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
Understanding without departing from the principles and spirit of the present invention can carry out these embodiments a variety of variations, modification, replace
And modification, the scope of the present invention is defined by the appended.
Claims (3)
1. a kind of multiple tracks gamma-spectrometric data serializing compression and restoring method, which is characterized in that including multiple tracks gamma-spectrometric data road location with
Count value coding method and coded data transmission omit method.
2. a kind of multiple tracks gamma-spectrometric data serializing compression according to claim 1 and restoring method, which is characterized in that described
Multiple tracks gamma-spectrometric data road location and count value coding method:By being up to the roads 20bit location and being somebody's turn to do per one in multiple tracks gamma-spectrometric data
Road is up to 20bit count values and is recompiled as 8 groups of 8bit binary numbers plus prefix comprising:
4 groups of roads 8bit location data A0 to A3;
4 groups of 8bit counting rate data D0 to D3;
Every group of 8bit data highest 3bit identifies D3 to A0 respectively by prefix 000 to 111.
3. a kind of multiple tracks gamma-spectrometric data serializing compression according to claim 1 and restoring method, which is characterized in that described
Coded data transmission omits method and contains:
3 kinds of default rules can be taken when coded data transmission;
It is counted as zero road, all 8 groups of codings, which can be omitted, does not transmit;
Road location encodes or count value coding, and preceding zero setting, which can be omitted, not to be transmitted;
When the road location for transmitting the road is that upper one of location adds 1, road location coding, which can be omitted, not to be transmitted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810313819.1A CN108761518B (en) | 2018-04-10 | 2018-04-10 | Multi-channel energy spectrum data serialization compression and reduction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810313819.1A CN108761518B (en) | 2018-04-10 | 2018-04-10 | Multi-channel energy spectrum data serialization compression and reduction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108761518A true CN108761518A (en) | 2018-11-06 |
CN108761518B CN108761518B (en) | 2021-12-17 |
Family
ID=63981526
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810313819.1A Active CN108761518B (en) | 2018-04-10 | 2018-04-10 | Multi-channel energy spectrum data serialization compression and reduction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108761518B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115685308A (en) * | 2022-12-27 | 2023-02-03 | 成都理工大学 | Muon imaging method based on domain randomization |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040233075A1 (en) * | 2003-05-22 | 2004-11-25 | Park Chang Won | 8B/10B encoder/decoder including logic gates |
WO2010068126A1 (en) * | 2008-12-12 | 2010-06-17 | Rafal Pietrak | A method of encoding and decoding of synchronous serial transmission, particularly for low power devices and fiber optics media |
CN102664636A (en) * | 2012-05-16 | 2012-09-12 | 苏州大学 | Variable length coding and decoding method and device |
CN106576186A (en) * | 2014-08-21 | 2017-04-19 | Lg 电子株式会社 | Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal |
CN107197247A (en) * | 2011-05-24 | 2017-09-22 | 太阳专利托管公司 | Method for encoding images and picture coding device |
-
2018
- 2018-04-10 CN CN201810313819.1A patent/CN108761518B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040233075A1 (en) * | 2003-05-22 | 2004-11-25 | Park Chang Won | 8B/10B encoder/decoder including logic gates |
WO2010068126A1 (en) * | 2008-12-12 | 2010-06-17 | Rafal Pietrak | A method of encoding and decoding of synchronous serial transmission, particularly for low power devices and fiber optics media |
CN107197247A (en) * | 2011-05-24 | 2017-09-22 | 太阳专利托管公司 | Method for encoding images and picture coding device |
CN102664636A (en) * | 2012-05-16 | 2012-09-12 | 苏州大学 | Variable length coding and decoding method and device |
CN106576186A (en) * | 2014-08-21 | 2017-04-19 | Lg 电子株式会社 | Apparatus for transmitting broadcast signal, apparatus for receiving broadcast signal, method for transmitting broadcast signal, and method for receiving broadcast signal |
Non-Patent Citations (1)
Title |
---|
林延畅: "高灵敏度多元素现场X荧光探测系统的研制", 《中国博士学位论文全文数据库》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115685308A (en) * | 2022-12-27 | 2023-02-03 | 成都理工大学 | Muon imaging method based on domain randomization |
Also Published As
Publication number | Publication date |
---|---|
CN108761518B (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1071914C (en) | Method and device for encoding signal, method and device for decoding signal, and recording medium | |
CN108833050B (en) | Coding method, interpretation method, device and equipment | |
CN1112799A (en) | Method and apparatus for encoding digital signals, method and apparatus for decoding the coded signals, and medium for recording the coded signals | |
CN101923569B (en) | Storage method of structure type data of real-time database | |
CN100545882C (en) | The self-adaptive decoding method that is used for wireless remote control receiving chip | |
CN108761518A (en) | A kind of multiple tracks gamma-spectrometric data serializing compression and restoring method | |
CN107135004A (en) | A kind of adaptive real-time lossless compression method to earthquake data flow | |
CN101667843B (en) | Methods and devices for compressing and uncompressing data of embedded system | |
CN1933334A (en) | System and method for converting from scaled binary coded decimal into decimal floating point | |
TW200627401A (en) | Error detecting code addition circuit, error detection circuit and method, and disc apparatus | |
CN101202548A (en) | Double runs data coding method | |
CN103413335A (en) | Method and device for data compression | |
CN102904580B (en) | X-BIT Coding Compression Algorithm | |
CN101512372B (en) | Data encoding having digitized MR signal with variable bit rate | |
CN103746702B (en) | Lossless data compression method and lossless data compression device | |
CN101592500B (en) | Four-position angle coder | |
CN104579358A (en) | Fault recording data compression method | |
CN108663707A (en) | A kind of repeatedly two-way S-K smoothing processings system and method | |
CN104895555A (en) | Logging depth real-time correction high-accuracy depth interval generation device and method | |
CN1104693C (en) | Arithmetic and logic unit | |
CN105103226A (en) | Low-complexity tonality-adaptive audio signal quantization | |
CN102783037A (en) | Data compression device, data compression method, and program | |
US3646445A (en) | Adaptive extremal coding of analog signals | |
CN112987117B (en) | Uranium ore quantitative conversion coefficient solving method based on natural gamma energy spectrum logging multi-characteristic peak combination | |
CN202471097U (en) | Hall multi-turn absolute position encoder |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |