🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Equivalent to the make decision block in psim

User: "reza hakimi_20486"
Altair Community Member
Updated by reza hakimi_20486

Hello
I wrote the program in simulink and used the make decision block in it, now how can I rewrite that block in psim to be able to generate code?

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Albert_Dunford"
    Altair Employee
    Updated by Albert_Dunford

    Hi Reza,

    i would recommend using the c block in psim and doing writing your logic in C. I have highlighted the main parts. When you define the number of inputs and outputs at the top you automatically get input and output variables created (xn,yn) respectively. You can rebuild the logic with "mux" elements if you are keen but it would be messy.

    image