1GENLIB_SET_LOCAP(3)          MBK LOGICAL FUNCTIONS         GENLIB_SET_LOCAP(3)
2
3
4

NAME

6       GENLIB_SET_LOCAP  -  set  the capacitance value of a logical capacitor,
7       after its creation.
8

SYNOPSIS

10       #include "mlo.h"
11
12       void GENLIB_SET_LOCAP(figname,capname,newcapa)
13       char ∗figname ;
14       char ∗capname ;
15       double newcapa ;
16

PARAMETERS

18       figname             Name of the logical figure
19
20       capname             Instance name of the capacitor
21
22       newcapa             New capacitance value
23

DESCRIPTION

25       GENLIB_SET_LOCAP looks in the list of capacitors of the  logical  model
26       figname  for a capacitor identified by its instance capname and set the
27       CAPA field to the newcapa value.
28

RETURN VALUE

30       None
31

ERRORS

33       "∗∗∗ mbk error ∗∗∗ getlocap impossible : capacitor name  doesn't  exist
34       in figure ptfig -> NAME"
35              No capacitor matches the name.
36

EXAMPLE

38       #include <genlib.h>
39
40       int main(int argc,char ∗argv[])
41       {
42         /∗ Create a figure to work on, a parallel capacitor ∗/
43         GENLIB_DEF_LOFIG("parallel_cap") ;
44
45         /∗ Define interface ∗/
46         GENLIB_LOCON("i",IN,"input") ;
47         GENLIB_LOCON("f",OUT,"output") ;
48
49         /∗ Add capacitors ∗/
50         GENLIB_LOCAP(CAPMIM,5.1,"input","output","cap1") ;
51         GENLIB_LOCAP(CAPMIM,5.2,"input","output","cap2") ;
52
53         /* Modify capacitors value */
54         GENLIB_SET_LOCAP("parallel_cap","cap1",6.2) ;
55         GENLIB_SET_LOCAP("parallel_cap","cap2",6.3) ;
56
57         /∗ Save all that on disk ∗/
58         GENLIB_SAVE_LOFIG() ;
59
60         return 0 ;
61       }
62

SEE ALSO

64       mbk(1), GENLIB_DEF_LOFIG(3), GENLIB_LOCAP(3)
65
66
67
68
69
70
71ASIM/LIP6                       August 14, 2002            GENLIB_SET_LOCAP(3)
Impressum