Once the generated code is deployed to the target, it may not execute as expected for several reasons:
• There are timing issues with the data acquisition and actuators
• You may not be able to maintain adequate sample speed
• The code may not fit on the on-chip FLASH or RAM
• The real-world sensor data may not be as precise as expected
• The behavior of the actual plant may be significantly different from the simulated plant
There are different techniques for debugging your diagram depending on your target.