A computer system's diagnostic mode is used to ascertain whether or not there are problems or inconsistencies in a starship's main systems, including the transporters.
When Miles O'Brien, Data and Deanna Troi, taken over by Ux-Mal criminals, wanted to make sure that nobody could use the transporter to beam them back to Mab-Bu VI, O'Brien took the entire transporter array off line and placed the transporter in a diagnostic mode which would take hours to complete its cycle. (TNG: "Power Play")
Types of diagnostic modes
Level 1 diagnostic
A Level 1 diagnostic is a troubleshooting/test series that requires taking the associated system off-line.
Level 2 diagnostic
- TNG: "Remember Me"
Level 3 diagnostic
Lieutenant Farrell requested permission from Geordi La Forge to run a level 3 diagnostic on the USS Enterprise-D's port plasma relays, as she had noticed one of the generators was fluctuating. (Star Trek Generations)
Level 4 diagnostic
Locking a starship's transporters diagnostic mode, effectively putting it into a diagnostic cycle, will keep any inert matter in the pattern buffer. Ordinarily, inert matter can only remain in the pattern buffer for seven minutes before becoming irretrievably lost, but Montgomery Scott was able to reconfigure a transporter, locking the pattern into a level 4 diagnostic cycle to keep his pattern in the pattern buffer for 75 years. His pattern was retrieved with minimal degradation. (TNG: "Relics")
Level 5 diagnostic
- TNG: "The Mind's Eye"
- VOY:
- "Drive"
- "Repression"
Security diagnostic
Other
- Complete systems diagnostics. (VOY: "Parallax")
- Transtator assembly diagnostic. (VOY: "Time and Again")