Two of the biggest challenges in carbon nanotube research have been met with the development of a technique that can be used to identify the structure of an individual carbon nanotube and characterize its electronic and optical properties in a functional device.