11-08-2012 09:29 AM
Hi,
I am working on a project for which I need to display the I-Q constellation plot and normalize the data to fit it to a circle of unit radius.
I am able to do this but the problem is sometimes the signal in one of the channels is very weak and so the plot moves close to the axes(please find attached the file, this is the best position, if one channel has a weak signal, the point moves to one of the axes). When this happens, I want to add a phase shift to the signal (45 degrees and multiples of it) to bring to back to the best position. I was trying to use the Extract Tone vi to get the phase , add 45 degrees but how do I reconstruct the signal wit the new phase?
Can anyone please help me?
Thanks so much,
Sharmi
Solved! Go to Solution.
11-08-2012 09:35 AM - edited 11-08-2012 10:10 AM
WHat is the data type? IQ data is most easily kept as a complex array. If it is not, combine the two channels into a single complex array, then multiply it with a scalar complex unit vector of the desired rotation angle. You can normalize by dividing with the average magnitude.
Can you attach your VI containing some typical data? (make current values default before saving)
11-08-2012 11:04 AM
The data is continuous complex data. Please find attached the vi.
I have already normalized the data by dividing with mean value.
This work is part of the transreceiver for which I am using PXIe-5663 and 5673 to transmit a single frequency RF carrier which is modulated by breathing/heartbeat and receive the signal. I want to add the phase shift before 'niRFSA Get IQ Components vi', i.e just after the complex data is acquired.
Please let me know if you need any other information.
Thanks so much,
Sharmi
11-08-2012 11:35 AM
You did not attach the VI.
11-08-2012 11:50 AM
I am so sorry.
Please find attached
11-08-2012 12:02 PM
What's inside the missing formula.vi?
11-08-2012 12:13 PM
The circle fit algorithm
11-08-2012 01:33 PM - edited 11-08-2012 01:35 PM
Attached is a quick draft. I only focused on the exact area of interest, leaving everything else as is. I did not check the rest of the code.
The control let's you shift the phase of the data from -pi to +pi.
11-08-2012 01:52 PM
Could you please attach the vi?
Thanks,
Sharmi
11-08-2012 02:19 PM - edited 11-08-2012 02:26 PM
Look again, It is already attached (LabVIEW 2011).