LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

radians to degrees not working like my calculator

Solved!
Go to solution

On my graphing Calculator sin(52)= 0.7880107536 (its on DEG)
The same with my scientific calc. I dont know why its not working
when my they are on RAD it shows the exact same as labview shows

but when i try to make labview use Degreese it gives the wrong answer

0 Kudos
Message 1 of 6
(6,362 Views)

How are you "making LabVIEW use degrees"? Please show us some code! (I suspect you are trying to use units)

0 Kudos
Message 2 of 6
(6,361 Views)

If you want to use degrees you'll need to convert to radians by deg*2PI/360, the Convert Unit  seems to do the job fine.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(6,342 Views)

here is the code, i thought i included it earlyer

Rad to Deg

0 Kudos
Message 4 of 6
(6,313 Views)
Solution
Accepted by topic author tvanprooyen

You are feeding a 52 (radians!) to the sine function and converting the output. That makes no sense!

You need to convert the angle to radians before the sine functions.

Message 5 of 6
(6,307 Views)

I see exactly what you mean, I dont know how i missed it, all the answers are correct, thank you so much. Here is what i did...

Degreese to Rad

0 Kudos
Message 6 of 6
(6,291 Views)