Resolved by Dunning-Kruger!

## Convert Celsius To Fahrenheit

Can someone provide me script that takes the GetCpuTemp and converts it to F. I have tried and it keeps causing ARC to crash.

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

#1

Have you tried using this formula? ...

``````
\$far = (GetCpuTmp() * 9/5) + 32

``````
PRO
USA
#2

No, I was assigning the GetCPUTemp to a variable and then doing the math with the variable. Will try and get back to you.

#3

Crashing ARC? That's not easy to do. I'd like to see your code. Anyway, here is a method. I tried it and it does not crash. :)

\$CTemp is temperature in Celsius \$FTemp is temperature in Farenheit

``````
\$CTemp =GetCpuTemp()
\$FTemp =(\$CTemp * 1.8) +32
Print(&quot;Celsius =&quot;+\$CTemp) #So you can see the results in the debug window
Print(&quot;Farenheit =&quot;+\$FTemp)

``````
#4

little more complex than Richard's answer, but tested...

``````
#initialize variables

\$temp = &quot;&quot;
\$ftemp = &quot;&quot;
#get cpu temp
\$temp = getcputemp()
#convert to f
\$ftemp = \$temp * 1.8 + 32
#display result  You could also speak it, etc...
print(\$ftemp)

``````

Alan

PRO
USA
#5

Perfect. Thank you.

#6

OK guys, all together now ...

Richard R._____ WBS____________You're Welcome! Alan_______/

PRO
USA
#7

Yes, the whole group is awesome and very quick to respond.

United Arab Emr
#8

try this one....Celsius to Fahrenheit conversion

http://net-informations.com/q/mis/celsius.html

Macin

United Kingdom
#9

I'm still interested in seeing the original script, I've yet to crash ARC with a script and some of mine are insanely large and complex, I want to know what it takes to kill ARC :)