CN116558639A - Photon counting data processing method, device and system for spectrum measurement - Google Patents

Photon counting data processing method, device and system for spectrum measurement Download PDF

Info

Publication number
CN116558639A
CN116558639A CN202310532438.3A CN202310532438A CN116558639A CN 116558639 A CN116558639 A CN 116558639A CN 202310532438 A CN202310532438 A CN 202310532438A CN 116558639 A CN116558639 A CN 116558639A
Authority
CN
China
Prior art keywords
data
channels
sampling data
accumulated
channel
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.)
Pending
Application number
CN202310532438.3A
Other languages
Chinese (zh)
Inventor
汤天云
王建禄
张俊芹
赵慧敏
陈海霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhuoli Hanguang Analytical Instrument Co ltd
Zolix Instruments Co ltd
Original Assignee
Beijing Zhuoli Hanguang Analytical Instrument Co ltd
Zolix Instruments Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Zhuoli Hanguang Analytical Instrument Co ltd, Zolix Instruments Co ltd filed Critical Beijing Zhuoli Hanguang Analytical Instrument Co ltd
Priority to CN202310532438.3A priority Critical patent/CN116558639A/en
Publication of CN116558639A publication Critical patent/CN116558639A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J11/00Measuring the characteristics of individual optical pulses or of optical pulse trains
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/28Investigating the spectrum
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2462Approximate or statistical queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/44Electric circuits
    • G01J2001/4413Type
    • G01J2001/442Single-photon detection or photon counting

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The application discloses a photon counting data processing method, device and system for spectrum measurement, wherein the method comprises the following steps: when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels; if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel; and transmitting the read accumulated sampling data of a plurality of channels to an upper computer. The method reduces the test time of sampling the small integration time, solves the problems of long waiting time and long feedback-free time of the upper computer under the long integration time, and is suitable for data sampling of the small integration time and the long integration time.

Description

Photon counting data processing method, device and system for spectrum measurement
Technical Field
The present disclosure relates to the field of photon counting technologies, and in particular, to a method, an apparatus, and a system for processing photon counting data in spectrum measurement.
Background
This section is intended to provide a background or context to the embodiments of the application recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, certain substances emit very weak light signals after illumination, and the light intensity is 10 -14 Below W, the signal takes the form of a single photon, which is difficult to measure by a conventional detection circuit, and the intensity of the optical signal can be recorded only by a mode of a plurality of single photon pulses (namely, a photon counter), namely, the single photon counter. The photon counter can be used for transient life measurement, and can also be applied to quantitative qualitative analysis steady state detection in many fields of biology, medicines, environment and the like to realize steady state measurement (namely, independent time and single measurement related to spectrum position and the like).
In some life transient tests such as fluorescence and phosphorescence, a fluorescence and phosphorescence signal emitted after the substance is excited shows a decay trend along with time, and the decay curve of the signal is collected and recorded in a photon counting mode for identifying and analyzing the substance. For collecting and calculating an accurate life curve, the life cycle is divided into a plurality of time periods (called channels) to collect photon data, and the key points are as follows: firstly, time correlation requires time accuracy, namely, the optical signal intensity changing along with time can be accurately recorded, and the time interval between two acquired data (namely, between two channels) cannot be reserved. And secondly, data processing, namely, the signals are weaker, and tens of thousands of times of substance excitation are needed to generate tens of thousands of life curves, so that the complete signals can be distinguished by accumulating, denoising and data processing on tens of thousands of times of data in real time. After some substances are excited, the life time of the excited fluorescence and phosphorescence is short, and data acquisition and storage under nanosecond (ns) level integration time (nanosecond channel) are required to be realized; after some substances are excited, the life time of fluorescence and phosphorescence excited is longer, and data acquisition and storage under the second(s) level integration time (second level channel) are required to be realized.
Therefore, the correlation of time is ensured during measurement, no time interval exists between the two channels, and the positions of the channels are not disordered and misplaced when substances are excited each time. And data processing can be carried out on corresponding channel serial data in real time in each life curve measurement process.
Under the condition of small integration time (20 ns, for example), the acquisition time is fast, the data generation speed is fast, the data volume is large, and the data transmission time is far longer than the acquisition time in the total life measurement time, so that the situation that the upper computer consumes memory is caused by uploading all data in the middle process to the upper computer, but the redundant data transmission time is removed according to the acquisition rate and the transmission rate in a self-adaptive mode, and the total life measurement time is ensured to be close to the theoretical time consumption. The total life measurement time is not long, and the final collection result (for example, 10000 channels of data) can be transmitted after collection is completed, but if the total life measurement time is large integral time (for example, 1 s), 10000 times of data and 10000 channels of data, the total life measurement time is 100,000,000s, and if the final collection result is transmitted after collection is completed, the upper computer software is always in a waiting and non-display state, so that the user experience is very bad.
At present, two common solutions exist, one is to directly upload the data collected each time to an upper computer, and the upper computer processes the data. And when the sample is excited for multiple times to carry out accumulation test, the upper computer issues multiple collection instructions. In the mode, under the condition of small integration time, the number of acquired channels and the acquisition times reach 10000, when 10000 times are acquired, the uploaded data volume is very large, compared with the acquisition rate under the condition of small integration time, the speed of uploading data and the acquisition instruction issued by the upper computer are relatively slow, so that the time of uploading data and the acquisition instruction issued by the upper computer is far longer than the acquisition time of the data, and the time of the whole test is additionally increased. The other mode is that the data acquisition and data processing are performed by the lower computer, when the data are acquired and processed for many times, the time for the upper computer to frequently issue the acquisition instruction is reduced, only the data acquired and processed for the last time are uploaded, and the number of uploaded data is reduced, so that the time for uploading the data is reduced, and the whole test time is close to the theoretical data acquisition time. Under the condition of large integration time, in the multi-channel multi-time measurement, the total time of life measurement is long, the data volume is large, and if the measurement and life data processing processes are completed in a lower computer, the acquisition time reaches several hours. In the process, the middle measurement data is not uploaded, so that a tester can misuse the upper computer to be in a dead state, the measurement progress and the measurement condition are not known, whether the current upper computer is in a normal working state or not can not be confirmed, and very bad use experience is brought to a user.
Disclosure of Invention
An object of the present application is to provide a photon counting data processing method for spectrum measurement, which reduces the test time of sampling with small integration time, solves the problems of long waiting time and no feedback for a long time of an upper computer under long integration time, and adapts to data sampling with small integration time and long integration time. It is another object of the present application to provide a photon counting data processing device for spectroscopic measurements. It is yet another object of the present application to provide a photon counting data processing system for spectroscopic measurements. It is yet another object of the present application to provide a computer device. It is yet another object of the present application to provide a readable medium.
To achieve the above object, in one aspect, the present application discloses a photon counting data processing method for spectrum measurement, including:
when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels;
if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel;
and transmitting the read accumulated sampling data of a plurality of channels to an upper computer.
Optionally, the method further comprises the step of sequentially writing the accumulated sample data to the plurality of channels while reading the accumulated sample data of the plurality of channels.
Optionally, the writing the accumulated sampling data to the plurality of channels sequentially specifically includes:
the method comprises the steps of sequentially taking a plurality of channels as target writing channels to execute writing of sampling data, wherein the writing step of the sampling data comprises the following steps:
reading stored accumulated sampling data from a corresponding storage area according to the target writing channel;
superposing the sampling data on the basis of the accumulated sampling data to obtain updated sampling data;
and writing the updated sampling data serving as the accumulated sampling data into a storage area corresponding to the target writing channel.
Optionally, when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, if yes, the reading the sampling data of the current channel specifically includes:
taking the first channel as a target reading channel;
executing a channel number reading step for the target reading channel, the channel number reading step comprising: determining whether the channel number of the target reading channel is smaller than or equal to the number of the channels, if so, reading accumulated sampling data in the target reading channel;
and repeating the step of reading the channel number data by taking the next channel as the target reading channel until the accumulated sampling data of all channels are read.
Optionally, the method further comprises:
and uploading all the sampled data to the upper computer after the sampling is finished.
Optionally, before sequentially reading the accumulated sample data of the plurality of channels:
determining the writing times of writing the accumulated sampling data;
and if the reading times of the accumulated sampling data of the reading channels are larger than the writing times, stopping sequentially reading the accumulated sampling data of the plurality of channels.
The application also discloses a photon counting data processing device for spectrum measurement, comprising:
when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels;
if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel;
and transmitting the read accumulated sampling data of a plurality of channels to an upper computer.
The application also discloses a photon counting data processing system for spectrum measurement, which comprises the photon counting data processing device for spectrum measurement, a photon counter and an upper computer.
The embodiment of the application also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method when executing the computer program.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
When the photon counting data processing method for spectrum measurement reads accumulated sampling data of a plurality of channels, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels; if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel; and transmitting the read accumulated sampling data of a plurality of channels to an upper computer. Therefore, the data writing and the data reading of the sampling data of each channel are separated, whether the current reading times are smaller than the current writing times is determined when the data is read, if the reading channel number of the current channel is smaller than or equal to the number of the channels, the accumulated sampling data of the current channel is updated in the process of writing the sampling data, and the accuracy of the accumulated sampling data uploaded after the reading is ensured. The processing of the sampling data of the photon counting data processing method for spectrum measurement is completed in the photon counting data processing device for spectrum measurement, each sampling data does not need to be uploaded and the instruction of the upper computer is waited for obtaining the next sampling data, and the test time of sampling with small integration time is reduced. Under the scene of long integration time, the writing and reading processes of the sampling data are separated, and partial accumulated sampling data are adaptively uploaded to an upper computer under the condition of ensuring the accuracy of accumulated sampling data of a plurality of channels to be read each time, so that the upper computer can update a life curve formed based on the accumulated sampling data, an upper computer interface is always in dynamic display, and the problems of long waiting time and no long feedback of the upper computer under the condition of long integration time are solved. The method can be well suitable for data sampling with small integration time and long integration time, and supports transient test and steady state test of substances.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a block diagram of an embodiment of a photon counting data processing system for spectral measurement according to the present application;
FIG. 2 is a flow chart of an embodiment of a photon count data processing method for spectral measurement according to the present application;
FIG. 3 is a flowchart of an embodiment S400 of a photon counting data processing method for spectral measurement according to the present application;
FIG. 4 is a flowchart of an embodiment S200 of a photon counting data processing method for spectral measurement according to the present application;
FIG. 5 is a flowchart of a method for processing photon count data for spectral measurement according to an embodiment of the present application, including S500;
FIG. 6 is a flowchart of an embodiment S000 of a photon count data processing method for spectral measurement according to the present application;
FIG. 7 is a block diagram of an embodiment of a photon counting data processing device for spectral measurement according to the present application;
fig. 8 shows a schematic structural diagram of a computer device suitable for use in implementing embodiments of the present invention.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. The illustrative embodiments of the present application and their description are presented herein to illustrate the application and not to limit the application.
Fig. 1 is a schematic structural diagram of a photon counting data processing system for spectrum measurement according to an embodiment of the present application, and as shown in fig. 1, the photon counting data processing system for spectrum measurement according to an embodiment of the present application includes a photon counting data processing device 1 for spectrum measurement, a photon counter 2 and a host computer 3.
The photon counting data processing device 1 is configured to determine, when reading accumulated sampling data of a plurality of channels, whether the number of times of reading is greater than the number of times of writing the sampling data into the plurality of channels, where the accumulated sampling data is an accumulated value of all sampling data acquired by the photon counter 2 in a corresponding channel; if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel; the read accumulated sample data of a plurality of channels is transmitted to the host computer 3.
Taking the photon counting data processing device 1 for spectrum measurement as an execution subject, the implementation procedure of the photon counting data processing method for spectrum measurement provided in the embodiment of the present application is described below. It is understood that the execution subject of the photon count data processing method for spectral measurement provided in the embodiments of the present application includes, but is not limited to, the photon count data processing apparatus 1 for spectral measurement.
According to one aspect of the present application, the present embodiment discloses a photon count data processing method for spectroscopic measurements. As shown in fig. 2, in this embodiment, the method includes:
s100: when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels.
S200: if not, sequentially reading the accumulated sampling data of the channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel.
It can be understood that if the number of the read channels of the current channel is smaller than or equal to the number of channels, it indicates that the accumulated sample data of all the channels have not been read. And when the number of the read channel of the current channel is larger than the number of the channels, the number of the read channel is reset to be the channel number of the first channel, and the process of reading the accumulated sampling data of all the channels at one time is restarted from the first channel.
S300: and transmitting the read accumulated sampling data of a plurality of channels to an upper computer.
According to the method and the device, data writing and data reading of sampling data of each channel are separated, whether the current reading times are smaller than the writing times is determined when the data is read, if the reading times are smaller than or equal to the writing times of the writing sampling data, the accumulated sampling data of the current channel which is read are updated accumulated sampling data in the process of writing the sampling data, and accuracy of the accumulated sampling data uploaded after reading is guaranteed. The processing of the sampling data of the photon counting data processing method for spectrum measurement is completed in the photon counting data processing device for spectrum measurement, each sampling data does not need to be uploaded and the instruction of the upper computer is waited for obtaining the next sampling data, and the test time of sampling with small integration time is reduced. Under the scene of long integration time, the writing and reading processes of the sampling data are separated, and partial accumulated sampling data are adaptively uploaded to an upper computer under the condition of ensuring the accuracy of accumulated sampling data of a plurality of channels to be read each time, so that the upper computer can update a life curve formed based on the accumulated sampling data, an upper computer interface is always in dynamic display, and the problems of long waiting time and no long feedback of the upper computer under the condition of long integration time are solved. The method can be well suitable for data sampling with small integration time and long integration time, and supports transient test and steady state test of substances.
Specifically, it can be understood that, in order to ensure that the corresponding relationship of each channel data does not generate dislocation, the application sets a plurality of adjacent storage areas in a data storage Register (RAM), and sets the plurality of storage areas as channels corresponding to channel numbers in sequence according to the adjacent relationship of positions. For example, in a specific example, n adjacent storage areas are provided in the RAM, and the n storage areas are channels with channel numbers of 1 and 2 … n, respectively. After the sampling data is acquired, an accumulated value obtained by accumulating the sampling data corresponding to each channel is required to be used as accumulated sampling data, and a life curve is formed according to the accumulated sampling data of a plurality of channels.
In an alternative embodiment, the method further includes a step S400 of sequentially writing the accumulated sample data to the plurality of channels while reading the accumulated sample data of the plurality of channels.
In an alternative embodiment, as shown in fig. 3, the writing, in order, the accumulated sample data into the plurality of channels in S400 specifically includes:
s410: the method comprises the steps of sequentially taking a plurality of channels as target writing channels to execute writing of sampling data, wherein the writing step of the sampling data comprises the following steps:
s411: and reading the stored accumulated sampling data from the corresponding storage area according to the target writing channel.
S412: and superposing the sampling data on the basis of the accumulated sampling data to obtain updated sampling data.
S413: and writing the updated sampling data serving as the accumulated sampling data into a storage area corresponding to the target writing channel.
Specifically, it can be understood that when the sampled data is written, the stored accumulated sampled data can be read from the target writing channel to be written currently, and the obtained sampled data is overlapped to obtain updated accumulated sampled data and then written back to the storage area of the target writing channel.
When the sampling data is written into the channel for the first time, the accumulated sampling data stored in the corresponding channel is sequentially read from 1 to n according to the channel numbers of the channels, and the updated accumulated sampling data is obtained after the accumulated sampling data is superimposed on the basis of the accumulated sampling data and then written into the corresponding channel. For example, in a specific example, after the accumulated sample data a is taken out from the channel of the channel number 1, the sample data B and the accumulated sample data a are added to obtain updated accumulated sample data C, and then the updated accumulated sample data C is rewritten back to the storage area of the corresponding channel of the channel number 1. According to the method and the device, the processing process of the sampling data is placed in the photon counting data processing device, the process that the sampling data needs to be uploaded every time can be reduced, then the sampling instruction is received again to acquire the sampling data again, and the method and the device are suitable for rapid data sampling under small integration time.
In an alternative embodiment, as shown in fig. 4, when the accumulated sampling data of each channel is read, S200 determines whether the read channel number of the current channel is smaller than or equal to the number of channels, and if yes, the reading the sampling data of the current channel specifically includes:
s210: the first channel is taken as the target read channel.
S220: executing a channel number reading step for the target reading channel, the channel number reading step comprising: and determining whether the channel number of the target reading channel is smaller than or equal to the number of the channels, and if so, reading the accumulated sampling data in the target reading channel.
S230: and repeating the step of reading the channel number data by taking the next channel as the target reading channel until the accumulated sampling data of all channels are read.
When the accumulated sampling data is read, the accumulated sampling data in all channels are required to be read once every time when the data is read, and the current accumulated sampling data of a plurality of channels which are read once are uploaded to the upper computer, so that the upper computer can display the accumulated sampling data in the sampling process, and after the sampling is finished, the final accumulated sampling data in each channel is uploaded to the upper computer. For example, in a specific example, the accumulated sample data of each channel is sequentially read from channel 1 to channel n, and then the accumulated sample data of n channels is uploaded to the host computer. And in the next reading process, the accumulated sampling data of each channel are sequentially read from the channel 1 to the channel n, and then the accumulated sampling data of the n channels are uploaded to the upper computer. Therefore, whether the accumulated sampling data is read and uploaded to the upper computer is not required to be considered when the data is written, and only the fact that the channel number of the current accumulated sampling data is smaller than or equal to the number of the set channels when the accumulated sampling data is read each time is required to be guaranteed, so that the process of reading the data is guaranteed not to cause confusion of the read data after the process of writing the data, and the accumulated sampling data which is not updated is read by mistake.
In an alternative embodiment, as shown in fig. 5, the method further comprises:
s500: and uploading all the sampled data to the upper computer after the sampling is finished.
Specifically, it can be understood that after the sampling is finished, all the sampled data needs to be uploaded to the upper computer. Therefore, when the integration time is small, the time for reading and uploading accumulated sampling data is longer than the sampling time of the sampling data, the sampling data acquired in the sampling process may not be all uploaded to the upper computer in the sampling process, so that all the sampling data are required to be uploaded to the upper computer after the sampling is finished, the sampling data which are not uploaded to the upper computer in the sampling process and the accumulated sampling data can be all uploaded to the upper computer for further data processing after the sampling process is finished, and the finally obtained life curve is perfected.
The method comprises the steps of setting a maximum sampling frequency in a sampling process of sampling data each time, wherein the maximum sampling frequency corresponds to a maximum writing frequency, and ending the sampling process when the writing frequency reaches the maximum sampling frequency.
In an alternative embodiment, as shown in fig. 6, the method further includes, before sequentially reading the accumulated sample data of the plurality of channels, S000:
s010: the number of writes to which the accumulated sample data is written is determined.
S020: and if the reading times of the accumulated sampling data of the reading channels are larger than the writing times, stopping sequentially reading the accumulated sampling data of the plurality of channels.
Specifically, it can be understood that after the sampled data is written into the updated accumulated sampled data, the updated accumulated sampled data needs to be uploaded to the upper computer. Thus, when the number of readings of the reading channel is greater than the number of writing, it means that the accumulated sample data updated according to the sample data has been read, and thus it is necessary to stop continuing to read the accumulated sample data.
The data acquisition and the data processing are all performed by the device, the upper computer only needs to send a starting command once when in starting, and the controller automatically realizes multi-channel and multi-time acquisition and data processing; meanwhile, a dynamic transmission mechanism of the data quantity is designed, the data acquisition speed is high, the data transmission is used for transmitting the intermediate data of the life measurement at a fixed speed, and the data can be transmitted in a jumping mode according to the length of the integration time. When the data acquisition speed is low and the data acquisition time of each channel is far longer than the data transmission time, uploading data of each channel one by one in the time of service life, updating a service life curve by upper computer software in an iterative updating mode, and enabling an upper computer interface to be always in dynamic display, wherein the finally uploaded data is final data after full-channel data acquisition and processing.
In transient test, under different integration time, the test time is close to the theoretical acquisition time, so that data can be transmitted to an upper computer while counting, and an interface of the upper computer is always in dynamic display; and uploading partial data in a self-adaptive mode according to the acquisition rate and the transmission rate, controlling the quantity of the uploaded data, and realizing a dynamic transmission mechanism. According to the method and the device, partial data is uploaded in a self-adaptive mode according to the acquisition rate and the transmission rate, the quantity of the uploaded data is controlled, a mechanism for realizing dynamic transmission is used for realizing testing of a wide time domain, the method and the device are suitable for testing of small integration time and large integration time, the test time under the small integration time can be ensured to be close to theoretical acquisition time, and the software interface can dynamically display the data under the large integration time. An anti-collision mechanism is added to avoid reading collision; the machine is suitable for steady state measurement, measurement under the condition of long service life and integration time of transient measurement, measurement under the condition of short service life and integration time of transient measurement, and multiple purposes. The method has the following specific beneficial effects: 1) In transient test, the ideal effect can be achieved under the condition of realizing the integral time of the size; 2) Improving the display refreshing effect of the upper computer; 3) The whole technical scheme can obviously improve the transmission efficiency and the transmission speed of the sampled data. Thereby improving the test experience of the whole product. Under the principle of saving hardware resources and reducing cost, the storage space is reduced, a small RAM area is opened up, an FPGA is used, an external memory is not needed, no redundant elements are needed, the hardware design difficulty is reduced, the number of external devices is reduced, the communication and connection among a plurality of components are reduced, and the error rate and the debugging difficulty are reduced. Conventional designs require the creation of multiple RAM areas, storing data over multiple life cycles, such as an immediate acquisition memory area for all channels for a single life measurement, a data processing memory area for all channels for a current life measurement, a memory area for read data for all channels for a current life measurement, an immediate uploaded single life data memory area, and so on.
Based on the same principle, the application also discloses a photon counting data processing device for spectrum measurement. As shown in fig. 7, in the present embodiment, the apparatus includes a read determination module 11, a data reading module 12, and a data transmission module 13.
The reading determination module 11 is configured to determine, when reading accumulated sample data of a plurality of channels, whether the number of times of reading is greater than the number of times of writing the sample data into the plurality of channels, where the accumulated sample data is an accumulated value of all sample data of a corresponding channel;
the data reading module 12 is configured to sequentially read accumulated sample data of a plurality of channels if not, wherein when the accumulated sample data of each channel is read, it is determined whether the read channel number of the current channel is smaller than or equal to the number of the channels, if yes, the sample data of the current channel is read;
the data transmission module 13 is configured to transmit the read accumulated sampled data of the plurality of channels to an upper computer.
Since the principle of the device for solving the problem is similar to that of the above method, the implementation of the device can be referred to the implementation of the method, and will not be described herein.
The embodiment of the application also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the method when executing the computer program.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program to produce a system, apparatus, module, or unit of the embodiments described above, which may be implemented in particular by a computer chip or entity, or by an article of manufacture having some function. A typical implementation device is a computer device, which may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
In a typical example, the computer apparatus includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement a method performed by a client as described above, or where the processor executes the program to implement a method performed by a server as described above.
Referring now to FIG. 8, a schematic diagram of a computer device 600 suitable for use in implementing embodiments of the present application is shown.
As shown in fig. 8, the computer apparatus 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate works and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM)) 603. In the RAM603, various programs and data required for the operation of the system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal feedback device (LCD), and the like, and a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 606 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on drive 610 as needed, so that a computer program read therefrom is mounted as needed as storage section 608.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A method of processing spectroscopically measured photon count data, comprising:
when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels;
if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel;
and transmitting the read accumulated sampling data of a plurality of channels to an upper computer.
2. The method of claim 1, further comprising the step of sequentially writing the accumulated sample data to the plurality of channels while reading the accumulated sample data of the plurality of channels.
3. The method for processing photon counting data for spectral measurement according to claim 2, wherein sequentially writing the accumulated sample data to the plurality of channels comprises:
the method comprises the steps of sequentially taking a plurality of channels as target writing channels to execute writing of sampling data, wherein the writing step of the sampling data comprises the following steps:
reading stored accumulated sampling data from a corresponding storage area according to the target writing channel;
superposing the sampling data on the basis of the accumulated sampling data to obtain updated sampling data;
and writing the updated sampling data serving as the accumulated sampling data into a storage area corresponding to the target writing channel.
4. The method for processing photon counting data according to claim 1, wherein when reading the accumulated sampling data of each channel, determining whether the read channel number of the current channel is smaller than or equal to the number of channels, if so, specifically includes:
taking the first channel as a target reading channel;
executing a channel number reading step for the target reading channel, the channel number reading step comprising: determining whether the channel number of the target reading channel is smaller than or equal to the number of the channels, if so, reading accumulated sampling data in the target reading channel;
and repeating the step of reading the channel number data by taking the next channel as the target reading channel until the accumulated sampling data of all channels are read.
5. The method of processing spectroscopically measured photon count data according to claim 1, further comprising:
and uploading all the sampled data to the upper computer after the sampling is finished.
6. The method of claim 2, further comprising, prior to sequentially reading the accumulated sample data for the plurality of channels:
determining the writing times of writing the accumulated sampling data;
and if the reading times of the accumulated sampling data of the reading channels are larger than the writing times, stopping sequentially reading the accumulated sampling data of the plurality of channels.
7. A spectroscopically measured photon count data processing apparatus, comprising:
when the accumulated sampling data of a plurality of channels are read, determining whether the reading times are larger than the writing times of the sampling data written into the channels, wherein the accumulated sampling data are accumulated values of all sampling data of the corresponding channels;
if not, sequentially reading the accumulated sampling data of a plurality of channels, wherein when the accumulated sampling data of each channel is read, determining whether the read channel number of the current channel is smaller than or equal to the number of the channels, and if so, reading the sampling data of the current channel;
and transmitting the read accumulated sampling data of a plurality of channels to an upper computer.
8. A spectroscopically measured photon count data processing system comprising the spectroscopically measured photon count data processing device of claim 7, a photon counter, and a host computer.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 6 when executing the computer program.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of any of claims 1 to 6.
CN202310532438.3A 2023-05-11 2023-05-11 Photon counting data processing method, device and system for spectrum measurement Pending CN116558639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310532438.3A CN116558639A (en) 2023-05-11 2023-05-11 Photon counting data processing method, device and system for spectrum measurement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310532438.3A CN116558639A (en) 2023-05-11 2023-05-11 Photon counting data processing method, device and system for spectrum measurement

Publications (1)

Publication Number Publication Date
CN116558639A true CN116558639A (en) 2023-08-08

Family

ID=87485658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310532438.3A Pending CN116558639A (en) 2023-05-11 2023-05-11 Photon counting data processing method, device and system for spectrum measurement

Country Status (1)

Country Link
CN (1) CN116558639A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117852566A (en) * 2024-02-29 2024-04-09 宁德时代新能源科技股份有限公司 Method and system for entering station of battery cell

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117852566A (en) * 2024-02-29 2024-04-09 宁德时代新能源科技股份有限公司 Method and system for entering station of battery cell
CN117852566B (en) * 2024-02-29 2024-09-13 宁德时代新能源科技股份有限公司 Method and system for entering station of battery cell

Similar Documents

Publication Publication Date Title
CN110704751B (en) Data processing method and device, electronic equipment and storage medium
CN108133732B (en) Performance test method, device and equipment of flash memory chip and storage medium
CN109992498B (en) Test case generation method and system and computer system
US20220129825A1 (en) Method for estimating amount of task objects required to reach target completed tasks
CN104461899B (en) The method, test terminal and system of consumed resource are analyzed in test process
CN106802935A (en) The method of testing and device of a kind of page fluency
CN105068936B (en) Method and device for testing stability of software
CN116558639A (en) Photon counting data processing method, device and system for spectrum measurement
CN105187608B (en) The method and apparatus of application program power consumption on a kind of acquisition mobile terminal
CN107703319A (en) Reagent management method and device, Biochemical Analyzer, the storage medium of Biochemical Analyzer
CN115203004A (en) Code coverage rate testing method and device, storage medium and electronic equipment
US20200409662A1 (en) Method and apparatus for generating chip-based computing function, device, and storage medium
CN111857719A (en) Data processing method, device, electronic equipment and medium
CN108571997A (en) A kind of method and apparatus that measured point is steadily contacted in detection probe
CN111402220B (en) Method and device for acquiring information
CN110221261B (en) Radar waveform generation module test analysis method and device
CN107515803A (en) A kind of storing performance testing method and device
CN109783745B (en) Method, device and computer equipment for personalized typesetting of pages
CN110532193A (en) A kind of method for analyzing performance, calculates equipment and storage medium at device
CN116301992A (en) Upgrading method, device, equipment and storage medium
CN112564996A (en) Pressure test flow scheduling method, pressure test flow control device and computer readable medium
CN117251355A (en) Performance test method, device, equipment, computer readable storage medium and product
CN116008779A (en) Integrated circuit detection method, apparatus, device, storage medium and program product
CN117667663A (en) Control positioning path determining method, device, equipment, storage medium and product
CN116991693B (en) Test method, device, equipment and storage medium

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