Author Topic: Converting magnitude ratio to complex form  (Read 2670 times)

0 Members and 1 Guest are viewing this topic.

Offline chamathkvTopic starter

  • Newbie
  • Posts: 2
  • Country: lk
Converting magnitude ratio to complex form
« on: April 10, 2018, 05:43:57 pm »
Greetings,

I recently acquired an AD8302 module http://www.analog.com/media/en/technical-documentation/evaluation-documentation/AD8302.pdf which reads to signals and provides an analog reading showing the magnitude ratio. I want to convert this to complex form in order to create a touchstone file (.s1p) http://na.support.keysight.com/plts/help/WebHelp/FilePrint/SnP_File_Format.htm. What is the formula to convert a magnitude ratio (dB) to complex form? (x + iy)
 

Offline TheUnnamedNewbie

  • Super Contributor
  • ***
  • Posts: 1208
  • Country: 00
  • mmwave RFIC/antenna designer
Re: Converting magnitude ratio to complex form
« Reply #1 on: April 10, 2018, 07:32:08 pm »
Magnitude is just that - magnitude. Without any information of phase, you cannot turn this into a real-imaginary format.
The best part about magic is when it stops being magic and becomes science instead

"There was no road, but the people walked on it, and the road came to be, and the people followed it, for the road took the path of least resistance"
 

Offline hagster

  • Frequent Contributor
  • **
  • Posts: 394
Re: Converting magnitude ratio to complex form
« Reply #2 on: April 10, 2018, 08:45:37 pm »
Thats an interesting chip. It measures both magnitude ratio and phase difference.

I do note that the pgase measurement has a 180degree ambiguity. Not sure if there is an easy way to resolve that.

I dont see the problem in taking those and writing to it a touchstone file.
 

Offline chamathkvTopic starter

  • Newbie
  • Posts: 2
  • Country: lk
Re: Converting magnitude ratio to complex form
« Reply #3 on: April 11, 2018, 05:54:59 am »
Sorry, I forgot to mention that the phase is also provided.
 

Offline hagster

  • Frequent Contributor
  • **
  • Posts: 394
Re: Converting magnitude ratio to complex form
« Reply #4 on: April 11, 2018, 06:45:23 am »
You only need to convert the polar notation to cartesian. Google will help you.

Or touchstone files can have log amplitude phase data.
« Last Edit: April 11, 2018, 07:11:59 am by hagster »
 

Offline kerrsmith

  • Regular Contributor
  • *
  • Posts: 77
  • Country: 00
Re: Converting magnitude ratio to complex form
« Reply #5 on: April 15, 2018, 10:05:58 pm »
I have been using this chip (AD8302) myself for the last week or so and have also been hunting for this kind of information. The most useful site I have found so far is the 'HF Arduino Vna' one:

https://hamprojects.wordpress.com/2016/02/21/hf-arduino-vna-english-version/

This site explains a lot about creating your own VNA but as far as equations go their Github page is really good:

https://github.com/f4goh/VnArduino

Take a look at the file 'VnArduino.ino' starting at line 549, just after this point there is a list of all the equations needed to calculate things such as reflection coefficient, return loss, SWR and the real and imaginary parts of the impedance.
« Last Edit: April 17, 2018, 01:41:06 pm by kerrsmith »
 

Online Bud

  • Super Contributor
  • ***
  • Posts: 6903
  • Country: ca
Re: Converting magnitude ratio to complex form
« Reply #6 on: April 16, 2018, 06:49:57 pm »
Sorry, I forgot to mention that the phase is also provided.

You can make a Touchstone file directly using mag(db) and phase, just make a right header for it, search for more information on Touchstone file format.
Facebook-free life and Rigol-free shack.
 

Offline kerrsmith

  • Regular Contributor
  • *
  • Posts: 77
  • Country: 00
Re: Converting magnitude ratio to complex form
« Reply #7 on: May 07, 2018, 01:54:17 pm »
I have been working with the AD8302 for a while now and have created a handy equations sheet to help me remember what I did to work out how the various calculations are derived.

This sheet shows how return loss, reflection coefficient, SWR, complex load impedance and mismatch loss are calculated using data from the AD8302.

I have attached the PDF to this post as a reference in case anyone else is interested in this.
 
The following users thanked this post: ON7CH


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf