Create logical blocks (OR AND,...)

Starting point for “ask and learn more about MagicDraw”

Moderator: Moderators

Create logical blocks (OR AND,...)

Postby eloise.paper@alten.com » Tue Dec 22, 2020 11:37 am

Hello,

I am new with Magicdraw and I wanted to create an OR block (if at least one input is true then return true) so I created a constraint block like this :
Capture d’écran 2020-12-22 183034.png

It's working but now I want this block to be more automatic in order for the user to not change the code if they want to use more than 3 inputs (like simulink where you can choose the number of your inputs with an Or block).

Do you have any ideas ?

Thank you in advance.
You do not have the required permissions to view the files attached to this post.
eloise.paper@alten.com
Forum Newbie
Forum Newbie
 
Posts: 1
Posts Rating:0
Joined: Tue Dec 22, 2020 11:25 am

Re: Create logical blocks (OR AND,...)

Postby saulius_p » Sun Jan 03, 2021 2:13 pm

Hello Eloise,

Good to talk to you. I think in Action or Constraint Block you have always fixed number of inputs based on parameters. It could be array of values you input but still input shall be available.

Please find Activity based AND, also sample with arrays.

Kind regards,
Saulius
You do not have the required permissions to view the files attached to this post.
Best regards,
Saulius Pavalkis
User avatar
saulius_p
No Magic
No Magic
 
Posts: 311
Posts Rating:12
Joined: Fri Dec 04, 2009 5:37 am
Full name: Saulius Pavalkis


Return to New to MagicDraw

Who is online

Users browsing this forum: No registered users and 0 guests