5.0

5.0 | 6 ratings Rate this file 19 Downloads (last 30 days) File Size: 7.36 KB File ID: #21452
image thumbnail

PSpice binary import

by Frank Sommerhage

 

16 Sep 2008 (Updated 12 Dec 2011)

lightning fast import for PSpice binary *.dat files

| Watch this File

File Information
Description

This M-File imports data from binary *.dat files, created with PSpice. It has been tested for PSpice 6.0 (DOS), 9.1 (Student), 10.0.3 and 16.2.0. If you are using other versions of PSpice, you might need to adjust the code!

The M-file further has been tested with PSpice's transient analysis, AC and frequency sweeps. However, it might not be able to import digital data.

I would be happy to help out, if you can provide a small sample file created with another version of PSpice or containing a different data type

Required Products MATLAB
MATLAB release MATLAB 7.6 (R2008a)
Other requirements You need PSpice to create *.dat files. PSpice 6.0 for DOS is free. Google for 'pspice dos turkish', click PSPICE-ECS, and download disk 1 and 2.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
17 Sep 2008 James H.

I've been waiting for PSpice binary import. This is easy to use and has lots of comments - good job!

04 Dec 2008 Paul

This is a great contribution. For years I have been trying to read PSPICE waveforms into MATLAB. Thank you very much and well done!

12 Jul 2009 Sonny

thank you for posting this very useful file.

04 Nov 2009 yilong zhu  
24 Feb 2011 Richard

This has saved me lots of time and effort. Thank you, Frank.

22 Nov 2011 Fernando Schlemm Ribeiro

Great Contribution. Works Perfectly to read Spice .DAT files. Very useful. Easy to use. Well documented code. Thank you very much.

Please login to add a comment or rating.
Updates
18 Sep 2008

small improvements - according to M-Lind, help warnings, ...

22 Sep 2008

fclose(fid) was missing - is fixed now

20 Jun 2009

fixed an error for Matlab R2009a since hex2bin.m turned very picky (reported by Enea Bianda from ETH Zurich, Switzerland)
fixed an error before calling uigetfile.m using the previous path

17 Aug 2009

added compatibility for PSpice 16.2.0 (file was gently provided by Lars Bartschat from UniBw München)

22 Nov 2011

updated the format of output variables to support frequency sweeps and adjusted plots to contain phase data if present

12 Dec 2011

Fixed output structure and plot function for frequency related data to support real and imaginary parts. Data files were provided by Fernando Schlemm Ribeiro from Rio de Janeiro State University, Brazil.

Tag Activity for this File
Tag Applied By Date/Time
data import Frank Sommerhage 22 Oct 2008 10:19:45
data export Frank Sommerhage 22 Oct 2008 10:19:45
pspice Frank Sommerhage 22 Oct 2008 10:19:45
binary Frank Sommerhage 22 Oct 2008 10:19:45
utilities Frank Sommerhage 22 Oct 2008 10:19:45
data Frank Sommerhage 22 Oct 2008 10:19:45
export Frank Sommerhage 22 Oct 2008 10:19:45
import Frank Sommerhage 22 Oct 2008 10:19:45
pspice Alaa Bani Irshaid 26 Aug 2010 17:57:59
data export Alaa Bani Irshaid 26 Aug 2010 17:58:17
data import Alaa Bani Irshaid 26 Aug 2010 17:58:20
binary Alaa Bani Irshaid 26 Aug 2010 17:58:27

Contact us at files@mathworks.com