The HUS-Ulysses team has prepared an instrument aboard the ULYSSES spacecraft consisting of 2 CsI detectors and 2 Si surface barrier detectors for measuring X-rays in the range 5 200 keV up to 8 ms resolution. The prime objectives are the study of solar flares and of cosmic gamma-ray bursts. The ULYSSES mission will leave the ecliptic during the next solar cycle. The solar data can be used in conjunction with other experiments to measure the directivity of the emission and for correlative studies. The cosmic gamma-ray burst data will improve source localizations, allowing sensitive searches for counterparts. The energy range and the 4π field of view is well suited to the detection of the soft gamma-ray repeaters.