Function To Interact With Blocks in Simulink Model To Prevent Code Repetition