1GENLIB_SET_LOSELF(3) MBK LOGICAL FUNCTIONS GENLIB_SET_LOSELF(3)
2
3
4
6 GENLIB_SET_LOSELF - set the inductance value of a logical inductor,
7 after its creation.
8
10 #include "mlo.h"
11
12 void GENLIB_SET_LOSELF(figname,selfname,newself)
13 char ∗figname ;
14 char ∗selfname ;
15 double newself ;
16
18 figname Name of the logical figure
19
20 selfname Instance name of the inductor
21
22 newself New inductance value
23
25 GENLIB_SET_LOSELF looks in the list of inductors of the logical model
26 figname for a inductor identified by its instance selfname and set the
27 SELF field to the newself value.
28
30 None
31
33 "∗∗∗ mbk error ∗∗∗ getloself impossible : inductor name doesn't exist
34 in figure ptfig -> NAME"
35 No inductor matches the name.
36
38 #include <genlib.h>
39
40 int main(int argc,char ∗argv[])
41 {
42 /∗ Create a figure to work on, a parallel inductor ∗/
43 GENLIB_DEF_LOFIG("parallel_self") ;
44
45 /∗ Define interface ∗/
46 GENLIB_LOCON("i",IN,"input") ;
47 GENLIB_LOCON("f",OUT,"output") ;
48
49 /∗ Add inductors ∗/
50 GENLIB_LOSELF(SELFMIM,5.1,"input","output","self1") ;
51 GENLIB_LOSELF(SELFMIM,5.2,"input","output","self2") ;
52
53 /* Modify inductors value */
54 GENLIB_SET_LOSELF("parallel_self","self1",6.2) ;
55 GENLIB_SET_LOSELF("parallel_self","self2",6.3) ;
56
57 /∗ Save all that on disk ∗/
58 GENLIB_SAVE_LOFIG() ;
59
60 return 0 ;
61 }
62
64 mbk(1), GENLIB_DEF_LOFIG(3), GENLIB_LOSELF(3)
65
66
67
68
69
70
71ASIM/LIP6 August 14, 2002 GENLIB_SET_LOSELF(3)