ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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
(5,506 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
(5,503 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
(5,493 Views)
Solution
Accepted by ssara

Hello ssara,

 

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

 

LabVIEW Help: Radians to Degrees

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/analysis/baseanly-llb/radians-to-de...

 

LabVIEW Help: Degrees to Radians

https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/analysis/baseanly-llb/degrees-to-ra...

 

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
(5,492 Views)

thank u Tom

 

regards

0 Kudos
Message 5 of 5
(5,471 Views)