Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » is possible to get text ??

Pages: [1]
Author Topic: is possible to get text ??
moreause
Member
Posts: 643
Post is possible to get text ??
on: May 24, 2021 (GMT)

like 0 get not buckled
and 1 buckled

i monitor the seat belt status , just wondering if i could change the log value to text ….

i found the lookup function will look into it

cintakc
Member
Posts: 1663
Post Re: is possible to get text ??
on: May 25, 2021 (GMT)

Lookup((A&1)::0=’not buckled’:1=’buckled’)
example for bit zero of byte A

ANBO
Member
Posts: 19
Post Re: is possible to get text ??
on: May 31, 2021 (GMT)

Using this a lot lately and works really well.

Does it always return in ALL CAPS or is that a setting?

Please note that the second value can be left:
* blank – only returning exact matches, e.g. LOOKUP(A::1=100:2=200:3=300)
* default value – returning the default when no match is found, e.g. LOOKUP(A:0:1=100:2=200:3=300)
* value – returning the numeric value when no match is found, e.g. LOOKUP(A:A:1=100:2=200:3=300)

ANBO
Member
Posts: 19
Post Re: is possible to get text ??
on: June 6, 2021 (GMT)

Does it always return in ALL CAPS or is that a setting?

moreause
Member
Posts: 643
Post Re: is possible to get text ??
on: June 6, 2021 (GMT)

i also see all caps …
seem’s the default probably a way around it

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.02 seconds.

  Follow me on twitter