Setup/loop functions

I am trying to use simulink in order to generate code for the particle photon and then upload the code to the photon via USB.

I’m currently having issues of passing variables form my simulink models to the setup/loop functions. Does anyone know if these functions can possibly be altered to accept variables (ie, void setup(int a, int b, etc…))?

Would appreciate all the help!

The function signature of setup() and loop() cannot be changed, just like on Arduino.

Have you seen the MathWorks support for Arduino in Simulink? I think that would be a better starting point: