10-15-2006 09:43 PM
10-15-2006 10:49 PM
10-15-2006 11:35 PM
10-15-2006 11:47 PM
10-16-2006 03:23 AM
Hi Timothy,
Thank you for giving me advise and for the http. It does help me a lot to start. That is what i am looking for, Spherical Coordinates. I tried to make a simple VI, please find the attached (LabVIEW 8.0). I have one problem; The inclinometer control have a range from 15 degree to 90 degrees, which means at 15 deg. it is slightly on the top of 'y' axis, and at 90 deg. it is on the same position vertical position of 'z' axis. Running this VI will not demonstrate what i wanted to do. I dont know which part i am missing. Any advise I would greatly appreciate.
Thanks a lot.
10-16-2006
10:35 AM
- last edited on
06-22-2026
06:56 PM
by
Content Cleaner
Hi Bong,
I found a couple things that may help you. The first one is that LV ships with a function called "3D Coordinate Conversion" that should do the trick for you (I know this function exists in LV 8.2 in the Professional Package; I believe the Base Package does not include it and it is in LabVIEW since 8.0). You can find this VI in the Mathematics>>Geometry palette. Although the function it is not that well documented, it shouldn't be hard to figure out how to use it (from what you will be doing, you want to use the scalar version of it):
https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/analysis/coordinate-llb/3d-coordina...
If you don't have access to that function or it doesn't fit your needs, I found some information on how to do the conversion at this site:
http://fermi.jhuapl.edu/s1r/idl/s1rlib/vectors/v_conv.html
Hope this helps,
JMota
National Instruments
10-16-2006 09:42 PM
10-17-2006 01:40 AM
10-17-2006 01:43 AM
Hi Timothy,
Thanks for the reply. I guess i misunderstood my own sample program. Anyway, thanks a lot. You have been very helpful.
regards,
bong