05-25-2010 02:00 AM - edited 05-25-2010 02:03 AM
This is the waveform i derived from the oscilloscope.
Time scale: 100 ms
25K samples per second
By manual means of measurement from the oscilloscope the time duration between A and B was found to be 70 ms and the pulse width (any pulse) was approximately 72 microsec.
I need to read the binary data from this waveform and then i need to convert that to a hexadecimal value. Any suggestion how to handle this?
05-25-2010 02:27 AM
05-25-2010 02:44 AM
muks wrote:
Do you mean you want to calculate the 0s and 1s from the wave form? Or zeros and all other non-zero values ?
Thanks MUKS for looking in to it. I want to find out the 0s and 1s and the resultant binary value needs to be decoded into hexadecimal value.
05-25-2010 02:47 AM
05-25-2010 04:12 AM

05-25-2010 07:30 AM
Dear Muks, yes i can get the waveform graph values into the array.
Dear Coq Rouge, no i do not want to do the ADC. Yes as you said, the samples are stored as floating point values in the array. Based on that i need to determine the binary value of the pulse.
05-25-2010 07:39 AM
Mathan wrote:Dear Muks, yes i can get the waveform graph values into the array.
Dear Coq Rouge, no i do not want to do the ADC. Yes as you said, the samples are stored as floating point values in the array. Based on that i need to determine the binary value of the pulse.
I then you say binary value. Do you mean binary like true or false or something else. I think you must elaborate on what you are trying to do. Because I do not get it

05-25-2010 07:53 AM
MAthan,
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.
Lynn
05-25-2010 08:01 AM
Dear Coq Rouge, thanks for the continuous support.
Sorry please forget about the previous posts. Here is the new complete updated requirement. There are two waveforms acquired from two separate channels from the oscilloscope TDS7404 as shown in the picture.
When there is a low pulse in the first waveform, it should be decoded as binary '0' and when there is a low pulse in the second waveform, it should be decoded as binary '1'. In the other cases like when both the waveforms are in the same state (both are high or both are low) simply neglect the value and do not consider it for binary value. Am i clear. Please ask me if i was not clear with my explanation. Please find the attached vi with the real data acquired from the oscilloscope.
05-25-2010 08:03 AM
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.