From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

extracting data at particular times

netra
Posts: 11
0 Kudos
 

extracting data at particular instants from chart

Hi,

 

I have a labview program that gives me real time frequency and mass values and is working fine. Now I'm trying to modify this program and get mass at particular instants. I have attached a picture that roughly shows which values from my waveform chart I want to extract.

So here, A and B are reactants and each pulse is made up of user defined dose and purge times( in sec) . 'EA' is the extra purge time after pulses of reactant A.

I want to extract data at the circled instants in the picture i.e one second before the current pulse ends in two files for reactant A and B respectively

I have tried doing this but it is getting me nowhere near the result

I don't know what to do now. I have attached my VI

and have written comments in the required part. I hope I have explained my logic clearly. ( big chance that my logic itself is wrong )

I hope I have made my question clear.

Please suggest something! I am completely lost.

 

Thanks in advance!

Download All
0 Kudos
Message 1 of 2
(5,368 Views)

Find the delta t (time) between samples, create a lossy queue with the number of elements equal to the number of sample points in a second.  Write every data point to the queue, and detect the pulse with a slope threshold.  When you detect the next pulse, read the overflow element from the queue and that will be your sample point at pulse-1sec.  I have attached an example that shows this in real-time using programmatically generated data.

0 Kudos
Message 2 of 2
(5,081 Views)