diff options
Diffstat (limited to 'OSCAD/LPCSim/LUT/ids.sce')
-rw-r--r-- | OSCAD/LPCSim/LUT/ids.sce | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OSCAD/LPCSim/LUT/ids.sce b/OSCAD/LPCSim/LUT/ids.sce new file mode 100644 index 0000000..ab50b51 --- /dev/null +++ b/OSCAD/LPCSim/LUT/ids.sce @@ -0,0 +1,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 |