Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #454331

Re: Make LTSpice report an error

From rickman <gnuarm@gmail.com>
Newsgroups sci.electronics.design
Subject Re: Make LTSpice report an error
Date 2017-03-30 23:53 -0400
Organization A noiseless patient Spider
Message-ID <obkjle$1du$1@dont-email.me> (permalink)
References <ek5oj2F4877U1@mid.individual.net>

Show all headers | View raw


On 3/30/2017 9:09 PM, Sylvia Else wrote:
> I'd like a way to make LTSpice report an error if one of my sub-circuits
> detects an invalid condition. For example, I often simulate a PIC by
> representing it as a sub-circuit that applies signals to its pins in
> accordance with the way I intend to program it. I'd like that
> sub-circuit to check, for example, that it has the correct voltage on
> its power and ground pins, and flag an error if not.
>
> Anyone have a way of doing that?

LTspice will report the results of measurements which can contain 
calculations.  If you have a value called "VoltageTooLow" and calculate 
it by dividing by a value which would be exactly zero when your error 
condition occurs, rather than reporting a number it will flag the 
error... I think.  I know I had what look like error reports when my 
measure statements were not able to be executed.

Otherwise you can create a signal that makes an extreme change in 
voltage when the error condition occurs and monitor it on the waveform 
display.  Switches are useful for bounds checking.

-- 

Rick C

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Make LTSpice report an error Sylvia Else <sylvia@not.at.this.address> - 2017-03-31 12:09 +1100
  Re: Make LTSpice report an error rickman <gnuarm@gmail.com> - 2017-03-30 23:53 -0400
    Re: Make LTSpice report an error Sylvia Else <sylvia@not.at.this.address> - 2017-03-31 17:32 +1100
      Re: Make LTSpice report an error rickman <gnuarm@gmail.com> - 2017-03-31 06:08 -0400
  Re: Make LTSpice report an error Jim Thompson <To-Email-Use-The-Envelope-Icon@On-My-Web-Site.com> - 2017-03-31 09:34 -0700

csiph-web