beautypg.com

3 restrictions on variable names, 4 using logworks channels – Innovate Motorsports LogWorks 3 User Manual

Page 114

background image

LogWorks3_Manual_1.01.doc

- 114 -

? Enter vehicle weight in lb = m
? Enter acceleration in g = a

F = m * a

? Enter tire diameter in inches = dia

r = dia/(2*12) #calculate radius in feet

? Enter final drive ratio = finaldrive
? Enter gear ratio = gear_ratio
? Enter rpm = rpm

torque = F * r / (gear_ratio * finaldrive)
hp = torque * rpm / 5252

LogWorks collects up to 10 questions into a questionnaire dialog box, so that only a minimum of
dialog boxes pop up. If more than 10 questions are asked, the questions are asked with multiple
sequential dialog boxes of 10 questions each.

10.3 Restrictions on variable names


There are certain restrictions on variable names so that the Formula Calculator can correctly
distinguish between what is an operator like + - * / and a variable or constant.

1. Variable names MUST start with a letter, not a number or special character.
2. Variable names CAN ONLY contain letters and numbers, no special characters, with one

exception.

3. The underline character _ is allowed.


10.4 Using LogWorks channels

Suppose you don’t want to enter the values manually, but use data collected in a LogWorks
channel. You can use LogWorks channels as variables just as if you had defined them.
For a simple calculation with only one value as above, the formula calculator chooses the value to
use according to the following rules:

If an area in the visible window is selected, get the first selected data point in the window (from
left to right).
Otherwise choose the first selected data point in the session
If nothing is selected, use the first (leftmost) data point in the visible window.

Example 4: Calculate torque and horsepower from vehicle weight, acceleration channel,
gear ratios, tire diameter and rpm

? Enter vehicle weight in lb = m
F = m * ACCEL
#ACCEL is the acceleration channel from the LMA-3

? Enter tire diameter in inches = dia