Portable analyzers and samplers