How to define a component as a Scanner?


Just like the sample in MetrologyDemo.