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.

Writing node voltage to file in APLAC

Status
Not open for further replies.

E-goe

Member level 5
Member level 5
Joined
Jan 10, 2003
Messages
84
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
715
HI

I'm using APLAC(in text mode) to simulate a design(differential amplifier). I want to write a node voltage to a file. How can I do this? Can somebody give the synthax to do this?

After that I've done this I want to import this file in Matlab ? Anybody has experience with that?

Greetz E-goe
 

You can use statements OpenFile and CloseFile to open and close text files.
Specifying FILE=outputfilename to statement Print will write the results
into file instead of text window/terminal. The following example will write first
DC voltages of nodes 2 and 3 and the current computed as (V(1)-V(2))/Rload
into file "result.txt". The last statements write all DC and AC voltages into the
same file in the form (nodename) = value.

--------------------------------------
OpenFile W "result.txt"
Analyze DC
Print FILE="result.txt"
+ S "Operating point" LF
+ S "Vce = " REAL Vdc(2) LF
+ S "Vbe = " REAL Vdc(3) LF
+ S "Ic = " REAL (Vdc(1)-Vdc(2))/RLoad LF
Print FILE="result.txt" VOLTAGES DC LF

Analyze AC FREQ=10k
Print FILE="result.txt" VOLTAGES AC

CloseFile "result.txt"
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top