Data Field: AppBuilder

By user request, this app lets you define your own data field, based on a simple math formula like cadence / 2.

If you want to get fancy, there's conditional expressions (like IF in Excel), functions for data analysis (like MIN and AVG), and the data field can also display the text of your choice. The resulting data can be (optionally) written to the activity FIT file.

With AppBuilder, you can implement almost any field that involves math, such as: calculating normalized power and saving the data to the FIT activity file, showing the average pace for even-numbered laps, or recording the amount of time you sprinted.

Full documentation and examples here:
http://ciq-appbuilder.blogspot.com/

AppBuilder 5:
Now with new features! AppBuilder 5 is a completely new app, so please check it out in the store if you are interested in any of the new features.
https://apps.garmin.com/en-US/apps/fd690281-9c22-4fee-a81e-3b7f39aa67c5

- Store up to four formulas per app. Switch between formulas directly on the watch, without using a phone or PC. With four clone apps, you can store up to 16 formulas total
- User variables. Allows for powerful formulas where information can be stored at one point, like the start of a lap, and used later. e.g. Lap elevation change
- Improved timeavg() options. Allows for simpler, more flexible normalized power function
- More functions and variables

4 clones of AppBuilder are available in the store, so you can have 2 formulas in the same activity
  • Hi friends! Goodday!
    my previous objective was to calculate grade using also TIMEAVG (this for have more smooth data).
    Now i have take last formula of JTH9 and i added TIMEAVG, in this way:

    SETV(1,(1-(2/100))^-1*(9.8067*(UserWeight+10.5)* (TIMEAVG((Altitude_raw - PREVN(Altitude_raw, 10)) / (Distance_raw - PREVN(Distance_raw, 10)) *100, 3) +0.005) +(0.1966*Speed_raw^2)) *Speed_raw) ; RECORD(IF(GETV(1) GT 0 AND Cadence GT 0, GETV(1), 0),7)

    Now works on my Edge 520 and today i test it.

    P.S: With Garmin Express when i copy and past formula GE cut the formula. I don't know why. With the phone i have copy and past this last formula without problem (usign Lettercount website of JTH9 the lenght is 251 characters.
  • BortoloS not sure why GE would cut the formula off when the limit is for 256 characters for me. What region/language is Windows set to? Or are you on Mac?

    How many characters does it cut off to? (Copy and paste the result to lettercount.)
  • FlowState Now GE works fine and not cut the formula.
    I don't know was happened before.
    If it happens again, I'll tell you.
    Thanks much!
  • Former Member
    Former Member over 5 years ago
    You may try TIMEAVG, but personally I don't think it adds much more than lag. I've tried up to 30s averaging and it's still quite bad. The altimeter is unstable but once you learn the amount it hovers you could use it for realtime pacing to some extent and the total average of a workout should still be usable.
  • i try also now to change Speed_raw in the formula with TIMEAVG (Speed,10) / 3.6.
    Can be Speed not accurate...

    In this way:

    SETV(1,(1-(2/100))^-1*(9.8067*(UserWeight+10.5)* (TIMEAVG((Altitude_raw - PREVN(Altitude_raw, 10)) / (Distance_raw - PREVN(Distance_raw, 10)) *100, 3) /100 +0.005) +(0.1966*(TIMEAVG(Speed, 10)/3.6)^2)) * (TIMEAVG(Speed, 10) / 3.6)) ; RECORD(IF(GETV(1) GT 0 AND Cadence GT 0, GETV(1), 0),7)

    This evening i test it.

    P.S: are 289 characters of formula lenght :D
  • i hope that also Garmin Edge 520 can use in the future the same functions of APB5+ (for example declare global varaibles SETGLOBAL and GETGLOBAL)
    Can be posible ?
    today i try one formula of 310 characters...using Garmin Connect.

    P.S: i have saw only now that Garmin Edge 520 calculate automatically the Grade% (see image attached). It's posibile take this data using APB5 without calculate it with formula ?
  • Why does the formular distanceToDestination / AvgSpeed not work?
    Nor distanceToDestination / AvgSpeed_raw

    The result should be TimeToDestination - hopefully better calculated than Garmin does.
    But neither Time nor Pace or Number shows anything meaningful.

    thanks
  • I can answer my own question:

    the correct formuar is distanceToDestination_raw / AvgSpeed_raw
    also the ArrivalTime works with TimeOfDay + (distanceToDestination_raw / AvgSpeed_raw)
    the result is Time (seconds to [[hh:]]mm.ss

    this calculation is necessary on an Edge 1030.
    On Edge 1000 it is OK, Garmin calculates it over the GPX Time of the track.
    On Edge 1030 it is wrong again - once more. The wrong arrival time is a annoying Garmin bug since years with every new device.
    Garmin tries to calculate it over the routing map, which may work for cars but not for bicycles.

    Now I found a work around with AppBuilder 5 :)
  • BortoloS, sorry, native grade is not available to CIQ fields, unfortunately.

    w0lfgang nice!

    BTW I filed a bug report about the 256 character settings limit in Garmin Express. Hopefully the limit will be normalized across iOS, Android and Garmin Express one day.
  • Hi friends,
    it's posible, in the future, add to Appbuilder one new feuture as put two values in one field ?
    the same of picture attached in the red circle.
    thanks