Case index(2000) out of range

Jeff_wu
Jeff_wu Altair Community Member
edited September 2022 in Community Q&A

I trying to create a case block to change parameters for different situations (about 130 case), but I have two troubles.

1.Cannot add input connector to case

image

2. code gen-> compile  or Go simulation, It shows the below error window as below picture.

image

 

Thanks.

Answers

  • Girish Karamadi_22191
    Girish Karamadi_22191 New Altair Community Member
    edited September 2022

    Hi Robbert ,

    1. Case block doesnt allow you to add beyond 125 input pins. Alternatively to resolve the issue you could use map block instead of case block. 

    2. If you select default case on the case block you will be able to run the diagram with 125 input pins. But I suggest you to use map block instead . Attached the example and txt file. 

     

    Regards,

    Girish