He went to the computer lab to log on and finish his assignment.
Tips
usage
上机 has two common meanings: (1) to board an airplane (more formal alternative to 登机), and (2) to use a computer or log onto a machine (common in school/office contexts). Context distinguishes them clearly.