This is a sun sensor from the Voyager 2 spacecraft program. This and related items are flight-qualified spare hardware, which were used in laboratory simulations to resolve in-flight problems encountered by the Voyager spacecraft.
Voyager 2 was an unmanned space probe which, in 1986, passed close to the planet Uranus to transmit images of its surface.
NASA's Jet Propulsion Laboratory transferred this artifact to the Smithsonian in 1999.
This object is not on display at the National Air and Space Museum. It is either on loan or in storage.