Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: TINA-TI syntax issue

$
0
0

first of all, thanks for making TINA-TI available //

I'd like to convert my AIM-spice opto-coupler (static) model to TINA syntax

*NSL32 (LDR) Light Dependent Resistor SPICE Subcircuit
*****connections:+ - R R
.SUBCKT NSL32OPTO 1 2 3 4
bled 1 5 i=exp(v(1,2)*24.154-46.803)
vid 5 2 0
blogivd 6 0 v=ln(i(vid))
rhlog 6 0 1
bcell 3 4 i=v(3,4)*(exp(v(6)*(-0.092947*v(6)-0.54364)-4.6619))
.ENDS

taken from here: http://www.lynx.net/~jc/NSL32-SR3modeling.html

I've converted it to the following

thinking it didn't like functional compositions

*NSL32 (LDR) Light Dependent Resistor SPICE Subcircuit
*****connections:+ - R R
.SUBCKT NSL32OPTO 1 2 3 4
gled 1 5 value = {exp(v(1,2)*24.154-46.803)}
vid 5 2 0

fivid 0 7 vid 1

rivid 7 0 1
elogivd 6 0 value = {log(v(7))}
rhlog 6 0 1
gcell 3 4 value = {v(3,4)*(exp(v(6)*(-0.092947*v(6)-0.54364)-4.6619))}
.ENDS

when I try to get the macro made it complains about the LOG function

any help is much apreciated


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>