Matlab <-> PSpice Interface

How to call PSpice from Matlab and import the results
2,5K Downloads
Aktualisiert 14. Aug 2009

Lizenz anzeigen

YOU WILL NEED TO DOWNLOAD THE FREE VERSION OF PSpice 6.0 DOS (see below)!!!

The MPS Interface creates one full loop between Matlab and PSpice (you can add fitting routines later). It is a fully running function/program, but you will need to write your own code to adapt it to your problem!! Please see this tool as a demonstration that shows you, how to connect Matlab and PSpice 6.0 for DOS (works absolutely fine).

The zip-file contains the demo files test.m and test.mat and also the files

- makeNetList.m : a simple electrical circuit with variables
- writepwl.m : to write time/data files for PSpice
- readdat.m : to import data from PSpice
- PSpice60.m : to set parameters and call PSpice

and also

- setPCM.m : just a specific file for my demo problem
- writeCIR.m: shows what's necessary for a *.cir file

Extract all files and folders (!) and files to C:\ (you can change this later). Also download PSpice 6.0 (see below) and install/extract it. Copy the files PSEXEC.EXE and DOS4GW.EXE to C:\MPS\PSpice60\.

Then you're good to go, change the current Matlab directory to C:\MPS\Matlab\ and start with "test.m"

This is an early 'prototype', I will try to update it A.S.A.P. and add a detailed explanation/tutorial... However, the advanced user might like this as a template already.

Zitieren als

Frank Sommerhage (2026). Matlab <-> PSpice Interface (https://de.mathworks.com/matlabcentral/fileexchange/25028-matlab-pspice-interface), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R14
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu SPICE files finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: PSpice binary import

Version Veröffentlicht Versionshinweise
1.0.0.0