ARC Pro

Upgrade to ARC Pro

Elevate your robot's capabilities to the next level with Synthiam ARC Pro, unlocking a world of possibilities in robot programming.

#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("Celsius ="+$CTemp) #So you can see the results in the debug window
Print("Farenheit ="+$FTemp)

#4  

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


#initialize variables

$temp = ""
$ftemp = ""
#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 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:)