Measurement of Solar and Cosmic Radiation during Spaceflight