LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to convert from radians to degrees?

Hi, I am creating a sine wave using the sine.vi under numeric/trig functions/sine. That function computes sin(x) where x is in radians. Is there anyway that I can convert this to degrees. Attach to this note is the code, if anybody wants to look at it to understand better what I am trying to ask. Thanks.
0 Kudos
Message 1 of 3
(13,349 Views)
lizherr98;

I looked at your code, but was unable to figure out what you want to accomplish.

To convert degrees to radians, just use the relationship: radians/pi = degress/180

Check the help files for examples included with LabVIEW. There are examples about using the sine function. I attached VIs as examples too.

Regards;
Enrique
www.vartortech.com
Message 2 of 3
(13,349 Views)
In other words, instead of defining the input to the sin(x) function in radians, you want to specify it in degrees.

To convert degrees into radians multiply the input by pi/180 or approximatly 0.0175.

In case you're curious, to convert radians abck into degrees multiply the value by 180/pi or approximatly 57.30.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 3
(13,349 Views)