Many Arduino libraries contain Setup() and Loop() functions that contain one or more Delay functions. If the sum of length of the Delay functions is greater than the time step set in Embed (under Systems > Simulation Properties), Embed does not have time to execute one iteration of the library function. The most common way to deal with Delay functions is to encapsulate the library in a compound block and set it to execute as a Background Task with a local time step greater than the sum of all delays in the library.
Alternatively, you can:
• Add up the length of all delays in the library and set the Embed time step to a greater value.
• Delete the delay functions from the library.