You are on page 1of 4

double a, b;

string str1, str2, str3, str4;

str1= 'today is';


str2= 'of';
str3= 'may';
str4= '!';
a=21;
b=2019;

printf ('\cl %s\ce %i\ch %s\cc %s\cp %d\ck %s',str1,a,str2,str3,b,str4);


printf ('\ce %i\');

object C, command, ac, GrBrd, VIPg;


set Cases, Lines,VI;
int ok,i,n;
ok=1;
ClearOutput();
if (.not.CmdStr) {
Error ('Verifique CmdStr');
ok=0;
}

if (.not.PathStr){
Error ('Verifique PathStr.');
ok=0;
}

if (.not.ok) exit();
this:IntExpr:0='0';
this:IntExpr:1='0';

FiltCase:pstart=ActiveProject();
Cases=FiltCase.Get();
C=Cases.First();
while (C){
C.ShowFullName();
C.Activate();
}

_______________________________________________________________
double var,vec;
int s,l,p,contador,i,j,a,b,NrColumns, NrRows;
string str1,str2,str3;
ClearOutput();
Matrix1.Init(1,1);
Vector1.Init(1);
a=5;
b=10;
str1='Matrix1 have' ;
str2='Rows, and';
str3='Columns';
contador=0;
for (i=1;i<=a;i+=1){
for (j=1;j<=b;j+=1){
var=Random(0,100);
var=round(var) ;
Matrix1.Set(i,j,var);
l=Matrix1.Get(i,j);
contador+=1;
Vector1.Set(contador,l);
printf('%i',l);

}
}

Matrix1.SortToColumn(b);
printf('%i',contador);

________________________________________________

int i;
set linea,lineatyp,carga,EventSet,IntScenario,scenarios,sline,
eventset;
string nombre;
double datos,scen_name;
object LOAD,ldf,LINE,aPrj,oFold,oEvent,SC_Event,shc,com,lib,scen,
shc_folder;

linea=AllRelevant('*.ElmLne');
!sline=SEL.AllLines();
!datos=linea:fline;
!printf('%d',datos);
ldf=GetCaseCommand('ComLdf');

carga=AllRelevant('*.ElmLod');
LOAD=carga.First();
LINE=linea.First();
while (LINE){
nombre=LINE:loc_name;
datos=LINE:dline;
printf('%s %d',nombre,datos);
LINE=linea.Next();

shc=GetCaseObject('ComShc');
com=GetCaseObject('ComLdf');
com.Execute();
shc.Execute();
!printf('%s', shc);
shc:iopt_mde=3;
shc:iopt_shc='3-Ph';
!printf('%s',shc:iopt_shc);

lib=GetLocalLib('IntScenario');
scenarios=lib.GetContents();
scen=scenarios.First();
printf('%s',scen);

i=1;
!while(scen){
scen.Activate();
scen_name=scen.GetVal(nombre,'loc_name');
!printf('%s',nombre);
!}
shc_folder=GetCaseObject('IntEvt');
shc_folder.ShowFullName();
shc_folder.CreateObject('EvtShc','cc_evento');
eventset=shc_folder.GetContents('cc_evento.EvtShc');
ResetCalculation();

_______________________________________________________

int a,i,contador,ibool;
double var,varg,NrRows,t_n,u;
string str, Name, Address,S1,S2,time;
set LOADs,Sloads,AllBars,AllSym,IntScenario,Scenarios,Sline,EventSet,
AllLine,linee;
object LOAD,gen,ldf, Ini, Sim, scen, shc_folder, Lne_element,Lib,Scen,
Shc_folder,evt,line,lne,adfadfasdfasdf;
ClearOutput();
!EchoOff();
AllSym=AllRelevant('*.ElmSym');
LOADs=AllRelevant('*.ElmLod');
AllLine=AllRelevant('*.ElmLne');
u=AllLine:nlnum;
printf('%d',u);
contador=1;
Address='C:\Users\ScBw\Desktop\111.csv';
Name=sprintf('%s111.csv', Address);
fopen('C:\Users\ScBw\Desktop\111.csv','w',1);
for (LOAD=LOADs.First(); LOAD;LOAD=LOADs.Next()) {
var=LOAD:plini;

fprintf(1,'%d',var);
printf('%d%s %d',i,'-th value is:', var);
printf('%d',varg);

}
Write('The following results are found');
Write('# : #.## # , # : #.## # $N,ACC(1):loc_name,ACC(1):c:loading,
[ACC(1):c:loading, ACC(2):loc_name,ACC(2):c:loading,[ACC(2):c:loading');
S1='The brown fox';
S2=strcpy(S1,0,3);
printf('%s',S2);
time=strftime('%S �til para fechas');
printf('%s',time);

NrRows=5;
for (i=1;i<=NrRows;i=i+1){
}
fclose(1);

ldf=GetCaseCommand('ComLdf');
Ini=GetCaseCommand('ComInc');
Sim=GetCaseCommand('ComSim');

Lib=GetLocalLib('IntScenario');
Scenarios=Lib.GetContents();
Scen=Scenarios.First();
Shc_folder=GetCaseObject('IntEvt');
Scen.Activate();
Lne_element=Sline.First();
Shc_folder.CreateObject('EvtShc','cc_evento');
EventSet=Shc_folder.GetContents('cc_evento.EvtShc');
evt=EventSet.First();
evt.ShowFullName();
evt:time=7;
evt:i_shc=5;
evt:p_target=Lne_element;

Ldf.Execute();
Ini.Execute();

Sim.Execute();
!line=AllLine;
!line=AllLine.First();
!line.GetVal(t_n,'t:uline');
!printf('%d',t_n);

u=AllLine:fshcloc;
printf('%d',u);

_________________________________________________________

set line,ashclocs;
object com,ldf,evt;
double datos,b;
int i;
string nombre;

ldf=GetCaseObject('ComLdf');
com=GetCaseObject('ComShc');
line=AllRelevant('*.ElmLne');

ldf.Execute();
com:iopt_mde=3;
com:iopt_shc='1-Phase to Neutral';
!com:iopt_cnf=0;
com:i_pspgf=2;
com:iopt_allbus=1;
!ashclocs=SEL.GetContents();
!com:iopt_allbus=1;
com:Rf=5;
com:Xf=5;
com.Execute();

____________________________

You might also like