Electronic Schematics (alt.binaries.schematics.electronic) A place to show and share your electronics schematic drawings.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to alt.binaries.schematics.electronic,sci.electronics.design,sci.electronics.cad
external usenet poster
 
Posts: 2,181
Default LTspice Question

Suppose, in PSpice, I have a behavioral current source that "quits"
unless it has at least 0.5V across it...

GDC_I1 N_1 N_2 VALUE {(1+TANH(2.2/0.1*(V(N_1,N_2)-0.5)))/2*1mA}

Can LTspice understand that line "as is", or must it be changed?

If it must be changed, what is the proper syntax?

Thanks!

...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice480)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.
  #2   Report Post  
Posted to alt.binaries.schematics.electronic
external usenet poster
 
Posts: 2,181
Default LTspice Question

On Sat, 20 Oct 2012 11:09:15 -0700, Fred Abse
wrote:

On Thu, 18 Oct 2012 12:32:23 -0700, Jim Thompson wrote:

Suppose, in PSpice, I have a behavioral current source that "quits" unless
it has at least 0.5V across it...

GDC_I1 N_1 N_2 VALUE {(1+TANH(2.2/0.1*(V(N_1,N_2)-0.5)))/2*1mA}

Can LTspice understand that line "as is", or must it be changed?

If it must be changed, what is the proper syntax?

Thanks!


"As is", that produces a linear ramp of current from 0 to 1 mA, in
LTspice.


Thanks, Fred,

Helmut answered me that the PSpice notation works, but recommended the
Bxxx notation.

However I need to stick with the "VALUE" method, since other Spice's
use Bxxx as a GaAsFET


Try this:

Version 4
SHEET 1 880 680
WIRE 304 64 192 64
WIRE 432 64 304 64
WIRE 192 96 192 64
WIRE 432 96 432 64
WIRE 192 240 192 176
WIRE 272 240 192 240
WIRE 320 240 272 240
WIRE 432 240 432 176
WIRE 432 240 320 240
FLAG 320 320 0
FLAG 304 64 N_1
FLAG 272 240 N_2
SYMBOL Misc\\Gpoly 192 192 M180
WINDOW 0 24 104 Left 2
WINDOW 3 -260 4 Left 2
SYMATTR InstName GDC_I1
SYMATTR Value VALUE = {(1+TANH(2.2/0.1*(V(N_1,N_2)-0.5)))/2*1mA}
SYMBOL res 304 224 R0
SYMATTR InstName R2
SYMATTR Value 1T
SYMBOL voltage 432 80 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 0
TEXT -70 338 Left 2 !.dc v1 0 10 0.5


...Jim Thompson
--
| James E.Thompson, CTO | mens |
| Analog Innovations, Inc. | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| Phoenix, Arizona 85048 Skype: Contacts Only | |
| Voice480)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.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numerical Optimizer for LTSpice IV Sean_VN Electronics 0 July 26th 12 05:44 AM
LTspice to PSpice Conversion? Jim Thompson Electronic Schematics 0 February 12th 10 05:41 PM
LTspice Question Jim Thompson Electronic Schematics 23 February 29th 08 02:39 AM
Revised LTSpice tutorial Charles Electronics Repair 0 February 13th 08 11:47 PM
Revised LTSpice tutorial Charles Electronics 0 February 13th 08 11:36 PM


All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"