summaryrefslogtreecommitdiff
path: root/OSCAD/LPCSim/LUT/ids.sce
blob: ab50b51d7d5a84775b0ceaf433163bd3d5cf66d3 (plain)
1
2
3
4
5
6
7
8
// Wrapper function for calling C language routine ids_c from SciLab
function Id = ids(Vds, Vgs, Vbs)
l=link("/NFS1/yogesh/project/MNA/LUT/libids.so", "ids_c", "c")
Id=0.0;
sizeId=size(Id);
Id=fort("ids_c",Vds, 1,"d",Vgs, 2, "d", Vbs, 3, "d", Id, 4, "d", "out",sizeId, 4, "d");
ulink(l);
endfunction