Please cc: any reply by email Colin Warwick cwar...@ieee.org
|Hi! Does anyone know if pSpice can be made to dump a rawspice.raw file? If
|so how? (I have searched the docs and gotten no answer from tech support.)
|
|Please cc: any reply by email Colin Warwick cwar...@ieee.org
|
I vaguely remember hearing of a .RAW file. What is it?
...Jim Thompson
--
(If replying by E-mail please observe obscure method of anti-spam.)
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona Voice:(480)460-2350 | |
| Jim-T@analog_innovations.com Fax:(480)460-2142 | Brass Rat |
| http://www.analog-innovations.com | 1962 |
For proper E-mail replies SWAP "-" and "_".
"Things turn out best for those who make the best of how things turn out."
Jim:
It is a machine readable (i.e. fixed format, ASCII output file that dumps
all the simulation data. It is used as input to post-simulation analysis
programs.
The format is...
1) six-line header
2)<No. Variables+1> lines of descriptions of variables
3)<No. Points * (No. Variables+1)+1> lines of data.
See example below.
In Berkeley Spice you could make one from the command line...
spice -r mycircuit.raw mycircuit.cir
or in the interactive mode with the command...
write mycircuit.raw all
-- Colin
example
------------ mycircuit.raw begin --- cut here -------------
Title: TRANSIENT RESPONSE OF A 3-STAGE LINEAR AMPLIFIER
Date: Wed Jan 09 16:29:08 2002
Plotname: transient
Flags: real
No. Variables: 3
No. Points: 101
Variables:
0 time time
1 v(1) voltage
2 v(2) voltage
3 v(3) voltage
Values:
0 0.000000000000000e+000
0.000000000000000e+000
0.000000000000000e+000
1 1.000000000000000e-004
6.283184893762572e-004
5.711986267056883e-004
.
.
.<snip>
------------ mycircuit.raw end --- cut here -------------
|> I vaguely remember hearing of a .RAW file. What is it?
Aha! Just use a .PRINT statement in PSpice, then examine the .OUT
file.
Gives you the old-fashioned 132-wide green and white output ;-)
Seriously, you can actually get the same data in a form useable by,
for example, Excel, by using the Edit/Copy command in the Probe
window.
Well,I'm amazed Jim, what with your age and that. Not knowing that the raw file
is the standard output format used by all Berkeley compatible spice's.
Kevin Aylward , Warden of the Kings Ale
ke...@anasoft.co.uk
http://www.anasoft.co.uk - SuperSpice "Seriously...Why pay more?",
GUI xspice, an affordable mixed-mode Windows simulator
with Schematic Capture, waveform display, FFT's and Filter Design.
Thanks for the suggestion, but the reason I need a .raw file is that I am
trying to automate pSpice (or any another spice) as a server to a
controlling program/client (MATLAB used as a system simulator). I am trying
to avoid manually copying and pasting a few thousand batch runs. The .out
files contain a lot of 'free format' stuff that is harder to write a parser
for. The .raw files are much cleaner. [Even better would be an Active X
Automation (or similar) method or property that would give the client
program direct access to the vectors.]
|>Subject: Re: pSpice raw file?
|>From: Jim Thompson Jim-T@analog_innovations.com
|>Date: 14/01/2002 12:22 AM GMT Standard Time
|>Message-id: <h4944us3l2t6p1js9...@4ax.com>
|>
|>On Mon, 14 Jan 2002 00:00:59 GMT,
|>"Colin A. Warwick" <cwar...@home.com>,
|>In Newsgroup: sci.electronics.cad,
|>Article: <%cp08.337633$ez.48...@news1.rdc1.nj.home.com>,
|>Entitled: "pSpice raw file?",
|>Wrote the following:
|>
|>|Hi! Does anyone know if pSpice can be made to dump a rawspice.raw file? If
|>|so how? (I have searched the docs and gotten no answer from tech support.)
|>|
|>|Please cc: any reply by email Colin Warwick cwar...@ieee.org
|>|
|>
|>I vaguely remember hearing of a .RAW file. What is it?
|>
|
|Well,I'm amazed Jim, what with your age and that. Not knowing that the raw file
|is the standard output format used by all Berkeley compatible spice's.
|
|
|Kevin Aylward , Warden of the Kings Ale
|ke...@anasoft.co.uk
|http://www.anasoft.co.uk - SuperSpice "Seriously...Why pay more?",
|GUI xspice, an affordable mixed-mode Windows simulator
|with Schematic Capture, waveform display, FFT's and Filter Design.
Sheeesh! I last used Berkeley spice about 20 years ago.
Colin,
PSpice doesn't really support RAW, at least not that I know of, but it does
support CSDF, Common Simulation Data Format files, with a similiar format.
Was supposed to be a general purpose, inter-program data format that is
accepted by Matlab and Mathlab, IIRC.
Just go to the Probe options in the Simulation Profile.
Thanks,
Charlie
--
Edmondson Engineering
Unique Solutions to Unusual Problems
|> I vaguely remember hearing of a .RAW file. What is it?
|>
|> ...Jim Thompson
|
|Jim:
|
|It is a machine readable (i.e. fixed format, ASCII output file that dumps
|all the simulation data. It is used as input to post-simulation analysis
|programs.
|
|The format is...
|1) six-line header
|2)<No. Variables+1> lines of descriptions of variables
|3)<No. Points * (No. Variables+1)+1> lines of data.
|See example below.
|
[snip]
Colin, Here is what you get if you select Analysis/Probe Setup/Data
Collection/Text data file format (CSDF):
<Actual file is wide format, and I collect ALL data, but you can
specify nodes to suit your needs>
#H
SOURCE='PSPICE' VERSION='PSpice 9.2 (Mar 2001)'
TITLE='* D:\Projects\****\********.sch'
SUBTITLE='Step param VPP = .01 '
TIME='08:47:40' DATE='01/14/02' TEMPERATURE='7.000E01'
ANALYSIS='Transient Analysis' SERIALNO='1090******'
ALLVALUES='NO' COMPLEXVALUES='NO' NODES='203'
SWEEPVAR='Time' SWEEPMODE='VAR_STEP'
XBEGIN='0.000E00' XEND='5.000E-03'
FORMAT='0 VOLTSorAMPS;EFLOAT : NODEorBRANCH;NODE '
DGTLDATA='NO'
#N
'V(MN1:s)';'V(MN1:b)';'V(MN2:b)';'V(R7:2)';'V(I5:-)';'V(MN3:s)';'V(MN3:b)';'V(IM1:+)';'V(MN4:s)';'V(MN4:b)';'V(MN5:s)';'V(MN5:b)';'V(MP11:d)';
'V(MN6:s)';'V(MN6:b)';'V(V4:-)';'V(V1:+)';'V(G1:IN1+)';'V(G1:IN2+)';'V(L1:1)';'V(C2:2)';'V(R8:1)';'V(MN7:b)';'V(MN8:s)';'V(MN8:b)';'V(MN9:s)';
'V(MN9:b)';'V(R9:2)';'V(C3:1)';'V(MN10:b)';'V(C4:2)';'V(V2:+)';'V(C1:1)';'V(MN11:s)';'V(MN11:b)';'V(0)';'V2(C2)';'V1(C3)';'V2(C4)';'V1(C1)';
'V2(I5)';'V1(L1)';'VS(MN1)';'VB(MN1)';'VB(MN2)';'VS(MN3)';'VB(MN3)';'VS(MN4)';'VB(MN4)';'VS(MN5)';'VB(MN5)';'VD(MP11)';'VS(MN6)';'VB(MN6)';
'VB(MN7)';'VS(MN8)';'VB(MN8)';'VS(MN9)';'VB(MN9)';'VB(MN10)';'VS(MN11)';'VB(MN11)';'V2(R7)';'V1(R8)';'V2(R9)';'V1(IM1)';'V2(V4)';'V1(V1)';
'V1(V2)'
'V(MP13:g)';'V(MP14:d)';'V(MP14:g)';'V(MP16:s)';'V(MP16:b)';'V(N_22)';'VG(MP13)';'VD(MP14)';'VG(MP14)';'VS(MP16)';'VB(MP16)'
'V(MP13:d)';'V(MP15:s)';'V(MP15:b)';'V(N_23)';'VD(MP13)';'VS(MP15)';'VB(MP15)'
'V(MN10:d)';'V(MP15:g)';'V(MP16:d)';'V(MP16:g)';'V(N_21)';
'VD(MN10)';'VG(MP15)';'VD(MP16)';'VG(MP16)'
'V(R9:1)';'V(MN10:s)';'V(N_20)';'VS(MN10)';'V1(R9)'
'V(MP12:d)';'V(MN9:d)';'V(MN10:g)';'V(C4:1)';
'V(N_19)';'V1(C4)';'VD(MP12)';'VD(MN9)';'VG(MN10)'
'V(G1:IN2-)';'V(V2:-)';'V(N_18)';'V2(V2)'
'V(V1:-)';'V(G1:IN1-)';'V(N_17)';'V2(V1)'
'V(IM1:-)';'V(G1:OUT+)';'V(N_16)';'V1(G1)';'V2(IM1)'
'V(MN3:d)';'V(MP11:g)';'V(MN6:d)';'V(G1:OUT-)';'V(L1:2)';'V(C2:1)';'V(R8:2)';'V(N_15)';
'V1(C2)';'V2(G1)';'V2(L1)';'VD(MN3)';'VG(MP11)';'VD(MN6)';'V2(R8)'
'V(MN2:s)';'V(R7:1)';'V(MN7:s)';'V(N_14)';'VS(MN2)';'VS(MN7)';'V1(R7)'
'V(RAW)';'V(MN1:d)';'V(MN8:d)';'V(MN9:g)';'V(C3:2)';'V(MP15:d)';'V(MN11:g)';'V(RAW)';'V2(C3)';'VD(MN1)';'VD(MN8)';'VG(MN9)';'VD(MP15)';
'VG(MN11)'
'V(ALOGIC)';'V(MP10:d)';'V(MN11:d)';'V(ALOGIC)';'VD(MP10)';'VD(MN11)'
'V(MP5:s)';'V(MP5:b)';'V(MP6:s)';'V(MP6:b)';'V(MP7:s)';
'V(MP7:b)';'V(MP8:s)';'V(MP8:b)';'V(MP9:s)';'V(MP9:b)';'V(MP10:s)';'V(MP10:b)';'V(V4:+)';'V(MP12:s)';'V(MP12:b)';'V(MP13:s)';'V(MP13:b)';
'V(MP14:s)';'V(MP14:b)';'V(N_13)';'VS(MP5)';'VB(MP5)';'VS(MP6)';'VB(MP6)';'VS(MP7)';'VB(MP7)';'VS(MP8)';'VB(MP8)';'VS(MP9)';'VB(MP9)';'VS(MP10)';
'VB(MP10)';'VS(MP12)';'VB(MP12)';'VS(MP13)';'VB(MP13)';'VS(MP14)';'VB(MP14)';'V1(V4)'
'V(MP5:d)';'V(MP5:g)';'V(MP6:g)';'V(MP7:g)';'V(MP10:g)';
'V(I5:+)';'V(MP12:g)';'V(N_12)';'V1(I5)';'VD(MP5)';'VG(MP5)';'VG(MP6)';'VG(MP7)';'VG(MP10)';'VG(MP12)'
'V(MP4:g)';'V(MP6:d)';'V(MP11:s)';
'V(MP11:b)';'V(N_11)';'VG(MP4)';'VD(MP6)';'VS(MP11)';'VB(MP11)'
'V(R6:1)';'V(MP4:d)';'V(MN7:g)';'V(N_10)';'VD(MP4)';'VG(MN7)';'V1(R6)'
'V(MP3:s)';'V(MP3:b)';'V(MP4:s)';'V(MP4:b)';'V(MP7:d)';'V(N_9)';'VS(MP3)';'VB(MP3)';'VS(MP4)';'VB(MP4)';'VD(MP7)'
'V(MP2:s)';'V(MP2:b)';
'V(MP9:d)';'V(N_8)';'VS(MP2)';'VB(MP2)';'VD(MP9)'
'V(MP2:d)';'V(MP3:g)';'V(MN7:d)';'V(C1:2)';'V(N_7)';'V2(C1)';'VD(MP2)';'VG(MP3)';'VD(MN7)'
'V(MP1:s)';'V(MP1:b)';'V(MP8:d)';'V(MP8:g)';'V(MP9:g)';'V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)' 'W(MN3)' 'W(MN2)' 'W(MN1)' 'W(MP10)' 'W(MP9)' 'W(MP8)'
'W(MP7)' 'W(MP6)'
'W(MP5)' 'W(MP4)' 'W(MP3)' 'W(MP2)' 'W(MP1)' 'W(L1)' 'W(I5)' 'W(G1)'
'W(C1)' 'W(C4)' 'W(C3)' 'W(C2)'
#C 0.0000000000E00 203
0.000E00:1 2.187E00:2 2.173E00:3 1.373E00:4 3.071E-01:5 9.625E-01:6
0.000E00:7 0.000E00:8 0.000E00:9 0.000E00:a 1.025E-01:b
4.027E-01:c 5.545E-02:d 3.000E00:e 2.152E00:f 8.291E-01:10
6.741E-01:11 1.641E00:12 2.199E00:13 8.296E-01:14 2.208E00:15
1.415E00:16 6.696E-01:17 4.362E-01:18 5.920E-01:19 4.401E-01:1a
5.939E-01:1b 5.959E-01:1c 0.000E00:1d 0.000E00:1e -2.493E-06:1f
0.000E00:20 1.994E-07:21 0.000E00:22 2.663E-07:23 4.064E-07:24
4.030E-07:25 4.046E-07:26 1.532E-09:27 4.049E-07:28 1.532E-09:29
-5.567E-30:2a 1.000E-07:2b 0.000E00:2c 0.000E00:2d 0.000E00:2e
0.000E00:2f 0.000E00:30 -1.122E-09:31 -1.034E-07:32 0.000E00:33
1.046E-07:34 1.068E-10:35 2.004E-07:36 0.000E00:37 -2.005E-07:38
4.311E-10:39 8.044E-07:3a 0.000E00:3b -8.048E-07:3c 1.068E-10:3d
2.004E-07:3e 0.000E00:3f -2.005E-07:40 4.274E-10:41 8.044E-07:42
0.000E00:43 -8.048E-07:44 -1.062E-09:45 -1.994E-07:46 0.000E00:47
2.005E-07:48 -1.061E-09:49 -1.016E-07:4a 0.000E00:4b 1.027E-07:4c
1.080E-10:4d 1.025E-07:4e 0.000E00:4f -1.027E-07:50
-2.655E-10:51 -3.874E-07:52 0.000E00:53 3.877E-07:54 -1.036E-09:55
-1.333E-07:56 0.000E00:57 1.343E-07:58 0.000E00:59 0.000E00:5a
0.000E00:5b 0.000E00:5c 5.383E-11:5d 1.029E-07:5e 0.000E00:5f
-1.029E-07:60 -2.655E-10:61 -4.043E-07:62 0.000E00:63 4.046E-07:64
-2.655E-10:65 -4.046E-07:66 0.000E00:67 4.049E-07:68 0.000E00:69
0.000E00:6a 0.000E00:6b 0.000E00:6c -1.037E-09:6d -1.330E-07:6e
0.000E00:6f 1.340E-07:70 -2.655E-10:71 -4.168E-07:72 0.000E00:73
4.171E-07:74 1.090E-10:75 1.045E-07:76 0.000E00:77 -1.046E-07:78
1.068E-10:79 1.342E-07:7a 0.000E00:7b -1.343E-07:7c 1.068E-10:7d
1.339E-07:7e 0.000E00:7f -1.340E-07:80 8.589E-10:81 8.086E-07:82
0.000E00:83 -8.094E-07:84 1.082E-10:85 1.028E-07:86 0.000E00:87
-1.029E-07:88 1.069E-10:89 9.990E-08:8a 0.000E00:8b -1.000E-07:8c
2.140E-10:8d 4.062E-07:8e 0.000E00:8f -4.064E-07:90 2.140E-10:91
4.028E-07:92 0.000E00:93 -4.030E-07:94 1.074E-10:95 1.342E-07:96
0.000E00:97 -1.343E-07:98 1.068E-10:99 1.339E-07:9a 0.000E00:9b
-1.340E-07:9c 0.000E00:9d 0.000E00:9e -7.480E-06:9f 0.000E00:a0
6.123E-08:a1 0.000E00:a2 2.730E-08:a3 3.179E-08:a4 3.127E-08:a5
6.302E-08:a6 3.011E-12:a7 6.310E-08:a8 3.011E-12:a9 5.798E-09:aa
1.631E-07:ab 1.425E-06:ac 1.631E-07:ad 6.653E-07:ae 2.141E-07:af
9.881E-08:b0 2.091E-07:b1 1.561E-07:b2 9.778E-08:b3 0.000E00:b4
8.534E-08:b5................
Thanks! That might work. I think I can reverse engineer the format, but do
you know of a formal spec of CSDF anywhere? I search at google.com but got
no useful hits.
Also, thanks to Kevin for a pointer to his xspice port to Windows, and its
batch mode capability
C:\> xspice -r mycircuit.raw -b mycircuit.cir
I'll evaluate several methods, and post a summary, if there is any interest.