Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 202521

Re: Continious histogram

$
0
0

In the Producer-Loop the DAQ-Assistant passes on the data of the diode, which consists of time intervals between two photons. These data go into an integral  where they are summed, so that a "measurement time" is created with the information on when each photon has arrived.

 

E.g.:

 

The Data from the DAQ-Assistant:

0    0.00547058    
1    0.0173921    
2    0.00982199    
3    0.0153614    
4    0.000336637    
5    0.00874105    
6    0.00462859

 After the Integration:

0 0.00547058
1 0.02286218
2 0.03268417
3 0.04804557
4 0.0483822
5 0.05712325
6 0.06175184
....

This data represents the measuring time by the number of detected photons and the time of detection. 

In the consumer loop, a histogram is created so far over a fixed number of bins.

 

Now I want one more histogram, which runs along continuously with time, and in which each bin is supposed to represent a period of time.

E.g.:

0	0.00200564	
1	0.00600105	
2	0.00894052	
3	0.00937381	
4	0.0118768	
5	0.0125672	
6	0.0188067	
7	0.0195961	
8	0.0270676	
9	0.0297043	
10	0.0305529	

 represent the first 10 photons. And in die continously histogram should be for example every bin represent 10ms. 

 

Thus the first bin counts 4, the second also 4, but the third only two counts high.

 

0	0.00200564	
1	0.00600105	
2	0.00894052	
3	0.00937381

4 0.0118768 5 0.0125672 6 0.0188067 7 0.0195961

8 0.0270676 9 0.0297043

10 0.0305529

Viewing all articles
Browse latest Browse all 202521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>