Post Go back to editing

Regarding the warning message for the "Ncycle" parameter

Thread Summary

The user reported that setting `Ncycle = 0` in a PULSE voltage source produces a warning in newer versions, while it is silently ignored in SINE sources. The final answer confirms that both sources treat `Ncycle = 0` as infinite cycles, but the warning for PULSE sources will be reviewed for potential removal to improve compatibility with existing circuits.
AI Generated Content
Category: Software
Software Version: V24.1.10

Hello ADI Support,

There is a parameter called "Ncycle" in voltage sources.
It seems that in the newer versions, the handling of `Ncycle = 0` has become a bit stricter.

In the "PULSE" type source (see attached `tuto1.asc`), setting `Ncycle = 0` produces a warning:

WARNING: Ncycles must be a positive number, will be ignored (using default = infinity).
V1 out 0 PULSE(0 {amp} 1m 1u 1u {Ton} {Tperiod} {Ncyc})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

However, in the "SINE" type source (see attached `tuto2.asc`), setting `Ncycle = 0` behaves the same as if it were omitted — no warning appears.

Since voltage sources are widely used in libraries, it is quite common that the upper-level circuit passes `Ncycle = 0`.
As a result, the log is flooded with warning messages.
I was wondering — am I the only one who feels this warning might be a bit too strict?

In previous versions, no warning was generated for this case.

Best regards,
Denspa
251106_tuto.zip

Parents Reply Children
No Data