07-18-2011 02:43 AM
Greetings, I'm a student, doing my final year project and I've encountered problems with the tasks I'm approaching now.
I would really appreciate any tips or advice that's been given/replied to me.
I'm currently working on optics and I'm required to acquire data measured by power from the laser I'm given.
The images above, are for references.
I know I'm supposed to submit my VI, but I would much rather, accept tips/advice, instead of answers.
Right now, I'm tasked to produce a polarization ellipse for my VI.
Something like this below.
However, I've no idea how do I come up with such a graph for my VI, on LabVIEW?
Your tips/advice is very much welcomed.
07-18-2011 06:50 AM
Your sinusoidal data is currently plotted on cartesian coordinates i.e. a normal x,y graph.
What you are trying to achieve is a polar plot.
Convert your cartesian coordinates (T, angle) into polar coordinates so it is in an r,theta format. You can do this using the 'complex' section of the numeric palette or by just doing a little manual trigonometry. Then feed this data into a polar plot (found under classic controls, classic graph, controls)
The polar plots are a little different to normal xy graphs when coding. Have a look through the help file and examples.
Enjoy!
Ian
07-18-2011 08:37 AM
Thinking about it... there is not even any need to convert from cartesian to polar... your data looks like it is already in the form of magnitude and angle so you can probably just feed it straight into a polar graph.
Ian
07-22-2011 02:14 AM
Sorry, I don't quite understand what you're saying.
Now, my supervisor explained to me that only ONE ellipse should appear when the XY graph is plotted after one revolution (that is 360 degrees)
OR
We can try to plot out the ellipse at every degree, then we have a FULL ellipse at the end of the revolution.
How can I achieve this ?
Please advice.
Thanks.
07-22-2011 05:43 AM
Do you have any example data that you can post?
07-25-2011 01:27 AM - edited 07-25-2011 01:31 AM
This is what I would get from the VI whenever I run it. But this is not what I want because as you can see , there is an rotating ellipse in the 2nd xy graph. What I want would be to either get one non-rotary ellipse on the 2nd xy graph after the VI has finished running or plotting out the eliipse on the 2nd xy graph at from 0-360 degrees and thus getting a FULL ellipse.
Please advice me on how to achieve what I want.
Thanks.