rxAssignPtr function

Assign pointer based on model variables