plot artefact if plotting high frequency signal after simulation

Bug #1839712 reported by Holger Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
High
Jeff Young

Bug Description

A simple circuit:
Votage source with sinewave 1V amplitude, 1 kHz frequency, into load resistor 1 Ohm, labbelled with 'out'.
Transient simulation for 1 s, time step 100 us.

The plot of V(out) versus time yields a (sine) wave with 1 V amplitude and about 56 periods, that is a frequency of about 18 Hz (see plot output attached).

The plotting procedure suggests a wrong oscillation frequency.

Revision history for this message
Holger Vogt (h+vogt) wrote :
Revision history for this message
Holger Vogt (h+vogt) wrote :

The bug exists in all current KiCad versions, MS Windows

Revision history for this message
Holger Vogt (h+vogt) wrote :

The eeschema files

Revision history for this message
Holger Vogt (h+vogt) wrote :

Well, 56 periods are 56 Hz ...

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I believe this has something to do with the graphing code. When I zoom in, the waveform frequency is definitely 1KHz. In the view you provided, you should not even be able to see a waveform. I should look like a solid plot because the is 1000 sine waves in the small plot area. It looks like the graph plotting code is trying to compensate for waveform density. Anyone else have any ideas about this?

Changed in kicad:
status: New → Triaged
importance: Undecided → Low
Changed in kicad:
milestone: none → 5.1.5
Revision history for this message
Jeff Young (jeyjey) wrote :

By shrinking the window you can get some plots that are -really- wrong.

Changed in kicad:
importance: Low → High
Revision history for this message
Jeff Young (jeyjey) wrote :

The mathplot module skips intermediate Y points until the X point changes. Sadly, in the "overloaded" case this may be several waves later, resulting in bogus graphs.

Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: Triaged → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 2ac270ce8ea1fe81fd7b6946899532af56f8de8e
https://git.launchpad.net/kicad/patch/?id=2ac270ce8ea1fe81fd7b6946899532af56f8de8e

Changed in kicad:
status: In Progress → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.