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