OpenModelica


Forgot password? | Forgot username? | Register

connect sequential component for loop

connect sequential component for loop

Hi,
I have same sewuential comonent. Let's say 24  Battery Cell  named CELL1, CELL2 .... CELL24
I want to connect all those cell with for loop .

Code:


for i in 1:24 loop
    connect(CELL(i).pin_n, CELL(i+1).pin_p);
    ...
  end for;

How can i do that?
Thanks
Oki

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic
You are here: