How to save new variable using J1939 variable

Discuss issues and ideas you have to configuring displays with PowerVision
N1ckMar
Posts: 1
Joined: Fri Nov 26, 2010 12:39 am

How to save new variable using J1939 variable

Post by N1ckMar » Mon Feb 03, 2014 7:44 am

I have problem with saving numerica variable.

I know J1939.Transmission.Output Shaft Speed from CAN
and some constant - PI , Radius of Wheel and Reduction Coefficient.

I need to calculated Car's Speed using formula:

Car.Speed = 2*Pi*R*Output_Speed*0.06/CoefRed

I've created new variable and set Fire on change "calculated speed" where
"calculated speed" is calculations event:

2*PI*R*0.06*J1939.Transmission.Output Shaft Speed / CoefRed

But value of my variable is zero all times.

Nikolay