setlores3
Set the resistance value of a logical resistor
Synopsys
#include "mlo.h" void setlores(ptfig,name,newresi) lofig_list ∗ptfig ; const char ∗name ; double newresi ;
Parameters
ptfig
|
Pointer to the figure in which the resistor should be seeked |
|---|---|
name
|
Instance name of the resistor |
newresi
|
New resistance value |
Overview
setlores looks in the list of resistors of the logical model pointed to by ptfig for a resistor identified by its instance name and set the RESI field to the newresi value.
Return value
None
Errors
"∗∗∗ mbk error ∗∗∗ setlores impossible : resistor name doesn't exist in figure ptfig -> NAME"
No resistor matches the name.
Examples
#include "mlo.h"
void set_lores_value(char ∗figname,char ∗resname,double newresi)
{
setlores(getlofig(figname,'A'),resname,newresi) ;
}
Releases
Unchanged in 4 releases since Debian 7 (Wheezy).