Hi,
I see a handy and useful command/function implemented in LTspice: state machine (.machine), without needed to write C++ code. See in below img.
Is such a command available in qspice?
Hi,
I see a handy and useful command/function implemented in LTspice: state machine (.machine), without needed to write C++ code. See in below img.
Is such a command available in qspice?
Hi Cornel,
It seems we agree. I have used the state machine primitive extensively in LTspice. See my post:
I have tried this in QSPICE and it seems to me that it simply does not exist. Although surprisingly it does not throw any error about the syntax. That does seem strange. One would assume that if .machine is not supported then the parser would throw an error, but it seems not.
I for one can not stress just how important this primitive is to allow me to embrace QSPICE as I have an extensive library of models with the state machine primitive fundamental to their operation.
If the arbitrary state machine primitive where available I could migrate existing models and then modify the core logic towards ‘C’ on a case by case basis and where performance is critical.
I hope we see this supported soon.
Aidan
IMO the state machine mechanic in LTspice is a work around for not having the ability to inject arbitrary code blocks directly into your simulations.
Its still a useful command to have also in QSPICE