Hi all! I am having a problem in ADE while using the calculator functions to check the transient operating points of a large-signal circuit (a relaxation VCO). In my testbench, I detect the commutation instants of the circuit and evaluate the transient operating points of critical devices at the instants half-way in between. In particular, I would check the operating region of a device at time "Tmeasure" using the value() function:
value(getData("MP1:region" ?result "tran") Tmeasure)
The problem is that the value() function returns an interpolated value using the 2 timesteps closest to the specified time instant (which are not necessarily equal!). Of course, this doesn't make any sense for operating region codes, which assume discrete values. As an example, if the device went from off-state (code 0) to subthreshold (code 3) before and after time "Tmeasure", I end up reading a non-sense interpolated value like 781.2m.
Thus I need to change my formula in order not to return an interpolated value but the actual value of the waveform at the timestep closest to the specified instant (or, say, the timestep just before it). I have read the documentation on the calculator functions, but haven't found anything close to what I need. Does anybody have a clue as to how I can achieve this?
Thanks in advance for any help!