LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

manipilating data in arrays

Hello, 
If I have 2 index arrays one of Frequency vs Amplitud in dBm and the other of a Frequency vs attenuation in dB, the attenuation data is much wider range and different Frequency Values than the Amplitude data. Is there a way to apply the attenuation data on the Amplitude ? at the end I want to have a graph as accurate as I can of the Amplitude after the attenuation for each frequency of the first data, the amplitude data.I want in every frequency of the amplitude to get the attenuation effect for the same or closest frequency I have in the attenuation data.
I attached relevant files of what I got so far and the data.
Thanks
Guy
Download All
0 Kudos
Message 1 of 9
(3,777 Views)

Guy,

 

It always helps to do a lot of searching on the internet.  I found the following article that I believe creates a solution for you.

 

(search term - "uneven sample waveform LabVIEW")

http://digital.ni.com/public.nsf/allkb/53E96C82FF016576862574670052585D

 

I have attached an updated VI that generates the product you asked about.

 

Joe

Message 2 of 9
(3,753 Views)

Hi Joe, 

Since I just started to learn the program I didn't know how to make a "Google" question out of it 🙂

Thanks for your help,

Guy

0 Kudos
Message 3 of 9
(3,741 Views)

Hey Joe,

The solution you suggest does not working. the graph I get is just an inverse graph of the original amplitude data.

Would like to hear if there is another suggestion.

Thanks

Guy

0 Kudos
Message 4 of 9
(3,687 Views)

From your intitial post I assumed that you wanted to multiply one graph with the other.  Maybe there is a value conversion (dB to ?) needed for the attenuation graph.  I didn't look that close.  But I thought it was at least helpfull that you now have the wave arrays interpolated and the same dT or dF.

0 Kudos
Message 5 of 9
(3,675 Views)

It was very helpful but still not exactly what I need . I need the attenuation (jig offset data) on the Ampitude data. I'll keep looking but thanks a lot 🙂

0 Kudos
Message 6 of 9
(3,665 Views)

So you need both waveforms graphed on the same graph?  If that is the case you can build an array out of the two waveforms and put the array into a waveform graph.  If you want to show the an equal frequency range you can always find the shorter one and get a subset of the larger one before you plot.

 

Unless I still don't understand what "I need the attenuation (jig offset data) on the Ampitude data".

0 Kudos
Message 7 of 9
(3,658 Views)

I need just one graph. The graph I need is the first data - the Amplitude with the effect of the second data - the attenuation. What I see in the third graph- "attenuated waveform" doen't include the effect of the attenuation.  The first 2 graphs are good to I just need to figure how to apply the second graph on the first one.

0 Kudos
Message 8 of 9
(3,651 Views)

Thanks to you and with a few modifications now it's working 🙂

I attached the udated file.

Thanks again

Guy

0 Kudos
Message 9 of 9
(3,639 Views)