DOKK / manpages / debian 10 / alliance / GENLIB_SET_LORES.3.en
GENLIB_SET_LORES(3) MBK LOGICAL FUNCTIONS GENLIB_SET_LORES(3)

GENLIB_SET_LORES - set the resistance value of a logical resistor, after its creation.

See the file buster/alliance/alc_origin.1.en.gz.

#include "mlo.h"
void GENLIB_SET_LORES(figname,resname,newresi)
char ∗figname ;
char ∗resname ;
double newresi ;

Name of the logical figure
Instance name of the resistor
New resistance value

GENLIB_SET_LORES looks in the list of resistors of the logical model figname for a resistor identified by its instance resname and set the RESI field to the newresi value.

None

"∗∗∗ mbk error ∗∗∗ getlores impossible : resistor name doesn't exist in figure ptfig -> NAME"

No resistor matches the name.

#include <genlib.h>
int main(int argc,char ∗argv[])
{

/∗ Create a figure to work on, a parallel resistor ∗/
GENLIB_DEF_LOFIG("parallel_res") ;
/∗ Define interface ∗/
GENLIB_LOCON("i",IN,"input") ;
GENLIB_LOCON("f",OUT,"output") ;
/∗ Add resistors ∗/
GENLIB_LORES(RESMIM,5.1,"input","output","res1") ;
GENLIB_LORES(RESMIM,5.2,"input","output","res2") ;
/* Modify resistors value */
GENLIB_SET_LORES("parallel_res","res1",6.2) ;
GENLIB_SET_LORES("parallel_res","res2",6.3) ;
/∗ Save all that on disk ∗/
GENLIB_SAVE_LOFIG() ;
return 0 ; }

mbk(1), GENLIB_DEF_LOFIG(3), GENLIB_LORES(3)

See the file buster/alliance/alc_bug_report.1.en.gz.

August 14, 2002 ASIM/LIP6