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

NAME

6       setlores - set the resistance value of a logical resistor
7

SYNOPSIS

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

PARAMETERS

17       ptfig               Pointer  to the figure in which the resistor should
18                           be seeked
19
20       name                Instance name of the resistor
21
22       newresi             New resistance value
23

DESCRIPTION

25       setlores looks in the list of resistors of the logical model pointed to
26       by  ptfig  for  a  resistor identified by its instance name and set the
27       RESI field to the newresi value.
28

RETURN VALUE

30       None
31

ERRORS

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

EXAMPLE

38       #include "mlo.h"
39
40       void set_lores_value(char ∗figname,char ∗resname,double newresi)
41       {
42         setlores(getlofig(figname,'A'),resname,newresi) ;
43       }
44

SEE ALSO

46       mbk(1), lofig(3), lores(3), addlores(3), getlores(3), dellores(3).
47
48
49
50
51
52
53ASIM/LIP6                       August 14, 2002                    SETLORES(3)
Impressum