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

NAME

6       setlocap - set the capacitance value of a logical capacitor
7

SYNOPSIS

9       #include "mlo.h"
10
11       void setlocap(ptfig,name,newcapa)
12       lofig_list ∗ptfig ;
13       const char ∗name ;
14       double newcapa ;
15

PARAMETERS

17       ptfig               Pointer to the figure in which the capacitor should
18                           be seeked
19
20       name                Instance name of the capacitor
21
22       newcapa             New capacitance value
23

DESCRIPTION

25       setlocap looks in the list of capacitors of the logical  model  pointed
26       to by ptfig for a capacitor identified by its instance name and set the
27       CAPA field to the newcapa value.
28

RETURN VALUE

30       None
31

ERRORS

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

EXAMPLE

38       #include "mlo.h"
39
40       void set_locap_value(char ∗figname,char ∗capname,double newcapa)
41       {
42         setlocap(getlofig(figname,'A'),capname,newcapa) ;
43       }
44

SEE ALSO

46       mbk(1), lofig(3), locap(3), addlocap(3), getlocap(3), dellocap(3).
47
48
49
50
51
52
53ASIM/LIP6                       August 14, 2002                    SETLOCAP(3)
Impressum