Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


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

There are 0 guests and 0 other users also viewing this topic
You are here: