Page 1 of 1

I2 math questions

PostPosted: Sun Aug 31, 2008 9:48 am
by Apex Speed Tech
I'm struggling trying to do a few things in I2 Pro Math:

1. How do I comment out lines? I've tried every character I can think of but I can't seem to put comments in my channel definitions.

2. How do I create a function which is the resultant of a main channel and an overlay? For example, how can I plot speed difference between 2 different laps?

Thanks,

Neel

Re: I2 math questions

PostPosted: Mon Sep 01, 2008 12:21 pm
by DarrenR
Hi Neel,

There is no comment character within the Math expression.

You can do maths on an overlay. It is an undocumented feature that is not used very often and is relatively untested. Also it is most likely going to change in the future but you can use it for now.
To specify to use the reference lap (overlay 0), you type ref: in front of the channel name. To specify to use the next overlay (overlay 1 or the next lowest overlay number) you type in overlay: in front of the channel name.
So your expression looks like this
'Wheel Speed FL' [km/h] - ref:'Wheel Speed FL' [km/h] (finds speed difference between main and reference laps)
ref:'Wheel Speed FL' [km/h] - overlay:'Wheel Speed FL' [km/h] (finds speed difference between reference and overlay 1 laps)

These are only time based, not distance. The overlay of the maths result is shown but not relevant. The expression is not calculated until the overlays are selected.

Let us know how you go with this.

Re: I2 math questions

PostPosted: Mon Sep 01, 2008 11:07 pm
by Apex Speed Tech
There is no comment character within the Math expression.


If there's any way you can add this; we've got some relatively complex math functions, some nested several levels deep, and we are also using Excel links. Trying to remember what I did when I first wrote something isn't a strong point.

I'll try the ref function.

Thanks,

Neel

Re: I2 math questions

PostPosted: Tue Sep 02, 2008 12:00 pm
by DarrenR
Trying to remember what I did when I first wrote something isn't a strong point.


Yes i know the feeling of trying to remember such things!

i have put in the request to add a comment character to the math expression.