Simulink Creating Custom Repeating Function