# Inverting Signal math

**URL:** <https://forum.realdash.net/t/inverting-signal-math/6514>\
**Category:** General RealDash discussion\
**Created:** [October 3, 2024, 11:49pm UTC](https://forum.realdash.net/t/inverting-signal-math/6514 "2024-10-03T23:49:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meels](https://forum.realdash.net/letter_avatar_proxy/v4/letter/m/3da27b/32.png) [@Meels](https://forum.realdash.net/u/Meels)\
**Post date:** [October 3, 2024, 11:49pm UTC](https://forum.realdash.net/t/inverting-signal-math/6514/1 "2024-10-03T23:49:13Z")

</div>

Hey all

Just wanting to know what the optimal way of inverting the math is on a simple signal light

For instance

My ABS light shows is on when it should be off and off when it should be on.

value targetId=“273” offset=“3” length=“1” \> \<!-- 0x20 ABS lamp ON –

is it easier to invert the math here or change the gauge to respond to the given data.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [October 4, 2024, 5:25am UTC](https://forum.realdash.net/t/inverting-signal-math/6514/2 "2024-10-04T05:25:43Z")

</div>

I think the actual problem is that you are reading entire byte for one bit of information. Instead of inverting the value, try to read only the correct bit that indicates the ABS light. That can be done with conversion attribute. For example, if your ABS light is in second bit:

```auto
units="bit" conversion="V>>1"

```

---

<div class="post-metadata">

**Author:** ![Yaroslav](https://forum.realdash.net/letter_avatar_proxy/v4/letter/y/3ab097/32.png) [@Yaroslav](https://forum.realdash.net/u/Yaroslav)\
**Post date:** [October 4, 2024, 8:51am UTC](https://forum.realdash.net/t/inverting-signal-math/6514/3 "2024-10-04T08:51:25Z")

</div>

Or you can do this: conversion=“not V”
