05-25-2010 08:04 AM
05-25-2010 08:05 AM
johnsold wrote:I cannot understand what you are trying to do either. Please describe what the output should look like for the signal you posted.
Also, it appears that there is a timing discrepancy. You indicate that the data pictured represent 100 ms and that the sample rate is 25 kS/s, but it looks like you have plotted 25000 samples.
Dear Lynn, thanks for the support. Sorry for i was not clear. The output will look like 00000000000000000110110000..... (0 for 1st waveform low pulse and 1 for 2nd waveform low pulse).
Kindly ignore the first post data. Please look into the 9th post. Thanks again.
Mathan
05-25-2010 08:10 AM
aeastet wrote:Hi Mathan,
I am not really sure what you are looking for here. I tried to help with what I think you are asking for. I find the peaks in the data then convert the peakloactions to binary and to hex.
Thanks a lot aeastet. I will look into it. Kindly read the 9th post in this thread and please let me know whether i was clear this time.
Thanks,
Mathan
05-25-2010 08:13 AM
05-25-2010 08:19 AM
muks wrote:
Sorry Muks. Here we need to check out both the waveform arrays at a time and if there is a low pulse occured at the 1st waveform it should be stored as a binary '0' and if there is a low pulse at the 2nd waveform it should be stored as a binary '1'. So the transition needs to be compared with both the waveforms.
05-25-2010 09:29 AM
05-25-2010 09:42 AM - edited 05-25-2010 09:43 AM
Mathan,
Is this what you are trying to do? The shift registers and logic find the falling edges of each of the waveforms. When a falling edge is found, the next element in the output array, Pulses, is replaced with a zero or one, depending one which waveform had an edge. If both waveforms have edges at the same time, two entries will appear in the output array with the one last.
I initialized the Pulses array with -1. You could delete the portion with -1 to get an array of just the pulses.
Lynn
Oops. Forgot the attachement!
05-25-2010 09:44 AM - edited 05-25-2010 09:48 AM
05-26-2010 05:23 AM
Dear aeastet and Lynn,
Thanks for the wonderful support. Both the programs works perfectly.
Aeastet, in the peak detector vi detecting valleys, you gave width as 35 and any particular reason behind it?
I am now confused which post to mark as solution. Both are working perfectly for me. Kudos to all of you.
Thanks,
Mathan
05-26-2010 06:29 AM