Declare mexInput variables in FB to avoid erros due to their use before declaration