PSpice binary import

lightning fast import for PSpice binary *.dat files
3.9K Downloads
Updated 12 Dec 2011

View License

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

Cite As

Frank Sommerhage (2024). PSpice binary import (https://www.mathworks.com/matlabcentral/fileexchange/21452-pspice-binary-import), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on SPICE files in Help Center and MATLAB Answers
Acknowledgements

Inspired: Matlab <-> PSpice Interface

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.10.0.0

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.

1.7.0.0

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

1.6.0.0

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

1.4.0.0

n/a

1.1.0.0

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

1.0.0.0

fclose(fid) was missing - is fixed now