04-28-2016 02:52 PM
Hi,
I have an array of power in dbm and I want to know how much amplification I need to add in order to bring the array to be in a specific power value for all frequencies. I guess I need a loop to check for each frequency but don't know yet how to do so. Some of the array values are negetive and some positive but at the end they all have to be the same so I need to know for each frequency how much amplification I need.
TNX
Guy
04-28-2016 03:04 PM - edited 04-28-2016 03:07 PM
Hi Guy,
I guess I need a loop to check for each frequency but don't know yet how to do so.
Yes, a loop may help. When you don't know how to use loops (and autoindexing) in LabVIEW: take the free beginner courses offered by NI on their website!
Some of the array values are negetive and some positive but at the end they all have to be the same
When all values should be the same in the end a simple InitializeArray function may give the same results… (Irony!)
so I need to know for each frequency how much amplification I need.
amplification := target_value - current_value…
Remember the polymorphism of LabVIEW functions and you will not need a loop anymore…
Edit:
At a first glance it seems to me you already asked the same here and got answers (and even said "now it's working")…
04-28-2016 03:16 PM
Target value - current value won't be good if the current value is negetive and for the positive option I still need to take that and to put each value in an array and to supply the correct amplification according to the comparing.
I see I have a lot of Arrays learning to do, so I am strating with the videos now.
Thanks 🙂
04-28-2016 03:28 PM - edited 04-28-2016 03:29 PM
@GuyGor wrote:Target value - current value won't be good if the current value is negetive
How do you figure? Subtract a negative value and you have an add by the absolute value. For example: Target = 5 and Current = -10. 5 - (-10) = 15. So you need to amplify by 15dB.
04-28-2016 03:35 PM
Its is not the same question
04-28-2016 03:37 PM
TNX