Comparator model

How do you implement a comparator that can receive an analog input, and output a digital signal? I tried using the generic opAmp ,but he output me only 0 - even when I input him a constant 1V signal. Also the SCHMITT behaved the same.
Many thanks.

1 Like

Thank you! The problem was that I forgot to connect supplies to the comparator. :person_facepalming: