A judge has appointed a San Diego psychiatrist to conduct a mental competency exam for the suspect in the Tucson shooting rampage.