PWS produces incorrect result with large number of input tuples

See https://www.circuitlab.com/circuit/v8w2r4x4b6m8/pws-bug/

This circuit should produce a staircase voltage and current. However, it incorrectly produces one single big step instead.

The PWS function supplied to the current source accepts, without any error indication, more tuples than it apparently can successfully execute. The time simulation of a current source using PWS(....) is incorrect, without any error indication.

by dennis.risen
February 03, 2024

Post a Reply

Please sign in or create an account to comment.

Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.