I2 math questions

Discussion and support for i2 Standard and i2 Pro applications

I2 math questions

Postby Apex Speed Tech on Sun Aug 31, 2008 9:48 am

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
Neel Vasavada
Apex Speed Technology
2931 S. Sepulveda Blvd Suite F
Los Angeles, CA 90064
310.314.2005
www.apexspeedtech.com
User avatar
Apex Speed Tech
 
Posts: 51
Joined: Thu Jul 10, 2008 1:04 pm
Location: Los Angeles, California

Re: I2 math questions

Postby DarrenR on Mon Sep 01, 2008 12:21 pm

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.
Darren Reynolds
MoTeC Research Centre - Melbourne, Australia.
DarrenR
MoTeC
 
Posts: 176
Joined: Thu May 01, 2008 2:15 pm
Location: Melbourne, Australia

Re: I2 math questions

Postby Apex Speed Tech on Mon Sep 01, 2008 11:07 pm

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
Neel Vasavada
Apex Speed Technology
2931 S. Sepulveda Blvd Suite F
Los Angeles, CA 90064
310.314.2005
www.apexspeedtech.com
User avatar
Apex Speed Tech
 
Posts: 51
Joined: Thu Jul 10, 2008 1:04 pm
Location: Los Angeles, California

Re: I2 math questions

Postby DarrenR on Tue Sep 02, 2008 12:00 pm

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.
Darren Reynolds
MoTeC Research Centre - Melbourne, Australia.
DarrenR
MoTeC
 
Posts: 176
Joined: Thu May 01, 2008 2:15 pm
Location: Melbourne, Australia


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: Google [Bot] and 4 guests