Author Topic: How to create custom calculated channel in VT?  (Read 12909 times)

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
How to create custom calculated channel in VT?
« on: October 15, 2013, 09:26:41 am »
Hi, VEMS users!
My current need is to create new channel: [(GPSspeed/RPM)*constant]. Is it possible and how?

Gints

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: How to create custom calculated channel in VT?
« Reply #1 on: October 15, 2013, 08:50:27 pm »
I belive it is not possible, I have a host of channels I´d like
Like POWER and TORQUE

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: How to create custom calculated channel in VT?
« Reply #2 on: October 15, 2013, 09:28:12 pm »
Probably they are defined in .ini file...

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: How to create custom calculated channel in VT?
« Reply #3 on: October 17, 2013, 04:26:18 pm »
I mean channels where you apply numerous math to one or more input channels to recieve a output.

Is this possibly in .ini files?

Offline VEMS

  • Administrator
  • Sr. Member
  • *****
  • Posts: 487
  • BHP: 22

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: How to create custom calculated channel in VT?
« Reply #5 on: October 21, 2013, 07:04:07 pm »
OK... thanks!
My expression then is

 "%.3f km/h",gpsSpeed*35.084/rpm

It returns something like gear ratio - should be exact value until gear is changed or clutch pressed.
But due to nature of incoming signals output becomes noisy.

Next - it would be nice to get average from e.g. last 200 samples.
May be someone can help me to create such expression?

Is there way to get freshly created channel in datalog?

Gints

Offline VEMS

  • Administrator
  • Sr. Member
  • *****
  • Posts: 487
  • BHP: 22
Re: How to create custom calculated channel in VT?
« Reply #6 on: October 21, 2013, 08:53:50 pm »
Since the custom value gauge is using already available logged channels as inputs, the custom gauge should also be available when replaying a log.

Regards,  Dave


Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: How to create custom calculated channel in VT?
« Reply #7 on: October 21, 2013, 09:34:34 pm »
Can it be selected as a channel in the log viewer ?

I made a math channel that creates road speed from tyre size, gear ratio and diff ratio, called it a unique ID but cannot select that ID to create new symbol as it´s not available, the other available custom Id are also not available as selectable symbols.

This would be one of the best possible features if this can be made to work in log viewer.

Thanks Dave.

EDIT .
Ideally being able to make numerous new channels and use them in other math channels would be ideal. Also applied filtering and
if possible "last value" usage.

« Last Edit: October 21, 2013, 09:36:42 pm by gunni »

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: How to create custom calculated channel in VT?
« Reply #8 on: October 21, 2013, 10:00:54 pm »
Since the custom value gauge is using already available logged channels as inputs, the custom gauge should also be available when replaying a log.

Regards,  Dave
Yes it persists in log replay, but it does not help to read average. Graph line in logviewer would be much more helpful.

Offline fphil

  • Sr. Member
  • ****
  • Posts: 398
  • BHP: 6
Re: How to create custom calculated channel in VT?
« Reply #9 on: October 21, 2013, 10:53:29 pm »

It returns something like gear ratio - should be exact value until gear is changed or clutch pressed.
But due to nature of incoming signals output becomes noisy.

Next - it would be nice to get average from e.g. last 200 samples.
May be someone can help me to create such expression?

Why not a set of if applied on the output value which selects the right case/gear ?

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: How to create custom calculated channel in VT?
« Reply #10 on: October 22, 2013, 06:52:35 am »
Sorry??

Offline fphil

  • Sr. Member
  • ****
  • Posts: 398
  • BHP: 6
Re: How to create custom calculated channel in VT?
« Reply #11 on: October 22, 2013, 04:02:28 pm »
r= noisy result gear ratio calculus
ei= theoritical gear ratio value for gear i

the set of if is per example

if 0.8*e1< r < 1.2*e1 then gear is gear number one
if 0.8*e1<r<....  then gear is gear number 2
etc...

of course you can do better intervals to avoid ghost cases.


Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: How to create custom calculated channel in VT?
« Reply #12 on: October 22, 2013, 05:52:56 pm »
My purpose is not to determine gear, but exact gear or transmission ratio necessary for following performance measurement. Error here means error later.

Gints

Offline gunni

  • Hero Member
  • *****
  • Posts: 1492
  • BHP: 37
Re: How to create custom calculated channel in VT?
« Reply #13 on: October 22, 2013, 06:01:44 pm »
It´s also excellent to detect slipping clutches or tyres.

I do agree that filtering would be excellent.

Offline fphil

  • Sr. Member
  • ****
  • Posts: 398
  • BHP: 6
Re: How to create custom calculated channel in VT?
« Reply #14 on: October 22, 2013, 06:09:30 pm »
Alright transmission ratio.
You may do schedule filter or dead band filter as above, with 6, ..., 12 possible transmission ratios. This quantification could filter part of the noise or may easier the data analysis.