PA-28 Cherokee/Archer/Dakota/Pillan/Warrior
Flight Crew Air Transport Pilot (ATP); Flight Crew Flight Instructor; Flight Crew Instrument; Flight Crew Multiengine
Flight Crew Last 90 Days 80; Flight Crew Total 5200; Flight Crew Type 1100
Situational Awareness
Conflict NMAC
Flight Crew Took Evasive Action
Human Factors
On an IFR flight plan; departing CMA; we were instructed to fly heading 270 for vectors to the VNY VOR. On climb out; we were instructed to contact Mugu Approach. I looked inside and changed frequencies; and noticed a traffic alert on the G530 that was close. I announced it to the student; and he started a right turn.I could not see the traffic; and told him to continue his turn. I instructed him to to roll out on about a 050 heading. The aircraft passed off of our right side in a descent. We contacted Mugu Approach; who asked if we were on an IFR flight plan; which we confirmed. He instructed us to fly a 070 heading. We continued with flight to ZZZ without further incident.The incident occurred very quickly; and we were unable to query Tower due to the early frequency change. In retrospect; I would not have looked inside the cockpit at such a low altitude with a student.
PA-28 instructor pilot reported an NMAC with another aircraft in the vicinity  of CMA airport.