LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Similar Waveforms

"I need to use an original waveform to create an "envelope" around itself. The waveform has many peaks and valleys. The "envelope (a waveform above and below)" must be exactly the save distance from the original at all points. This is where I'm running into problems. I can create similar waveforms, but when they curve up or down the distance from the original waveform changes. I hope someone can assist me with this."

This question has been answered once, but incorrectly so this is a repost.
0 Kudos
Message 1 of 3
(2,563 Views)
You need to define your distance metric for measuring the distance. Is it just in the Y direction, or do you want it to include X distance as well?

If it is just in the Y direction, the previous answer is correct. Simply add or subtract a constant to your original graph, and the Y distance will exactly the same distance for every point. When you plot the curve, it doesn't look like it is the same vertical distance, but it is.

If you are including the X direction in your distance measurement, you need to do a lot more work. Basically, you will need to check every point in the original curve against the surrounding points. Any points that are too close should be moved up or down until they are correct. For each point, you only need to check the correspon
ding points that are within the distance in the X direction. It wouldn't be too difficult to come up with an efficient algorithm to do this. For this to look right on the screen, you will need to have a fixed ratio of the X and Y axis (no autoscaling), or they will still look distorted.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(2,562 Views)
Hello Daytonaman,

did you already solve your problem with the similar equidistanced waveformes (dated 2001), which have at every point same distances in x and in y?

I have just the same problem.

Regards

habi
0 Kudos
Message 3 of 3
(2,469 Views)