how to import data from matlab to pspice

Guest
Hi.

I am an engineering student and I have a project to do which envolves
working with both matlab and pspice. I read some things about using
spice values in matlab but I found nothing in the other way. I would
like to know if it is possible to import data such as values and
graphics from matlab to pspice and how to do it. I know pspice is not
the best simulation program but its use is compulsory.

Thank you in advance.

AV
 
On Wed, 17 Dec 2008 08:48:30 -0800 (PST), catarina.runa@gmail.com
wrote:
[snip]

I know pspice is not
the best simulation program but its use is compulsory.

[snip]

Really? Who told you that?

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine Sometimes I even put it in the food
 
On Wed, 17 Dec 2008 08:48:30 -0800 (PST), catarina.runa@gmail.com
wrote:

Hi.

I am an engineering student and I have a project to do which envolves
working with both matlab and pspice. I read some things about using
spice values in matlab but I found nothing in the other way. I would
like to know if it is possible to import data such as values and
graphics from matlab to pspice and how to do it. I know pspice is not
the best simulation program but its use is compulsory.

Thank you in advance.

AV
Depends on what you want to do with it. Are you trying to model some
part's behavior, or want a custom stimulus on a node, or just want to
compare data from your Matlab simulation with your PSpice simulation.
All these can be done, but each is different...

Charlie
 
Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.
 
On Wed, 17 Dec 2008 10:08:59 -0800 (PST), catarina.runa@gmail.com
wrote:

On 17 dez, 17:17, Charlie E. <edmond...@ieee.org> wrote:
On Wed, 17 Dec 2008 08:48:30 -0800 (PST), catarina.r...@gmail.com
wrote:

Hi.

I am an engineering student and I have a project to do which envolves
working with both matlab and pspice. I read some things about using
spice values in matlab but I found nothing in the other way. I would
like to know if it is possible to import data such as values and
graphics from matlab to pspice and how to do it. I know pspice is not
the best simulation program but its use is compulsory.

Thank you in advance.

AV

Depends on what you want to do with it.  Are you trying to model some
part's behavior, or want a custom stimulus on a node, or just want to
compare data from your Matlab simulation with your PSpice simulation.
All these can be done, but each is different...

Charlie



We have a matrix with the values from a graphic made in Matlab and we
want that matrix to be the input of an amplifier/ ECG simulator in
pSpice.
Ok, that can be interpreted two ways.

If you want these values to be the signal that is then input into your
amplifier, then you need to look at the VPWL_FILE parts. These take
the values from a text file, assumed to be in time/voltage (or
time/current) pairs, and use that to create the input waveform.

If these are somehow to be the model for the input stage itself, then
you will need to explore Etable parts. These basically can take a
table of vin/vout (or other similiar combinations) and model a part.

Charlie
Edmondson Engineering Inc.
 
On 17 dez, 17:17, Charlie E. <edmond...@ieee.org> wrote:
On Wed, 17 Dec 2008 08:48:30 -0800 (PST), catarina.r...@gmail.com
wrote:

Hi.

I am an engineering student and I have a project to do which envolves
working with both matlab and pspice. I read some things about using
spice values in matlab but I found nothing in the other way. I would
like to know if it is possible to import data such as values and
graphics from matlab to pspice and how to do it. I know pspice is not
the best simulation program but its use is compulsory.

Thank you in advance.

AV

Depends on what you want to do with it.  Are you trying to model some
part's behavior, or want a custom stimulus on a node, or just want to
compare data from your Matlab simulation with your PSpice simulation.
All these can be done, but each is different...

Charlie


We have a matrix with the values from a graphic made in Matlab and we
want that matrix to be the input of an amplifier/ ECG simulator in
pSpice.
 
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.runa@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.
But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine Sometimes I even put it in the food
 
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro.pt@gmail.com
wrote:

On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
LuĂ­s Ribeiro
Post a sample line. It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine Sometimes I even put it in the food
 
On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|    1962     |

 I love to cook with wine     Sometimes I even put it in the food
Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
Luís Ribeiro
 
On Wed, 17 Dec 2008 16:34:10 -0800 (PST), luisribeiro.pt@gmail.com
wrote:

On 18 dez, 00:09, luisribeiro...@gmail.com wrote:
On 17 dez, 23:47, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-



Site.com> wrote:
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro...@gmail.com
wrote:

On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
LuĂ­s Ribeiro

Post a sample line.  It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|   1962     |

 I love to cook with wine     Sometimes I even put it in the food

I have a .txt file tab delimited:
"0,0100    2,1745
0,0110  2,2904
0,0120  2,0721
0,0130  2,2068
0,0140  2,1135
0,0150  1,8730
0,0160  1,7808
0,0170  2,0196
0,0180  2,0291
0,0190  1,8819
0,0200  1,7292
0,0210  1,9683
0,0220  1,9875
0,0230  1,8811
0,0240  1,8376
0,0250  1,7503
0,0260  2,1414"

and it shows ""Quoted strings must fit on one line". what i do??

Hi one problem less. The problem was about the directory i was using,
i think it was because the name of the folder i use, too big and with
spaces. :D
SOLVED! thanks everyone, specialy Jim
Does your version of PSpice like the "," (comma) instead of "." (dot)?

...Jim Thompson
--
| James E.Thompson, P.E. | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |

I love to cook with wine Sometimes I even put it in the food
 
On 17 dez, 23:47, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro...@gmail.com
wrote:





On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
Luís Ribeiro

Post a sample line.  It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|    1962     |

 I love to cook with wine     Sometimes I even put it in the food
I have a .txt file tab delimited:
"0,0100 2,1745
0,0110 2,2904
0,0120 2,0721
0,0130 2,2068
0,0140 2,1135
0,0150 1,8730
0,0160 1,7808
0,0170 2,0196
0,0180 2,0291
0,0190 1,8819
0,0200 1,7292
0,0210 1,9683
0,0220 1,9875
0,0230 1,8811
0,0240 1,8376
0,0250 1,7503
0,0260 2,1414"

and it shows ""Quoted strings must fit on one line". what i do??
 
On 18 dez, 00:09, luisribeiro...@gmail.com wrote:
On 17 dez, 23:47, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-



Site.com> wrote:
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro...@gmail.com
wrote:

On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program..."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
Luís Ribeiro

Post a sample line.  It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|   1962     |

 I love to cook with wine     Sometimes I even put it in the food

I have a .txt file tab delimited:
"0,0100    2,1745
0,0110  2,2904
0,0120  2,0721
0,0130  2,2068
0,0140  2,1135
0,0150  1,8730
0,0160  1,7808
0,0170  2,0196
0,0180  2,0291
0,0190  1,8819
0,0200  1,7292
0,0210  1,9683
0,0220  1,9875
0,0230  1,8811
0,0240  1,8376
0,0250  1,7503
0,0260  2,1414"

and it shows ""Quoted strings must fit on one line". what i do??
Hi one problem less. The problem was about the directory i was using,
i think it was because the name of the folder i use, too big and with
spaces. :D
SOLVED! thanks everyone, specialy Jim
 
On 18 dez, 00:58, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 16:34:10 -0800 (PST), luisribeiro...@gmail.com
wrote:



On 18 dez, 00:09, luisribeiro...@gmail.com wrote:
On 17 dez, 23:47, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-

Site.com> wrote:
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro...@gmail.com
wrote:

On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program...."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
Luís Ribeiro

Post a sample line.  It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|   1962     |

 I love to cook with wine     Sometimes I even put it in the food

I have a .txt file tab delimited:
"0,0100    2,1745
0,0110  2,2904
0,0120  2,0721
0,0130  2,2068
0,0140  2,1135
0,0150  1,8730
0,0160  1,7808
0,0170  2,0196
0,0180  2,0291
0,0190  1,8819
0,0200  1,7292
0,0210  1,9683
0,0220  1,9875
0,0230  1,8811
0,0240  1,8376
0,0250  1,7503
0,0260  2,1414"

and it shows ""Quoted strings must fit on one line". what i do??

Hi one problem less. The problem was about the directory i was using,
i think it was because the name of the folder i use, too big and with
spaces. :D
SOLVED! thanks everyone, specialy Jim

Does your version of PSpice like the "," (comma) instead of "." (dot)?

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|    1962     |

 I love to cook with wine     Sometimes I even put it in the food
You right! in the file i used i had replace "," by "." and it works
fine! looks that my Pspice version like dots :D
 
On 18 dez, 00:58, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 16:34:10 -0800 (PST), luisribeiro...@gmail.com
wrote:



On 18 dez, 00:09, luisribeiro...@gmail.com wrote:
On 17 dez, 23:47, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-

Site.com> wrote:
On Wed, 17 Dec 2008 15:15:53 -0800 (PST), luisribeiro...@gmail.com
wrote:

On 17 dez, 19:20, Jim Thompson <To-Email-Use-The-Envelope-I...@My-Web-
Site.com> wrote:
On Wed, 17 Dec 2008 09:01:25 -0800 (PST), catarina.r...@gmail.com
wrote:

Its a demand from the teacher... If anyone knows how to do what I
asked, I would really apreciate it.

But you said, "I know pspice is not the best simulation program...."

The question is, "How do you know that" ?:)

                                        ...Jim Thompson
[snip]

Hi, i´m facing the same problem. I have tried VPWL_FILE but when i run
spice appears "Quoted strings must fit on one line". I used an
exported file from matlab with format -ASCII, with two collumns.
Can somebody help??
Luís Ribeiro

Post a sample line.  It's probably just a syntactical confusion.

I know it works because I've taken an output from one simulation and
used it as a signal source for another simulation.

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|   1962     |

 I love to cook with wine     Sometimes I even put it in the food

I have a .txt file tab delimited:
"0,0100    2,1745
0,0110  2,2904
0,0120  2,0721
0,0130  2,2068
0,0140  2,1135
0,0150  1,8730
0,0160  1,7808
0,0170  2,0196
0,0180  2,0291
0,0190  1,8819
0,0200  1,7292
0,0210  1,9683
0,0220  1,9875
0,0230  1,8811
0,0240  1,8376
0,0250  1,7503
0,0260  2,1414"

and it shows ""Quoted strings must fit on one line". what i do??

Hi one problem less. The problem was about the directory i was using,
i think it was because the name of the folder i use, too big and with
spaces. :D
SOLVED! thanks everyone, specialy Jim

Does your version of PSpice like the "," (comma) instead of "." (dot)?

                                        ...Jim Thompson
--
| James E.Thompson, P.E.                           |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon athttp://www.analog-innovations.com|    1962     |

 I love to cook with wine     Sometimes I even put it in the food
You right! in the file i used i had replace "," by "." and it works
fine! looks that my Pspice version like dots :D
 

Welcome to EDABoard.com

Sponsor

Back
Top