One question...

Theme: Simulation

How can I model the LM339D 4-way comparator? I have only the simple LM339.
The single comparator LM339 is available as a subcircuit, for example. Then you have to create a new subcircuit which calls the LM339 four times. In the component properties click on [Simulation values] and then on [Search]. The model browser opens and you click M2 into the open and declare that you want to add a subcircuit:

1 (Fig. 1: Create subcircuit)

Since the subcirciut has many pins, it is recommended to edit it as text. The whole thing starts with .SUBCKT and the name and the pins. Then follow with X four calls of the existing subcircuit LM339. Take a look at how the LM339 has its connections beforehand. With .ENDS the new subcircuit ends:

2 (Fig. 2: Subcircuit edited as text).

When you close the text editor, you can save everything. You can find the SPICE syntax here. In the model browser you can now assign the new model to the component. It is our LM339D:

3 (Fig. 3: Use model)

Finally, you need to assign the component pins to the new model:

4 (Fig. 4: Exactly assign the pins to the nodes).

Now all 4 comparators in the component are provided with a matching model.