Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
HAMOS
Posted - 12/09/2012 : 1:08:46 PM Hello there, I try to run the following script but I keep getting a command error that starts in the marked section .. can somebody please help me out to find where the problem is?
stringarray sa_state; //string array where all OC and ISC will be stored stringarray sa_SC; // string array were the values of columns corresponding to the SC will be stored stringarray sa_OC; //string array were the values of columns corresponding to the SC will be stored
int ii=count(Col(Potential/V),1); // count n of data values and set the maximum
for (jj=1; jj<ii; jj++) //Loop between those values {
if (Col(Potential/V)[jj]*Col(Potential/V)[jj+1]<0) // short circuit condition { short_circuit$=$(jj); sa_state.Add(short_circuit$); //add value to string array //short_circuit$=; };
if (Col(Current/A)[jj]*Col(Current/A)[jj+1]<0) // open circuit condition { open_circuit$=$(jj); //open_circuit$=; sa_state.Add(open_circuit$); }; }; //EVERYTHING IS OK until here
for (kk=1; kk<=sa_state.GetSize(); kk++) //print the string array { %A= sa_state.GetAt(kk)$; %B= sa_state.GetAt(kk+1)$; int state= %A; int state_1= %B; //state=; //state_1=; }; //COMMAND ERROR STARTS when I run this part
//find conditions where short circuit condition is followed by an open circuit and determine short cicuit current and open circuit values