Onboard analysis