Ive got a problem with my engine managment light coming on

! Ive been led to beleev it cud be the cam sensor? The light comes on and the rev counter goes crazy nd eventually the car konks, sometimes its ok 4 days tho

! Ive heard of some way of reading the ecu?, anyone shed some light on this? 95" 2.0 Sri Ecotec! Thanx