Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help~~~How could I read PSPICE out files in matlab

Status
Not open for further replies.

tongtongsd

Junior Member level 2
Joined
Apr 16, 2010
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,442
I am doing some simulations in a RC circuit and I would like to use Matlab to do some analysis to these result (in order to gain a frequency-voltage curve in a impulse source ), since the Pspice simulations contain only 4 types .

Can any 1 gimme any ideas? I appreciate any help!!

Following is my circuit:

**broken link removed**
 

If you can write your results of pspice into a file format the matlab can understand, you can do it buddy.
 

amraldo said:
If you can write your results of pspice into a file format the matlab can understand, you can do it buddy.

Could you gimme more info about it?
what type of file should I write the data into? and what function should I use in matlab to read the file?

Thx so much bro
 

I did not use these tools long time ago. The file format would be something like CSV format.
--
Amr
 

in a recent post of the same question i have suggested:
(is it from the same poster?)

generate the .raw file in pspice.
read the raw file in matlab.

a separate function is reqd for reading raw output into matlab.

srizbf
9thjune2010
 

    tongtongsd

    Points: 2
    Helpful Answer Positive Rating
srizbf said:
in a recent post of the same question i have suggested:
(is it from the same poster?)

generate the .raw file in pspice.
read the raw file in matlab.

a separate function is reqd for reading raw output into matlab.

srizbf
9thjune2010

Yes That's me too
thx so much srizbf
I will have a try!!

Added after 5 hours 41 minutes:

tongtongsd said:
srizbf said:
in a recent post of the same question i have suggested:
(is it from the same poster?)

generate the .raw file in pspice.
read the raw file in matlab.

a separate function is reqd for reading raw output into matlab.

srizbf
9thjune2010

Yes That's me too
thx so much srizbf
I will have a try!!


Thx Srizbf~
but I still have to ask that where and how can I output the files as a rawfile, after I looked for the function whole day and still haven't got it~

thx man
 

in the matlab site there is a contributed code section. in that look for:

rawspice6.m
a matlab function that reads spice3g "raw" files line-by-line
%and outputs string and numeric information compatible with MATLAB.

i hope it will suit your requirement.

thanks for the message.

srizbf
10thjune2010
 

srizbf said:
in the matlab site there is a contributed code section. in that look for:

rawspice6.m
a matlab function that reads spice3g "raw" files line-by-line
%and outputs string and numeric information compatible with MATLAB.

i hope it will suit your requirement.

thanks for the message.

srizbf
10thjune2010
\

Thx srizbf:
I ve found the raw read Matlab file
My problem is that I could not find the raw file in Pspice
What should I do to generate it ? (I am using the PSPICE 9.1 Student Demo verision)

Thx for your thoughtful help!!
 

when you generate the plot file in spice
you can save it as a 'raw' file.

check in your spicedemo version in which menu you have the option as 'save' or
'save as' in 'raw' format.

with regards

srizbf
11thjune2010
 

srizbf said:
when you generate the plot file in spice
you can save it as a 'raw' file.

check in your spicedemo version in which menu you have the option as 'save' or
'save as' in 'raw' format.

with regards

srizbf
11thjune2010

Hi man:
I 've checked my pspice and I can not found the function save as "raw" file
Could you gimme some details of your PSPICE version which can generate the raw file?
I will try to find it

I dont think Pspice student 9.1 can do it

Thx so much
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top