Hall Sensor Readout Simulink

Hi everybody

I'm quite new to Arduino and currently struggling with my Project. The main task is to fill a balloon with water. For this I'm controlling the following devices: A 12V DC pump, a 12 V Solenoid Valve and a 12 V Flow meter (Hall Sensor).
First I decided to write everything in code (C) and now I switched to Simulink, since I'm implementing a Controller.
Here is the problem: My hall sensor delivers pulses, so I'm doing the readout with interrupts. But simulink doesn't support interrupts. My ideas are:

  • Using a second arduino for the sensor readout and delivering the data to simulink over it's serial port (possible?)
  • Using a s function in simulink to define the interrupts
    Does anyone know how this can be done?

Cheers, James