# I.generate\_waveform()

**URL:** <https://forum.liquidinstruments.com/t/i-generate-waveform/1102>\
**Category:** Support & Troubleshooting\
**Created:** [January 23, 2025, 4:37pm UTC](https://forum.liquidinstruments.com/t/i-generate-waveform/1102 "2025-01-23T16:37:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saman](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@Saman](https://forum.liquidinstruments.com/u/Saman)\
**Post date:** [January 23, 2025, 4:37pm UTC](https://forum.liquidinstruments.com/t/i-generate-waveform/1102/1 "2025-01-23T16:37:48Z")

</div>

**Moku model:** Moku:Lab  
**Operating system:** Ubuntu (Python API)  
**Software version:** (601)

**Bug or support request description:** Dear all, I would like to generate a ramp signal which has it’s minimum at t=0.  
Every time I run the cell,  
`i.generate_waveform(1, 'Ramp',symmetry = 50, amplitude=1,offset = 0.5,frequency=5)`  
send a ramp with an arbitrary start point in time. I would like the ramp to have it’s min./max. at t=0.  
I am not sure, but when I use the Ipad and turn off the ramp and turn it on again, it has it’s middle value at t=0. I tried to turn off the output every time I run the cell by  
`i.generate_waveform(1,'Off')`, but it did not help either!  
I would appreciate your kind help.

---

<div class="post-metadata">

**Author:** ![indira](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.liquidinstruments.com/indira/32/317_2.png) [@indira](https://forum.liquidinstruments.com/u/indira)\
**Post date:** [January 27, 2025, 10:58pm UTC](https://forum.liquidinstruments.com/t/i-generate-waveform/1102/2 "2025-01-27T22:58:31Z")

</div>

Hi Saman,

With the offset you are using you’ll need to phase-shift the waveform by 270° to have that zero point of the waveform at t=0. This should give you the desired output.

> i.generate\_waveform(1, ‘Ramp’, symmetry=50, amplitude=1, offset=0.5, frequency=5, phase=270)

If you offset the ramp waveform in the App this should have the same effect and if you shift the waveform by 270° you’ll see that the waveform now starts and stops at t=0.

 ![Screenshot 2025-01-28 at 9.57.10 am](https://canada1.discourse-cdn.com/flex035/uploads/liquidinstruments/original/1X/4949a9ae947bab7668a4f1028c6a7f60fe65b53b.jpeg)

Hope this helps,  
Indira
