Code Generation/ Suitable Components

I have been using a discrete integrator as part of PI controller. Simulations are working well, precisely tracking all the control parameters. The generated code from the same PSIM model is not working on Typhoon HIL. I have a few questions,

  1. Do I have to use very specific components if I have to use the same model for code generation?
  2. Does Integrator with lower and outer limit works in coding or not? It is giving accurate results in simulations but not on Typhoon HIL.

PS: I didn’t see any errors while deploying code in CCS but having hard time with real time simulation on Typhhoon HIL.