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?
Sylvia.