07-21-2005 01:54 PM
I am converting a AG 8720 read data vi to a AGPNA read data vi. The only way to get both phase and amplitude data is to read the complex number and convert it to polar. If I ask for SDATA the VISA read outputs the info in a string. I then do a spreadsheet to array (by the way this is all from the downloaded AGPNA from NI.com), but the data comes out as (for example):0.625 + 0 i
0.316 + 0 i
-0.167 + 0 i
-0.125 + 0 i
0.617 + 0 i
0.241 + 0 i
I believe what this should be outputting is: 0.625 + 0.316 i
-0.167 - 0.125 i
0.617 + 0.241 i
which is how I'd like it because then I assume I could just use the complex to polar conversion and I'd have my amplitude and phase data.
So what am I doing wrong?
07-22-2005 09:56 AM
07-22-2005 10:54 AM