Results 1 to 4 of 4

Thread: create label from existing label with math opertions...

  1. #1
    Constant Bitrate
    Join Date
    Jan 2007
    Posts
    126

    create label from existing label with math opertions...

    is there a way that i can create a new RR label by using an an existing one and applying math operations to it? (continuously...or in short intervals)

    i measure my cars battery voltage with the FusionBrain. i had to use a voltage divider which "divides" the voltage to about 0.25 times the original value. So now in order to display the actual voltage i would need to multiply the label/variabel by 4.....


    or lets say i want to display the speed that i am going over 50mph....

  2. #2
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,625
    Try RRExtended plugin, I think that can do that.

    or maybe set a variable from a label and see if you can do maths on that

  3. #3
    Constant Bitrate
    Join Date
    Jan 2007
    Posts
    126
    well i found some info in the orig documentation but i could not get it to work

    SETVARBYCODE;MYNEWVOLTAGE;analog0raw

    EVAL;RESULT;$analog0raw$*4

  4. #4
    Maximum Bitrate
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    520
    You got it wrong. Can't test at the moment, but should be like this
    FYI: SETVARBYCODE;<target variable>;<value>

    Code:
    SETVARBYCODE;MYNEWVOLTAGE;analog0raw
    EVAL;RESULT;$MYNEWVOLTAGE$*4
    1. copy the value from analog0raw to variable MYNEWVOLTAGE
    2. multiply MYNEWVOLTAGE by 4

    Now you just have to display the new variable MYNEWVOLTAGE (instead of analog0raw) in the skin you're using.
    The value of MYNEWVOLTAGE doesn't update automatically, you have to work with a timer.

Similar Threads

  1. Bug Reports
    By frodobaggins in forum FrodoPlayer
    Replies: 168
    Last Post: 10-16-2004, 12:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •