LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Steering Vector of the Vector Antenna in LabView

Which function? 

0 Kudos
Message 11 of 17
(838 Views)

Ok, I got it but I don't think its right 100%, because the minus (-) is gone from the third and the forth row!. 

 

0 Kudos
Message 12 of 17
(829 Views)

Then you did something wrong.  Since you failed to attach your code, I cannot "point" to the mistake.  However, I ran the "correct" code with Azimuth of 20 and Elevation of 35.  The "correct" operation gave me, as expected, the first Column (with the same values and signs) of the "Vector Antenna" 6 x 2 Matrix.

 

It is simple Math -- multiplying a 6 x 2 Matrix by the column Vector [1, 0] gives you a 6 x 1 Matrix where each row is the sum of 1 * the element in the first column of that row in Vector Antenna + 0 * the element in the second column of Vector Antenna, or (since multiplying something by 0 gives you 0 and adding 0 to anything gives you "anything", this operation returns a Matrix consisting of the first column of the 6 x 2 Matrix.

 

Bob Schor

 

P.S. -- I have told you what you need to do, and have offered to show you if you try and make a mistake.  But you need to make the effort and post your code, showing how you modified the original "wrong" by following my suggestions.

 

 

 

 

0 Kudos
Message 13 of 17
(816 Views)

Yes, I have also run the codes with 20 and 30 angles and I think I got the right matrix which 6 x 1. So I think the codes is correct.

0 Kudos
Message 14 of 17
(807 Views)

Were the numbers the same?  You said something about having signs wrong when you did it -- if you see any significant difference between your 6 x 1 Matrix and the first column of your 6 x 2 Matrix, then your code is wrong.  If you post it (which you still refuse to do), we can explain your error (and perhaps my sloppy explanation several replies earlier about how to "fix it").

 

Bob Schor

0 Kudos
Message 15 of 17
(796 Views)

Hi Bob, actually the numbers were not the same. When I used a zero value for both azimuth and elevation angles, the minus is gone from the third and the fourth rows (see the attached picture). I am not sure why the minus disappeared maybe because its already zero in the third and the fourth rows. 

I didn't post the VI because I didn't change, its the same as the previous on I posted.  

Download All
0 Kudos
Message 16 of 17
(790 Views)

I wonder if you just "discovered" a property of Floating Point arithmetic ...

 

Do you understand (and accept) the principle that X * 1 = X, and Y * 0 = 0 (except when Y is not a number)?  Your using 0, 0 as a "test case" to "prove me wrong" means you don't understand the math of my previous sentence and don't understand the point of my first paragraph.  

 

Try using any non-zero value for the two angles.

 

Bob Schor

0 Kudos
Message 17 of 17
(779 Views)