I want to use the Friss transmission equation to measure the gain of a 3D printed horn antenna. I used a VNA and got all of the s-parameters, with the reference antenna at port_1 and the test antenna at port_2. How do I get transmitting and receiving power using these s-Parameters? I'm not getting the expected results even though I took a value from the S21 parameter at the expected frequency as the ratio of receiving and transmitting power on a logarithmic scale. Is this a wrong procedure to measure the antenna gain?