DSPRelated.com
Forums

Sending the circuit files to pspice and getting back the analyses results

Started by arbabmasood67 September 2, 2010
I am working on some ciruit simulation problem that would require the pspice readable(.cir)file designed in Matlab to be run on PSPICE and the analyses result from PSPICE to be automatically retrieved in Matlab.
I have seen one message showing how to read the Pspice result in matlab but has any one an idea how to direcly run Pspice simulation from Matlab?
Hello,

I think I might have the answer to your question. Spice can be also run from the "command line", so when calling the simulator from MATLAB, just add a ! in front of the command.

Here is a link that might help. Note that they use WinSpice, not Spice.

http://www.matrixlab-examples.com/winspice.html

Hope this helps you.
Paul

I am working on some ciruit simulation problem that would require the pspice readable(.cir)file designed in Matlab to be run on PSPICE and the analyses result from PSPICE to be automatically retrieved in Matlab.
>I have seen one message showing how to read the Pspice result in matlab but has any one an idea how to direcly run Pspice simulation from Matlab?
>