LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure the height of an square pulse

Thank you very much for your help.
Unfortunately I can't run your program because I don't have LabView 7. Can you please send me an picture of the block diagram ?

> Take out your indicator and your time improves a lot
> (to about 17 sec).

I have done that in my first test and took more than hour anyway. That's why I included that indicator to watch the progress. But you right by using it you get the wrong time for the routine. But it is supposed to do the analysis in approximately one second. So it doesn't if it is done in hour or more. It is too slow anyway in this case.

> Third, don't use DELETE ARRAY in a loop if you can
> avoid it.

I like to reduce the data in the array, means to filter high from low states to keep the high on
es and throw the low ones away. But I'm not sure which way is the most efficient. This was my first approch to the problem. I learned programming with pascal, but it has a complete different approach to data then LabView. This results sometimes in conflicts and inefficient code. In pascal that algorithm worked just fine.

Thanks for your effort and advice!

Stephan
0 Kudos
Message 21 of 23
(521 Views)
I have attached a PDF of the block diagram.

Also notice that I corrected my first answer - at 100kHz, 5 Sec of data is 500,000 samples, not 5 million.

To catch a 10 microsecond wide pulse, you might want to go above 100 kHz, but you don't need 1,000,000.

Hope this helps.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 22 of 23
(521 Views)
Thank you very much for your Code. It helped a lot. I can now resolve the square pulses like I wished in the first place.

Stephan
0 Kudos
Message 23 of 23
(521 Views)