LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform processing

What will you get if you feed the array to a "In range co-oerce" vi? The range you can specify and you get boolean values automatically too.
0 Kudos
Message 11 of 20
(1,554 Views)

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

0 Kudos
Message 12 of 20
(1,554 Views)

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

0 Kudos
Message 13 of 20
(1,542 Views)
inran.JPG
0 Kudos
Message 14 of 20
(1,541 Views)

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.

0 Kudos
Message 15 of 20
(1,533 Views)
Try this
Tim
GHSP
Message 16 of 20
(1,514 Views)

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! 

Message Edited by johnsold on 05-25-2010 10:43 AM
Message 17 of 20
(1,509 Views)
Found one mistake. Here is the new one
Message Edited by aeastet on 05-25-2010 10:48 AM
Tim
GHSP
Message 18 of 20
(1,506 Views)

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

0 Kudos
Message 19 of 20
(1,480 Views)
I had to use 35 to get the right number of pulses. If I used anything less I got too few or too many pulses.
Tim
GHSP
Message 20 of 20
(1,469 Views)