Experimenter


Schematic

CASPOC Schematic

Components

Questions and remarks

Start the C script by selecting Tools/Start Cscript



The follwing code is executed from the C script

main()
{
int a;
int i;
int Vc;

a=500;
Vc=4;
CaspocSetTscreen(a);
Caspocfopen("buck\cscriptoutput.txt");
for(i=2;i<10;i=i+1)
{
print(i);
CaspocSetParameter("D",1,i);
CaspocSetComponentValue("R1","5");
CaspocSetComponentIC("C1",Vc);
CaspocStartSimulation("Some Description");
a=CaspocGetOutput("VoutmV");
Vc=a/1000;
Caspocfprintf3("file",1,i,a);
}


Caspocfclose("buck\cscriptoutput.txt");
print("script finished at i=");
print(i);
CaspocMessageBox("Title: Cscript","Message: Cscript finished!");
return a;
}




Results from the experimentor



1 2 4723
1 3 7227
1 4 9403
1 5 11695
1 6 13977
1 7 16243
1 8 18500
1 9 20739


SCOPE1:
Scope output




Circuit information

File name = buck.csi
Tscreen = 500.000u
Integration stepsize = 100.000n
Number of blocks = 6
Number of circuit nodes + voltage sources = 4

General information


Visit Caspoc.com