From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

degree angle

Solved!
Go to solution

plz, can i calculate sine and cosine angle in degree (not in redian), or there is any convertor from radian to degree

0 Kudos
Message 1 of 5
(3,989 Views)

What do you mean?  Is this question specific to LabVIEW at all?

 

 \text{angle in degrees} = \text{angle in radians} \cdot \frac {180^\circ} {\pi}

 

See here for the math behind converting Radians to Degrees: http://en.wikipedia.org/wiki/Radian#Conversion_between_radians_and_degrees

 

 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 2 of 5
(3,986 Views)

yes exactly , i mean there is no a direct block to do this and producing the cosine or sine in degree instead of rad

i must  build it from this equation?

0 Kudos
Message 3 of 5
(3,976 Views)
Solution
Accepted by topic author ssara

Hello ssara,

 

LabVIEW provides two built-in functions to convert from radians to degrees and vice-versa:

 

LabVIEW Help: Radians to Degrees

http://zone.ni.com/reference/en-XX/help/371361K-01/lvinstio/radians_to_degrees/

 

LabVIEW Help: Degrees to Radians

http://zone.ni.com/reference/en-XX/help/371361K-01/lvinstio/degrees_to_radians/

 

I recommend searching for an answer before posting - these are two of the top hits when searching "radian to degree LabVIEW" in a generic internet search engine.  They are also available via the Numeric Conversion palette and are easily findable using LabVIEW's built-in search functions:

 

LabVIEW Help: Searching for Controls, VIs, and Functions on the Palettes

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/searching_for_controls_vis/

 

Regards,

Tom L.
Message 4 of 5
(3,975 Views)

thank u Tom

 

regards

0 Kudos
Message 5 of 5
(3,954 Views)