Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
03-31-2009 03:53 PM
I am making a DAS in LabVIEW to acquire the position of the LASER beam on the PSD. I have made an XY Plot, to display the position of the LASER on the PSD. But now my LASER beam moves on the diagonal of the PSD. Is there any way to have a diagonal axis/rotate the axis of the graph.
Also if we cant do that then can we get the polar co-ordinate form of the point and project the point sonehow by scaling on the vertical and horizontal axis, so that they act as the diagonal.
I am attaching a cartoon of what I want to achieve.
Thank You.
03-31-2009 04:48 PM
You can put overlay images into your plot with a diagonal axis, these can easily beconstructed with the picture VIs.
Ton
03-31-2009 05:10 PM
04-01-2009 02:14 PM
04-01-2009 03:22 PM
04-01-2009 03:32 PM
I think the easier approach is to rotate the data by 45 degrees. As you've asked, this can be done using polar data representation.
You can convert x/y data pairs (or Re/Im if you think of complex numbers) to polar coordinates.
Then just add or subtract 45 degrees (in radian, so pi/4) to/from the angle and convert back using the corresponding function.
Hope this helps,
Daniel