A simple bedside test has been developed to assess the state of autoregulation in subarachnoid haemorrhage patients. Transcranial Doppler was used to measure blood flow velocity in the middle cerebral artery after a brief common carotid compression. Acceleration of blood flow postcompression was interpreted as evidence of intact cerebral autoregulation. A program using the Windows environment was designed for signal analysis of the transient hyperaemic response test (THRT). The flow velocity signal from the TCD was recorded, carotid compression and release automatically detected and the test results immediately displayed and stored in a database. The program was verified in 614 tests; 552 of them were analysed off-line using previously recorded data and 62 on-line during the examination. A significant correlation was found between the results of computerised testing and the patient's neurological state.