# \[BUG\] Programmable Device Simulator - triangle wave min/max

**URL:** <https://forum.inductiveautomation.com/t/bug-programmable-device-simulator-triangle-wave-min-max/81584>\
**Category:** Ignition\
**Created:** [November 7, 2023, 10:42am UTC](https://forum.inductiveautomation.com/t/bug-programmable-device-simulator-triangle-wave-min-max/81584 "2023-11-07T10:42:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidO](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/davido/32/53092_2.png) [@DavidO](https://forum.inductiveautomation.com/u/DavidO)\
**Post date:** [November 7, 2023, 10:42am UTC](https://forum.inductiveautomation.com/t/bug-programmable-device-simulator-triangle-wave-min-max/81584/1 "2023-11-07T10:42:08Z")

</div>

Trying to run a triangle wave with min-max = 400-800  
In gatway webpage:  
Created a Programmable Device Simulator.  
Added two 'tags' with Value Source:  
sine(400.0, 800.0, 100.0, true)  
triangle(400.0, 800.0, 100.0, true)

Subscribing in Gateway or adding the tags in Designer gives a correct Sine, but triangle has min=0 and max=(max-min).

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/7/675fe3becd7966dce9f47a7f1480973c657d23f4.png)

Tried to make the min negative, same result.  
Using:  
Ignition Platform 8.1.32, OPC-UA Module 9.1.32  
Chrome Version 119.0.6045.106
