# Possible to make graph or table to manipulate input and output

**URL:** <https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129>\
**Category:** XOD Programming Questions\
**Created:** [June 23, 2022, 7:24pm UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129 "2022-06-23T19:24:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacob-wiqvist](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jacob-wiqvist](https://forum.xod.io/u/jacob-wiqvist)\
**Post date:** [June 23, 2022, 7:24pm UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129/1 "2022-06-23T19:24:07Z")

</div>

Hi!

Because I am making a special dimmer for flightsimulator project I want to be able to dim led and light bulbs.

They of course behave totalt diferent when dimming with PWM.

I want to make light output linear, there for I need som way of making a table or graph, so a input value from a pot gives another output valu to PWM.

Is that possible with this software.

If it is can someone explain how?

Best regards Jacob

---

<div class="post-metadata">

**Author:** ![gweimer](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gweimer](https://forum.xod.io/u/gweimer)\
**Post date:** [June 23, 2022, 9:46pm UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129/2 "2022-06-23T21:46:21Z")

</div>

If you open the ‘led’ node, you will see that it cubes the input before feeding it to pwm-write. You can use your own node to do something similar for incandescent lights, but you will need a function (mathematical equation), not just a graph. Perhaps making a copy of ‘led’ and just removing ‘cube’ would be enough…

---

<div class="post-metadata">

**Author:** ![awgrover](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@awgrover](https://forum.xod.io/u/awgrover)\
**Post date:** [June 24, 2022, 1:25pm UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129/3 "2022-06-24T13:25:03Z")

</div>

> [@jacob-wiqvist](#):
>
> I want to make light output linear, there for I need som way of making a table or graph, so a input value from a pot gives another output valu to PWM.

What is the shape of the curve? As noted, a function is easy in XOD. For LEDs, I suspect a exponential curve?

Someone asked a similar question: [Look-up tables?](https://forum.xod.io/t/look-up-tables/2790)

I think XOD does not have good nodes for tables (I don’t see any nodes for “lists”?). You could do a table pretty easily with a c++ node.

Have you considered using “IOT” for configuration? We do this for a piece of equipment: it asks some IOT server for configuration, including tables. We use Adafruit’s IOT. Here’s some tutorial: [Reading JSON Data — XOD](https://xod.io/docs/guide/reading-json-data/)

---

<div class="post-metadata">

**Author:** ![jacob-wiqvist](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jacob-wiqvist](https://forum.xod.io/u/jacob-wiqvist)\
**Post date:** [June 25, 2022, 8:29am UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129/4 "2022-06-25T08:29:06Z")

</div>

This look exactly what I want to do. [Embrio - Bezier Curve Node](https://embrio.io/projects/beginner-tutorials/beginner-projects/bezier-curve-node)

But is this possible in xod?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [July 25, 2022, 8:29am UTC](https://forum.xod.io/t/possible-to-make-graph-or-table-to-manipulate-input-and-output/6129/5 "2022-07-25T08:29:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
