# Device Simulator Square Wave

**URL:** <https://forum.inductiveautomation.com/t/device-simulator-square-wave/52361>\
**Category:** Ignition\
**Created:** [October 26, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/device-simulator-square-wave/52361 "2021-10-26T19:07:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [October 26, 2021, 7:07pm UTC](https://forum.inductiveautomation.com/t/device-simulator-square-wave/52361/1 "2021-10-26T19:07:53Z")

</div>

I am having issues with the device simulator square wave generator. I currently have a time-step of 10000 ms. The Square wave function looks like this:

```auto
square(0.0,1.0,0.1,true)

```

Based off what I read in the manual I would expect this to produce a square wave with a duty cycle of 50% and a period of 1 second ranging from 0 to 1. However, I get nothing. I have tried every iteration of this function and cannot get anything to work even remotely close to what I would expect.

Has anyone successfully used these simulator functions or know what I might be doing wrong here?
