How to get the order of Simulink blocks based on their pin connection.
For Example: From attached Simulink model (This model has no meaning. created only to give idea about my problem ), I want to get the order of blocks based on pin connection instead of their alphabetic order.
The order should be like (Expected Output):
1. Integrator,Second-Order Limited Block
2. Integrator or Rate Limiter Dynamic Block
3. Rate Limiter Dynamic or Integrator Block
4. Lookup table Dynamic Block
5. Data type Conversion block
6. n-DLookup Table Block
But Currently I am getting order based on Aplhabatic name of Blocks (Refer below image for the results uisng 'find_system' command.)